	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_v4l2_fini
_em28xx_v4l2_fini:                      ## @em28xx_v4l2_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 24(%rdi)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 16(%rdi)
	je	LBB0_10
## %bb.2:
	movq	32(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	leaq	4(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_v4l2_device_disconnect
	movq	_EM28XX_ANALOG_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_em28xx_uninit_usb_xfer
	movq	%rbx, %rdi
	callq	_em28xx_v4l2_media_release
	leaq	20(%r14), %r13
	movq	%r13, %rdi
	callq	_video_is_registered
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %r15
	movq	%r13, %rdi
	callq	_video_device_node_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r13, %rdi
	callq	_video_unregister_device
LBB0_5:
	leaq	16(%r14), %r13
	movq	%r13, %rdi
	callq	_video_is_registered
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %r15
	movq	%r13, %rdi
	callq	_video_device_node_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r13, %rdi
	callq	_video_unregister_device
LBB0_7:
	leaq	12(%r14), %r13
	movq	%r13, %rdi
	callq	_video_is_registered
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	8(%rbx), %r15
	movq	%r13, %rdi
	callq	_video_device_node_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r13, %rdi
	callq	_video_unregister_device
LBB0_9:
	leaq	8(%r14), %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r12, %rdi
	callq	_v4l2_device_unregister
	movq	_em28xx_free_v4l2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kref_put
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_em28xx_free_device@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Closing video extension\n"

	.comm	_EM28XX_ANALOG_MODE,4,2         ## @EM28XX_ANALOG_MODE
L_.str.1:                               ## @.str.1
	.asciz	"V4L2 device %s deregistered\n"

	.comm	_em28xx_free_v4l2,4,2           ## @em28xx_free_v4l2
	.comm	_em28xx_free_device,4,2         ## @em28xx_free_device
	.no_dead_strip	_em28xx_v4l2_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_v4l2_fini
_em28xx_v4l2_fini:                      ; @em28xx_v4l2_fini
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	w8, [x0, #16]
	cmp	w8, #0
	ccmp	x20, #0, #4, ne
	b.eq	LBB0_9
; %bb.2:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	add	x22, x20, #4
	mov	x0, x22
	bl	_v4l2_device_disconnect
Lloh2:
	adrp	x8, _EM28XX_ANALOG_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EM28XX_ANALOG_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_em28xx_uninit_usb_xfer
	mov	x0, x19
	bl	_em28xx_v4l2_media_release
	add	x23, x20, #20
	mov	x0, x23
	bl	_video_is_registered
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x24, [x19, #8]
	mov	x0, x23
	bl	_video_device_node_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_dev_info
	mov	x0, x23
	bl	_video_unregister_device
LBB0_4:
	add	x23, x20, #16
	mov	x0, x23
	bl	_video_is_registered
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x24, [x19, #8]
	mov	x0, x23
	bl	_video_device_node_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_dev_info
	mov	x0, x23
	bl	_video_unregister_device
LBB0_6:
	add	x23, x20, #12
	mov	x0, x23
	bl	_video_is_registered
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x24, [x19, #8]
	mov	x0, x23
	bl	_video_device_node_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_dev_info
	mov	x0, x23
	bl	_video_unregister_device
LBB0_8:
	add	x0, x20, #8
	bl	_v4l2_ctrl_handler_free
	mov	x0, x22
	bl	_v4l2_device_unregister
Lloh11:
	adrp	x8, _em28xx_free_v4l2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _em28xx_free_v4l2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kref_put
	mov	x0, x21
	bl	_mutex_unlock
Lloh14:
	adrp	x8, _em28xx_free_device@GOTPAGE
Lloh15:
	ldr	x8, [x8, _em28xx_free_device@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kref_put
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Closing video extension\n"

	.comm	_EM28XX_ANALOG_MODE,4,2         ; @EM28XX_ANALOG_MODE
l_.str.1:                               ; @.str.1
	.asciz	"V4L2 device %s deregistered\n"

	.comm	_em28xx_free_v4l2,4,2           ; @em28xx_free_v4l2
	.comm	_em28xx_free_device,4,2         ; @em28xx_free_device
	.no_dead_strip	_em28xx_v4l2_fini
.subsections_via_symbols
