	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdricoh_pcmcia_probe
_sdricoh_pcmcia_probe:                  ## @sdricoh_pcmcia_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	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_PCI_VENDOR_ID_RICOH@GOTPCREL(%rip), %r15
	movq	_PCI_DEVICE_ID_RICOH_RL5C476@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	%rbx, %rdx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_sdricoh_init_mmc
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Searching MMC controller for pcmcia device %s %s ...\n"

	.comm	_PCI_VENDOR_ID_RICOH,4,2        ## @PCI_VENDOR_ID_RICOH
	.comm	_PCI_DEVICE_ID_RICOH_RL5C476,4,2 ## @PCI_DEVICE_ID_RICOH_RL5C476
L_.str.1:                               ## @.str.1
	.asciz	"MMC controller found\n"

L_.str.2:                               ## @.str.2
	.asciz	"No MMC controller was found.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_sdricoh_pcmcia_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdricoh_pcmcia_probe
_sdricoh_pcmcia_probe:                  ; @sdricoh_pcmcia_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	x19, x0
	ldr	x8, [x0, #8]
	ldp	w9, w8, [x8]
	stp	x9, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x20, #0
Lloh2:
	adrp	x21, _PCI_VENDOR_ID_RICOH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PCI_VENDOR_ID_RICOH@GOTPAGEOFF]
Lloh4:
	adrp	x22, _PCI_DEVICE_ID_RICOH_RL5C476@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PCI_DEVICE_ID_RICOH_RL5C476@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_pci_get_device
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	mov	x1, x19
	bl	_sdricoh_init_mmc
	cbnz	w0, LBB0_1
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Searching MMC controller for pcmcia device %s %s ...\n"

	.comm	_PCI_VENDOR_ID_RICOH,4,2        ; @PCI_VENDOR_ID_RICOH
	.comm	_PCI_DEVICE_ID_RICOH_RL5C476,4,2 ; @PCI_DEVICE_ID_RICOH_RL5C476
l_.str.1:                               ; @.str.1
	.asciz	"MMC controller found\n"

l_.str.2:                               ; @.str.2
	.asciz	"No MMC controller was found.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_sdricoh_pcmcia_probe
.subsections_via_symbols
