	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_remove
_smi_remove:                            ## @smi_remove
	.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
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	_MSI_INT_ENA_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smi_write
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	16(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_smi_port_detach
	movq	16(%rbx), %rax
LBB0_2:
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_smi_port_detach
LBB0_4:
	movq	%rbx, %rdi
	callq	_smi_ir_exit
	movq	%rbx, %rdi
	callq	_smi_i2c_exit
	movl	(%rbx), %edi
	callq	_iounmap
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSI_INT_ENA_CLR,4,2            ## @MSI_INT_ENA_CLR
	.comm	_ALL_INT,4,2                    ## @ALL_INT
	.no_dead_strip	_smi_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_remove
_smi_remove:                            ; @smi_remove
	.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
	bl	_pci_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _MSI_INT_ENA_CLR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSI_INT_ENA_CLR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ALL_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALL_INT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_smi_write
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_free_irq
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	add	x0, x8, #4
	bl	_smi_port_detach
	ldr	x8, [x20, #16]
LBB0_2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x20, #8]
	bl	_smi_port_detach
LBB0_4:
	mov	x0, x20
	bl	_smi_ir_exit
	mov	x0, x20
	bl	_smi_i2c_exit
	ldr	w0, [x20]
	bl	_iounmap
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSI_INT_ENA_CLR,4,2            ; @MSI_INT_ENA_CLR
	.comm	_ALL_INT,4,2                    ; @ALL_INT
	.no_dead_strip	_smi_remove
.subsections_via_symbols
