	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb710_probe
_cb710_probe:                           ## @cb710_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	%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
	movq	%rdi, %r12
	callq	_cb710_pci_configure
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	$72, %esi
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	js	LBB0_3
## %bb.2:
	orl	$1895825408, %edx               ## imm = 0x71000000
	movq	%r12, %rdi
	movl	$72, %esi
	callq	_pci_write_config_dword
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	$72, %esi
	callq	_pci_read_config_dword
	movl	-44(%rbp), %edx
LBB0_3:
	leaq	4(%r12), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movl	-44(%rbp), %eax
	testl	$1879048192, %eax               ## imm = 0x70000000
	je	LBB0_4
## %bb.6:
	shrl	$28, %eax
	andl	$7, %eax
	movl	%eax, -44(%rbp)
	movq	_CB710_SLOT_MMC@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movl	(%rdx), %edx
	andl	%eax, %edx
	setne	%cl
	movq	_CB710_SLOT_MS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	%eax, %esi
	leal	1(%rcx), %edx
	testl	%esi, %esi
	cmovel	%ecx, %edx
	movq	_CB710_SLOT_SM@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	sbbl	$-1, %edx
	movq	_slot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_pcim_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.9:
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_pcim_iomap_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.10:
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	%r12, 16(%r14)
	movq	%r12, %rdi
	callq	_pcim_iomap_table
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movl	(%r12), %esi
	movq	_cb710_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r14, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.11:
	movl	(%r13), %esi
	movq	_cb710_ida@GOTPCREL(%rip), %rdi
	callq	_ida_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.12:
	movl	%ebx, (%r14)
	movl	8(%r14), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_info
	movl	-44(%rbp), %eax
	movq	_CB710_SLOT_MMC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	je	LBB0_15
## %bb.13:
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_cb710_register_slot
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.14:
	movl	-44(%rbp), %eax
LBB0_15:
	movq	_CB710_SLOT_MS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	je	LBB0_18
## %bb.16:
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_cb710_register_slot
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.17:
	movl	-44(%rbp), %eax
LBB0_18:
	movq	_CB710_SLOT_SM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ebx, %ebx
	testl	%eax, %esi
	je	LBB0_22
## %bb.19:
	leaq	L_.str.4(%rip), %rcx
	movq	%r14, %rdi
	movl	$96, %edx
	callq	_cb710_register_slot
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %r15d
	movq	_CB710_SLOT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_cb710_unregister_slot
	movl	%r15d, %ebx
LBB0_21:
	movq	_CB710_SLOT_MMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_cb710_unregister_slot
	jmp	LBB0_22
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %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	"PCI config[0x48] = 0x%08X\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CB710_SLOT_MMC,4,2             ## @CB710_SLOT_MMC
	.comm	_CB710_SLOT_MS,4,2              ## @CB710_SLOT_MS
	.comm	_CB710_SLOT_SM,4,2              ## @CB710_SLOT_SM
	.comm	_slot,4,2                       ## @slot
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_cb710_irq_handler,4,2          ## @cb710_irq_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_cb710_ida,4,2                  ## @cb710_ida
L_.str.1:                               ## @.str.1
	.asciz	"id %d, IO 0x%p, IRQ %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"cb710-mmc"

L_.str.3:                               ## @.str.3
	.asciz	"cb710-ms"

L_.str.4:                               ## @.str.4
	.asciz	"cb710-sm"

	.no_dead_strip	_cb710_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb710_probe
