	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_probe
_smi_probe:                             ## @smi_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_pci_enable_device
	testq	%rax, %rax
	js	LBB0_14
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 32(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_pci_set_drvdata
	movq	(%rbx), %rax
	movq	%rax, 16(%r15)
	movq	32(%r15), %rdi
	addq	$4, %rdi
	movl	20(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
	movq	16(%r15), %rax
	movq	32(%r15), %rdi
	movl	16(%rax), %eax
	movl	%eax, 40(%r15)
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, %r12d
	movq	32(%r15), %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_16
## %bb.3:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	callq	_pci_set_master
	movq	%r15, %rdi
	callq	_smi_hw_init
	testl	%eax, %eax
	js	LBB0_17
## %bb.5:
	movq	%r15, %rdi
	callq	_smi_i2c_init
	testl	%eax, %eax
	js	LBB0_17
## %bb.6:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.7:
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_smi_port_attach
	testl	%eax, %eax
	js	LBB0_20
## %bb.8:
	movq	16(%r15), %rax
LBB0_9:
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.10:
	movq	8(%r15), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_smi_port_attach
	testl	%eax, %eax
	js	LBB0_22
LBB0_11:
	movq	%r15, %rdi
	callq	_smi_ir_init
	testl	%eax, %eax
	js	LBB0_21
## %bb.12:
	movq	32(%r15), %rax
	movl	(%rax), %edi
	movq	_smi_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_23
## %bb.13:
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_smi_ir_start
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_32
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_29
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_20:
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_21:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_23:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_smi_ir_exit
LBB0_24:
	movq	16(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_26
## %bb.25:
	movq	8(%r15), %rdi
	addq	$4, %rdi
	callq	_smi_port_detach
LBB0_26:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_28
## %bb.27:
	movq	8(%r15), %rdi
	callq	_smi_port_detach
LBB0_28:
	movq	%r15, %rdi
	callq	_smi_i2c_exit
LBB0_29:
	movl	(%r15), %edi
	callq	_iounmap
LBB0_30:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	callq	_kfree
LBB0_31:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_32:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card detected: %s\n"

	.comm	_smi_irq_handler,4,2            ## @smi_irq_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"SMI_PCIE"

	.no_dead_strip	_smi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_probe
_smi_probe:                             ; @smi_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_pci_enable_device
	tbnz	x0, #63, LBB0_14
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	ldr	x8, [x21]
	str	x8, [x20, #16]
	ldr	x9, [x20, #32]
	add	x0, x9, #4
	ldr	w8, [x8, #20]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #16]
	str	w8, [x20, #40]
	ldr	x0, [x20, #32]
	mov	w1, #0
	bl	_pci_resource_start
	mov	x21, x0
	ldr	x0, [x20, #32]
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x21
	bl	_ioremap
	str	w0, [x20]
	cbz	w0, LBB0_17
; %bb.3:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	tbnz	w0, #31, LBB0_16
; %bb.4:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x20
	bl	_smi_hw_init
	tbnz	w0, #31, LBB0_16
; %bb.5:
	mov	x0, x20
	bl	_smi_i2c_init
	tbnz	w0, #31, LBB0_16
; %bb.6:
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_9
; %bb.7:
	ldr	x1, [x20, #8]
	mov	x0, x20
	mov	w2, #0
	bl	_smi_port_attach
	tbnz	w0, #31, LBB0_18
; %bb.8:
	ldr	x8, [x20, #16]
LBB0_9:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #1
	bl	_smi_port_attach
	tbnz	w0, #31, LBB0_20
LBB0_11:
	mov	x0, x20
	bl	_smi_ir_init
	tbnz	w0, #31, LBB0_19
; %bb.12:
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _smi_irq_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _smi_irq_handler@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x4, x20
	bl	_request_irq
	tbnz	w0, #31, LBB0_21
; %bb.13:
	add	x0, x20, #24
	bl	_smi_ir_start
	mov	w21, #0
	b	LBB0_30
LBB0_14:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_30
LBB0_15:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_29
LBB0_16:
	mov	x21, x0
	b	LBB0_27
LBB0_17:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_28
LBB0_18:
	mov	x21, x0
	b	LBB0_26
LBB0_19:
	mov	x21, x0
	b	LBB0_22
LBB0_20:
	mov	x21, x0
	b	LBB0_24
LBB0_21:
	mov	x21, x0
	mov	x0, x20
	bl	_smi_ir_exit
LBB0_22:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	x8, [x20, #8]
	add	x0, x8, #4
	bl	_smi_port_detach
LBB0_24:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_26
; %bb.25:
	ldr	x0, [x20, #8]
	bl	_smi_port_detach
LBB0_26:
	mov	x0, x20
	bl	_smi_i2c_exit
LBB0_27:
	ldr	w0, [x20]
	bl	_iounmap
LBB0_28:
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_kfree
LBB0_29:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_30:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card detected: %s\n"

	.comm	_smi_irq_handler,4,2            ; @smi_irq_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"SMI_PCIE"

	.no_dead_strip	_smi_probe
.subsections_via_symbols
