	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_ir_fini
_em28xx_ir_fini:                        ## @em28xx_ir_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, 24(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_em28xx_shutdown_buttons
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movl	8(%r14), %edi
	callq	_rc_unregister_device
	movq	(%r14), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
LBB0_3:
	movq	_em28xx_free_device@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Closing input extension\n"

	.comm	_em28xx_free_device,4,2         ## @em28xx_free_device
	.no_dead_strip	_em28xx_ir_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_ir_fini
_em28xx_ir_fini:                        ; @em28xx_ir_fini
	.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
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldp	x20, x0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_em28xx_shutdown_buttons
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w0, [x20, #8]
	bl	_rc_unregister_device
	ldr	x0, [x20]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_3:
Lloh2:
	adrp	x8, _em28xx_free_device@GOTPAGE
Lloh3:
	ldr	x8, [x8, _em28xx_free_device@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kref_put
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Closing input extension\n"

	.comm	_em28xx_free_device,4,2         ; @em28xx_free_device
	.no_dead_strip	_em28xx_ir_fini
.subsections_via_symbols
