	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_dvb_fini
_em28xx_dvb_fini:                       ## @em28xx_dvb_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 40(%rdi)
	je	LBB0_1
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	cmpl	$0, 32(%rdi)
	je	LBB0_9
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.3:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	8(%rbx), %r14
	movq	_EM28XX_DIGITAL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_em28xx_uninit_usb_xfer
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.4:
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	addq	$8, %rdi
	callq	_prevent_sleep
	movq	_DVB_FE_DEVICE_REMOVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%r14), %rax
	movq	(%rax), %rdx
	movq	%rcx, (%rdx)
LBB0_6:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	addq	$8, %rdi
	callq	_prevent_sleep
	movq	_DVB_FE_DEVICE_REMOVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
LBB0_8:
	movq	%r14, %rdi
	callq	_em28xx_unregister_dvb
	movl	8(%r14), %edi
	callq	_dvb_module_release
	movl	4(%r14), %edi
	callq	_dvb_module_release
	movl	(%r14), %edi
	callq	_dvb_module_release
	movq	%r14, %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	_em28xx_free_device@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Closing DVB extension\n"

	.comm	_EM28XX_DIGITAL_MODE,4,2        ## @EM28XX_DIGITAL_MODE
	.comm	_DVB_FE_DEVICE_REMOVED,8,3      ## @DVB_FE_DEVICE_REMOVED
	.comm	_em28xx_free_device,4,2         ## @em28xx_free_device
	.no_dead_strip	_em28xx_dvb_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_dvb_fini
_em28xx_dvb_fini:                       ; @em28xx_dvb_fini
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_1
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x20, [x19, #8]
Lloh2:
	adrp	x8, _EM28XX_DIGITAL_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EM28XX_DIGITAL_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_em28xx_uninit_usb_xfer
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
Lloh5:
	adrp	x21, _DVB_FE_DEVICE_REMOVED@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DVB_FE_DEVICE_REMOVED@GOTPAGEOFF]
	cbz	x9, LBB0_7
; %bb.6:
	add	x0, x9, #8
	bl	_prevent_sleep
	ldr	x9, [x21]
	ldr	x8, [x20, #16]
	ldr	x10, [x8]
	str	x9, [x10]
LBB0_7:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:
	add	x0, x8, #8
	bl	_prevent_sleep
	ldr	x8, [x21]
	ldr	x9, [x20, #16]
	ldr	x9, [x9, #8]
	str	x8, [x9]
LBB0_9:
	mov	x0, x20
	bl	_em28xx_unregister_dvb
	ldr	w0, [x20, #8]
	bl	_dvb_module_release
	ldr	w0, [x20, #4]
	bl	_dvb_module_release
	ldr	w0, [x20]
	bl	_dvb_module_release
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19, #8]
Lloh7:
	adrp	x8, _em28xx_free_device@GOTPAGE
Lloh8:
	ldr	x8, [x8, _em28xx_free_device@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kref_put
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Closing DVB extension\n"

	.comm	_EM28XX_DIGITAL_MODE,4,2        ; @EM28XX_DIGITAL_MODE
	.comm	_DVB_FE_DEVICE_REMOVED,8,3      ; @DVB_FE_DEVICE_REMOVED
	.comm	_em28xx_free_device,4,2         ; @em28xx_free_device
	.no_dead_strip	_em28xx_dvb_fini
.subsections_via_symbols