_cb710_probe:                           ; @cb710_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_cb710_pci_configure
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.1:
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #72
	bl	_pci_read_config_dword
	ldr	w2, [sp, #12]
	tbnz	w2, #31, LBB0_3
; %bb.2:
	mov	w8, #1895825408
	orr	w2, w2, w8
	mov	x0, x20
	mov	w1, #72
	bl	_pci_write_config_dword
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #72
	bl	_pci_read_config_dword
	ldr	w2, [sp, #12]
LBB0_3:
	add	x21, x20, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	w8, [sp, #12]
	tst	w8, #0x70000000
	b.eq	LBB0_19
; %bb.4:
	ubfx	w8, w8, #28, #3
	str	w8, [sp, #12]
Lloh2:
	adrp	x23, _CB710_SLOT_MMC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CB710_SLOT_MMC@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w9, ne
Lloh4:
	adrp	x24, _CB710_SLOT_MS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CB710_SLOT_MS@GOTPAGEOFF]
	ldr	w10, [x24]
	mov	w11, #1
	cinc	w11, w11, ne
	tst	w10, w8
	csel	w9, w9, w11, eq
Lloh6:
	adrp	x25, _CB710_SLOT_SM@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CB710_SLOT_SM@GOTPAGEOFF]
	ldr	w10, [x25]
	tst	w10, w8
	cinc	w2, w9, ne
Lloh8:
	adrp	x8, _slot@GOTPAGE
Lloh9:
	ldr	x8, [x8, _slot@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_struct_size
	mov	x1, x0
Lloh11:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x21
	bl	_devm_kzalloc
	cbz	x0, LBB0_20
; %bb.5:
	mov	x19, x0
	mov	x0, x20
	bl	_pcim_enable_device
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.6:
Lloh13:
	adrp	x27, _KBUILD_MODNAME@GOTPAGE
Lloh14:
	ldr	x27, [x27, _KBUILD_MODNAME@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	mov	w1, #1
	bl	_pcim_iomap_regions
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.7:
	add	x0, x19, #24
	bl	_spin_lock_init
	str	x20, [x19, #16]
	mov	x0, x20
	bl	_pcim_iomap_table
	ldr	w8, [x0]
	str	w8, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_pci_set_drvdata
Lloh15:
	adrp	x8, _cb710_irq_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cb710_irq_handler@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	ldr	w4, [x27]
	mov	x0, x21
	mov	x5, x19
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.8:
	ldr	w1, [x26]
Lloh21:
	adrp	x0, _cb710_ida@GOTPAGE
Lloh22:
	ldr	x0, [x0, _cb710_ida@GOTPAGEOFF]
	bl	_ida_alloc
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
; %bb.9:
	str	w22, [x19]
	ldr	w3, [x19, #8]
	ldr	w4, [x20]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_info
	ldr	w8, [sp, #12]
	ldr	w1, [x23]
	tst	w1, w8
	b.eq	LBB0_12
; %bb.10:
Lloh25:
	adrp	x3, l_.str.2@PAGE
Lloh26:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_cb710_register_slot
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.11:
	ldr	w8, [sp, #12]
LBB0_12:
	ldr	w1, [x24]
	tst	w1, w8
	b.eq	LBB0_15
; %bb.13:
Lloh27:
	adrp	x3, l_.str.3@PAGE
Lloh28:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #64
	bl	_cb710_register_slot
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.14:
	ldr	w8, [sp, #12]
LBB0_15:
	ldr	w1, [x25]
	tst	w1, w8
	b.eq	LBB0_23
; %bb.16:
Lloh29:
	adrp	x3, l_.str.4@PAGE
Lloh30:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w2, #96
	bl	_cb710_register_slot
	mov	x22, x0
	cbz	w0, LBB0_22
; %bb.17:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_cb710_unregister_slot
LBB0_18:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_cb710_unregister_slot
	b	LBB0_22
LBB0_19:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_22:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
	mov	w22, #0
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI config[0x48] = 0x%08X\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CB710_SLOT_MMC,4,2             ; @CB710_SLOT_MMC
	.comm	_CB710_SLOT_MS,4,2              ; @CB710_SLOT_MS
	.comm	_CB710_SLOT_SM,4,2              ; @CB710_SLOT_SM
	.comm	_slot,4,2                       ; @slot
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_cb710_irq_handler,4,2          ; @cb710_irq_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_cb710_ida,4,2                  ; @cb710_ida
l_.str.1:                               ; @.str.1
	.asciz	"id %d, IO 0x%p, IRQ %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"cb710-mmc"

l_.str.3:                               ; @.str.3
	.asciz	"cb710-ms"

l_.str.4:                               ; @.str.4
	.asciz	"cb710-sm"

	.no_dead_strip	_cb710_probe
.subsections_via_symbols
