	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_MCI_Init                 ## -- Begin function AT91F_MCI_Init
	.p2align	4, 0x90
_AT91F_MCI_Init:                        ## @AT91F_MCI_Init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AT91C_BASE_PIOB@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_AT91C_PIO_PB7@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_AT91F_PIO_CfgOutput
	movl	(%r14), %edi
	movl	(%rbx), %esi
	callq	_AT91F_PIO_SetOutput
	xorl	%eax, %eax
	callq	_AT91F_MCI_CfgPIO
	xorl	%eax, %eax
	callq	_AT91F_MCI_CfgPMC
	movq	_AT91C_BASE_PDC_MCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AT91F_PDC_Open
	movq	_AT91C_BASE_MCI@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	$-1, (%rax)
	xorl	%eax, %eax
	callq	_AT91F_CfgDevice
	movq	_AT91C_BASE_AIC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_AT91C_ID_MCI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AT91C_AIC_PRIOR_HIGHEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AT91F_ASM_MCI_Handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_AT91F_AIC_ConfigureIt
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_AT91F_AIC_EnableIt
	movq	_AT91C_BASE_DBGU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AT91F_US_EnableRx
	movq	(%r14), %rdi
	movq	_AT91C_MCI_DTOR_1MEGA_CYCLES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AT91C_MCI_MR_PDCMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AT91C_MCI_SDCARD_4BITS_SLOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_AT91F_MCI_Configure
	movq	_MCI_Device@GOTPCREL(%rip), %rdi
	callq	_AT91F_MCI_SDCard_Init
	movq	_AT91C_INIT_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91C_BASE_PIOB,4,2            ## @AT91C_BASE_PIOB
	.comm	_AT91C_PIO_PB7,4,2              ## @AT91C_PIO_PB7
	.comm	_AT91C_BASE_PDC_MCI,4,2         ## @AT91C_BASE_PDC_MCI
	.comm	_AT91C_BASE_MCI,8,3             ## @AT91C_BASE_MCI
	.comm	_AT91C_BASE_AIC,4,2             ## @AT91C_BASE_AIC
	.comm	_AT91C_ID_MCI,4,2               ## @AT91C_ID_MCI
	.comm	_AT91C_AIC_PRIOR_HIGHEST,4,2    ## @AT91C_AIC_PRIOR_HIGHEST
	.comm	_AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE,4,2 ## @AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE
	.comm	_AT91F_ASM_MCI_Handler,4,2      ## @AT91F_ASM_MCI_Handler
	.comm	_AT91C_BASE_DBGU,8,3            ## @AT91C_BASE_DBGU
	.comm	_AT91C_MCI_DTOR_1MEGA_CYCLES,4,2 ## @AT91C_MCI_DTOR_1MEGA_CYCLES
	.comm	_AT91C_MCI_MR_PDCMODE,4,2       ## @AT91C_MCI_MR_PDCMODE
	.comm	_AT91C_MCI_SDCARD_4BITS_SLOTA,4,2 ## @AT91C_MCI_SDCARD_4BITS_SLOTA
	.comm	_MCI_Device,4,2                 ## @MCI_Device
	.comm	_AT91C_INIT_OK,8,3              ## @AT91C_INIT_OK
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_MCI_Init                 ; -- Begin function AT91F_MCI_Init
	.p2align	2
_AT91F_MCI_Init:                        ; @AT91F_MCI_Init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _AT91C_BASE_PIOB@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AT91C_BASE_PIOB@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x20, _AT91C_PIO_PB7@GOTPAGE
Lloh3:
	ldr	x20, [x20, _AT91C_PIO_PB7@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_AT91F_PIO_CfgOutput
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_AT91F_PIO_SetOutput
	bl	_AT91F_MCI_CfgPIO
	bl	_AT91F_MCI_CfgPMC
Lloh4:
	adrp	x8, _AT91C_BASE_PDC_MCI@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AT91C_BASE_PDC_MCI@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_AT91F_PDC_Open
Lloh7:
	adrp	x19, _AT91C_BASE_MCI@GOTPAGE
Lloh8:
	ldr	x19, [x19, _AT91C_BASE_MCI@GOTPAGEOFF]
	ldr	x8, [x19]
	mov	w9, #-1
	str	w9, [x8]
	bl	_AT91F_CfgDevice
Lloh9:
	adrp	x20, _AT91C_BASE_AIC@GOTPAGE
Lloh10:
	ldr	x20, [x20, _AT91C_BASE_AIC@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh11:
	adrp	x21, _AT91C_ID_MCI@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AT91C_ID_MCI@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _AT91C_AIC_PRIOR_HIGHEST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AT91C_AIC_PRIOR_HIGHEST@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _AT91F_ASM_MCI_Handler@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AT91F_ASM_MCI_Handler@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
	bl	_AT91F_AIC_ConfigureIt
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_AT91F_AIC_EnableIt
Lloh22:
	adrp	x8, _AT91C_BASE_DBGU@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AT91C_BASE_DBGU@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_AT91F_US_EnableRx
	ldr	x0, [x19]
Lloh25:
	adrp	x8, _AT91C_MCI_DTOR_1MEGA_CYCLES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AT91C_MCI_DTOR_1MEGA_CYCLES@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _AT91C_MCI_MR_PDCMODE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AT91C_MCI_MR_PDCMODE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _AT91C_MCI_SDCARD_4BITS_SLOTA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AT91C_MCI_SDCARD_4BITS_SLOTA@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	bl	_AT91F_MCI_Configure
Lloh34:
	adrp	x0, _MCI_Device@GOTPAGE
Lloh35:
	ldr	x0, [x0, _MCI_Device@GOTPAGEOFF]
	bl	_AT91F_MCI_SDCard_Init
Lloh36:
	adrp	x8, _AT91C_INIT_OK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AT91C_INIT_OK@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
Lloh39:
	adrp	x9, _TRUE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh41:
	adrp	x10, _FALSE@GOTPAGE
Lloh42:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91C_BASE_PIOB,4,2            ; @AT91C_BASE_PIOB
	.comm	_AT91C_PIO_PB7,4,2              ; @AT91C_PIO_PB7
	.comm	_AT91C_BASE_PDC_MCI,4,2         ; @AT91C_BASE_PDC_MCI
	.comm	_AT91C_BASE_MCI,8,3             ; @AT91C_BASE_MCI
	.comm	_AT91C_BASE_AIC,4,2             ; @AT91C_BASE_AIC
	.comm	_AT91C_ID_MCI,4,2               ; @AT91C_ID_MCI
	.comm	_AT91C_AIC_PRIOR_HIGHEST,4,2    ; @AT91C_AIC_PRIOR_HIGHEST
	.comm	_AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE,4,2 ; @AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE
	.comm	_AT91F_ASM_MCI_Handler,4,2      ; @AT91F_ASM_MCI_Handler
	.comm	_AT91C_BASE_DBGU,8,3            ; @AT91C_BASE_DBGU
	.comm	_AT91C_MCI_DTOR_1MEGA_CYCLES,4,2 ; @AT91C_MCI_DTOR_1MEGA_CYCLES
	.comm	_AT91C_MCI_MR_PDCMODE,4,2       ; @AT91C_MCI_MR_PDCMODE
	.comm	_AT91C_MCI_SDCARD_4BITS_SLOTA,4,2 ; @AT91C_MCI_SDCARD_4BITS_SLOTA
	.comm	_MCI_Device,4,2                 ; @MCI_Device
	.comm	_AT91C_INIT_OK,8,3              ; @AT91C_INIT_OK
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
