	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au0828_analog_unregister       ## -- Begin function au0828_analog_unregister
	.p2align	4, 0x90
_au0828_analog_unregister:              ## @au0828_analog_unregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_AUVI_INPUT
	movq	_AU0828_VMUX_UNDEFINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_au0828_sysfs_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	leaq	8(%r14), %rdi
	callq	_video_unregister_device
	leaq	4(%r14), %rdi
	callq	_video_unregister_device
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_v4l2_device_disconnect
	movq	%r14, %rdi
	callq	_v4l2_device_put
	movl	$1, %ebx
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"au0828_analog_unregister called\n"

	.comm	_AU0828_VMUX_UNDEFINED,8,3      ## @AU0828_VMUX_UNDEFINED
	.comm	_au0828_sysfs_lock,4,2          ## @au0828_sysfs_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au0828_analog_unregister       ; -- Begin function au0828_analog_unregister
	.p2align	2
_au0828_analog_unregister:              ; @au0828_analog_unregister
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	mov	w0, #0
	bl	_AUVI_INPUT
	mov	x8, x0
	mov	w0, #0
Lloh2:
	adrp	x9, _AU0828_VMUX_UNDEFINED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AU0828_VMUX_UNDEFINED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x20, _au0828_sysfs_lock@GOTPAGE
Lloh6:
	ldr	x20, [x20, _au0828_sysfs_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #8
	bl	_video_unregister_device
	add	x0, x19, #4
	bl	_video_unregister_device
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_v4l2_device_disconnect
	mov	x0, x19
	bl	_v4l2_device_put
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"au0828_analog_unregister called\n"

	.comm	_AU0828_VMUX_UNDEFINED,8,3      ; @AU0828_VMUX_UNDEFINED
	.comm	_au0828_sysfs_lock,4,2          ; @au0828_sysfs_lock
.subsections_via_symbols
