	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_MCI_SDCard_Init          ## -- Begin function AT91F_MCI_SDCard_Init
	.p2align	4, 0x90
_AT91F_MCI_SDCard_Init:                 ## @AT91F_MCI_SDCard_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_AT91C_GO_IDLE_STATE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AT91C_NO_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_AT91F_MCI_SendCommand
	movq	%rbx, %rdi
	callq	_AT91F_MCI_SDCard_GetOCR
	movq	_AT91C_INIT_ERROR@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_8
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_AT91F_MCI_SDCard_GetCID
	movq	_AT91C_CMD_SEND_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.2:
	movq	_AT91C_SD_CARD_INSERTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 40(%rcx)
	movq	_AT91C_SET_RELATIVE_ADDR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_AT91F_MCI_SendCommand
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.3:
	movq	_AT91C_BASE_MCI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movswl	2(%rax), %esi
	movq	(%rbx), %rax
	movl	%esi, (%rax)
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_AT91F_MCI_GetCSD
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.4:
	movl	-44(%rbp), %r8d
	movq	_AT91C_CSD_RD_B_LEN_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %r8d
	movq	_AT91C_CSD_RD_B_LEN_M@GOTPCREL(%rip), %rax
	andl	(%rax), %r8d
	movl	$1, %eax
	movl	%r8d, %ecx
	shll	%cl, %eax
	movq	(%rbx), %rdi
	movl	%eax, 4(%rdi)
	movl	-36(%rbp), %edx
	movq	_AT91C_CSD_WBLEN_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %edx
	movq	_AT91C_CSD_WBLEN_M@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	$1, %eax
	movl	%edx, %ecx
	shll	%cl, %eax
	movl	%eax, 8(%rdi)
	movl	-40(%rbp), %r9d
	movq	_AT91C_CSD_v21_SECT_SIZE_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r9d, %eax
	shrl	%cl, %eax
	movq	_AT91C_CSD_v21_SECT_SIZE_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	incl	%eax
	movl	%eax, 12(%rdi)
	movl	-44(%rbp), %eax
	movq	_AT91C_CSD_RD_B_PAR_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	shrl	%cl, %edx
	movq	_AT91C_CSD_RD_B_PAR_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	%edx, 16(%rdi)
	movl	-36(%rbp), %esi
	movq	_AT91C_CSD_WBLOCK_P_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %edx
	shrl	%cl, %edx
	movq	_AT91C_CSD_WBLOCK_P_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	%edx, 20(%rdi)
	movq	_AT91C_CSD_v21_ER_BLEN_EN_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %esi
	movq	_AT91C_CSD_v21_ER_BLEN_EN_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movl	%esi, 24(%rdi)
	movq	_AT91C_CSD_RD_B_MIS_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	shrl	%cl, %edx
	movq	_AT91C_CSD_RD_B_MIS_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	%edx, 28(%rdi)
	movq	_AT91C_CSD_WR_B_MIS_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	shrl	%cl, %edx
	movq	_AT91C_CSD_WR_B_MIS_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	%edx, 32(%rdi)
	movq	_AT91C_CSD_C_SIZE_M_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r9d, %edx
	shrl	%cl, %edx
	movq	_AT91C_CSD_C_SIZE_M_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_AT91C_CSD_CSIZE_H_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movq	_AT91C_CSD_CSIZE_H_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_AT91C_CSD_CSIZE_L_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %r9d
	movq	_AT91C_CSD_CSIZE_L_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r9d
	leal	(%r9,%rax,4), %esi
	incl	%esi
	addb	$2, %dl
	movl	%edx, %ecx
	shll	%cl, %esi
	movl	%r8d, %ecx
	shll	%cl, %esi
	movl	%esi, 36(%rdi)
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	%rbx, %rdi
	callq	_AT91F_MCI_SDCard_SetBusWidth
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_AT91F_MCI_SetBlocklength
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:
	movq	_AT91C_INIT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movl	(%r14), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91C_GO_IDLE_STATE_CMD,4,2    ## @AT91C_GO_IDLE_STATE_CMD
	.comm	_AT91C_NO_ARGUMENT,4,2          ## @AT91C_NO_ARGUMENT
	.comm	_AT91C_INIT_ERROR,8,3           ## @AT91C_INIT_ERROR
	.comm	_AT91C_CMD_SEND_OK,8,3          ## @AT91C_CMD_SEND_OK
	.comm	_AT91C_SD_CARD_INSERTED,4,2     ## @AT91C_SD_CARD_INSERTED
	.comm	_AT91C_SET_RELATIVE_ADDR_CMD,4,2 ## @AT91C_SET_RELATIVE_ADDR_CMD
	.comm	_AT91C_BASE_MCI,8,3             ## @AT91C_BASE_MCI
	.comm	_AT91C_CSD_RD_B_LEN_S,4,2       ## @AT91C_CSD_RD_B_LEN_S
	.comm	_AT91C_CSD_RD_B_LEN_M,4,2       ## @AT91C_CSD_RD_B_LEN_M
	.comm	_AT91C_CSD_WBLEN_S,4,2          ## @AT91C_CSD_WBLEN_S
	.comm	_AT91C_CSD_WBLEN_M,4,2          ## @AT91C_CSD_WBLEN_M
	.comm	_AT91C_CSD_v21_SECT_SIZE_S,4,2  ## @AT91C_CSD_v21_SECT_SIZE_S
	.comm	_AT91C_CSD_v21_SECT_SIZE_M,4,2  ## @AT91C_CSD_v21_SECT_SIZE_M
	.comm	_AT91C_CSD_RD_B_PAR_S,4,2       ## @AT91C_CSD_RD_B_PAR_S
	.comm	_AT91C_CSD_RD_B_PAR_M,4,2       ## @AT91C_CSD_RD_B_PAR_M
	.comm	_AT91C_CSD_WBLOCK_P_S,4,2       ## @AT91C_CSD_WBLOCK_P_S
	.comm	_AT91C_CSD_WBLOCK_P_M,4,2       ## @AT91C_CSD_WBLOCK_P_M
	.comm	_AT91C_CSD_v21_ER_BLEN_EN_S,4,2 ## @AT91C_CSD_v21_ER_BLEN_EN_S
	.comm	_AT91C_CSD_v21_ER_BLEN_EN_M,4,2 ## @AT91C_CSD_v21_ER_BLEN_EN_M
	.comm	_AT91C_CSD_RD_B_MIS_S,4,2       ## @AT91C_CSD_RD_B_MIS_S
	.comm	_AT91C_CSD_RD_B_MIS_M,4,2       ## @AT91C_CSD_RD_B_MIS_M
	.comm	_AT91C_CSD_WR_B_MIS_S,4,2       ## @AT91C_CSD_WR_B_MIS_S
	.comm	_AT91C_CSD_WR_B_MIS_M,4,2       ## @AT91C_CSD_WR_B_MIS_M
	.comm	_AT91C_CSD_C_SIZE_M_S,4,2       ## @AT91C_CSD_C_SIZE_M_S
	.comm	_AT91C_CSD_C_SIZE_M_M,4,2       ## @AT91C_CSD_C_SIZE_M_M
	.comm	_AT91C_CSD_CSIZE_H_S,4,2        ## @AT91C_CSD_CSIZE_H_S
	.comm	_AT91C_CSD_CSIZE_H_M,4,2        ## @AT91C_CSD_CSIZE_H_M
	.comm	_AT91C_CSD_CSIZE_L_S,4,2        ## @AT91C_CSD_CSIZE_L_S
	.comm	_AT91C_CSD_CSIZE_L_M,4,2        ## @AT91C_CSD_CSIZE_L_M
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SD-Card: %d Bytes\n\r"

	.comm	_AT91C_INIT_OK,4,2              ## @AT91C_INIT_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_MCI_SDCard_Init          ; -- Begin function AT91F_MCI_SDCard_Init
	.p2align	2
_AT91F_MCI_SDCard_Init:                 ; @AT91F_MCI_SDCard_Init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _AT91C_GO_IDLE_STATE_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AT91C_GO_IDLE_STATE_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _AT91C_NO_ARGUMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AT91C_NO_ARGUMENT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_AT91F_MCI_SendCommand
	mov	x0, x19
	bl	_AT91F_MCI_SDCard_GetOCR
Lloh9:
	adrp	x20, _AT91C_INIT_ERROR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _AT91C_INIT_ERROR@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_AT91F_MCI_SDCard_GetCID
Lloh11:
	adrp	x21, _AT91C_CMD_SEND_OK@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AT91C_CMD_SEND_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
Lloh13:
	adrp	x8, _AT91C_SD_CARD_INSERTED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AT91C_SD_CARD_INSERTED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #40]
Lloh16:
	adrp	x8, _AT91C_SET_RELATIVE_ADDR_CMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AT91C_SET_RELATIVE_ADDR_CMD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_AT91F_MCI_SendCommand
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
Lloh19:
	adrp	x8, _AT91C_BASE_MCI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AT91C_BASE_MCI@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldrsh	w1, [x8, #2]
	ldr	x8, [x19]
	str	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_AT91F_MCI_GetCSD
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [sp, #12]
Lloh22:
	adrp	x9, _AT91C_CSD_RD_B_LEN_S@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AT91C_CSD_RD_B_LEN_S@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	lsr	w8, w8, w9
Lloh25:
	adrp	x9, _AT91C_CSD_RD_B_LEN_M@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AT91C_CSD_RD_B_LEN_M@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	and	w8, w8, w9
	mov	w10, #1
	lsl	w11, w10, w8
	ldr	x9, [x19]
	str	w11, [x9, #4]
	ldr	w11, [sp, #20]
Lloh28:
	adrp	x12, _AT91C_CSD_WBLEN_S@GOTPAGE
Lloh29:
	ldr	x12, [x12, _AT91C_CSD_WBLEN_S@GOTPAGEOFF]
Lloh30:
	ldr	w12, [x12]
	lsr	w11, w11, w12
Lloh31:
	adrp	x12, _AT91C_CSD_WBLEN_M@GOTPAGE
Lloh32:
	ldr	x12, [x12, _AT91C_CSD_WBLEN_M@GOTPAGEOFF]
Lloh33:
	ldr	w12, [x12]
	and	w11, w11, w12
	lsl	w10, w10, w11
	str	w10, [x9, #8]
Lloh34:
	adrp	x10, _AT91C_CSD_v21_SECT_SIZE_S@GOTPAGE
Lloh35:
	ldr	x10, [x10, _AT91C_CSD_v21_SECT_SIZE_S@GOTPAGEOFF]
Lloh36:
	ldr	w12, [x10]
	ldp	w11, w10, [sp, #12]
	lsr	w12, w10, w12
Lloh37:
	adrp	x13, _AT91C_CSD_v21_SECT_SIZE_M@GOTPAGE
Lloh38:
	ldr	x13, [x13, _AT91C_CSD_v21_SECT_SIZE_M@GOTPAGEOFF]
Lloh39:
	ldr	w13, [x13]
	and	w12, w12, w13
	add	w12, w12, #1
Lloh40:
	adrp	x13, _AT91C_CSD_RD_B_PAR_S@GOTPAGE
Lloh41:
	ldr	x13, [x13, _AT91C_CSD_RD_B_PAR_S@GOTPAGEOFF]
Lloh42:
	ldr	w13, [x13]
Lloh43:
	adrp	x14, _AT91C_CSD_RD_B_PAR_M@GOTPAGE
Lloh44:
	ldr	x14, [x14, _AT91C_CSD_RD_B_PAR_M@GOTPAGEOFF]
	lsr	w13, w11, w13
Lloh45:
	ldr	w14, [x14]
	and	w13, w13, w14
	stp	w12, w13, [x9, #12]
	ldr	w12, [sp, #20]
Lloh46:
	adrp	x13, _AT91C_CSD_WBLOCK_P_S@GOTPAGE
Lloh47:
	ldr	x13, [x13, _AT91C_CSD_WBLOCK_P_S@GOTPAGEOFF]
Lloh48:
	ldr	w13, [x13]
	lsr	w13, w12, w13
Lloh49:
	adrp	x14, _AT91C_CSD_WBLOCK_P_M@GOTPAGE
Lloh50:
	ldr	x14, [x14, _AT91C_CSD_WBLOCK_P_M@GOTPAGEOFF]
Lloh51:
	ldr	w14, [x14]
	and	w13, w13, w14
Lloh52:
	adrp	x14, _AT91C_CSD_v21_ER_BLEN_EN_S@GOTPAGE
Lloh53:
	ldr	x14, [x14, _AT91C_CSD_v21_ER_BLEN_EN_S@GOTPAGEOFF]
Lloh54:
	ldr	w14, [x14]
	lsr	w12, w12, w14
Lloh55:
	adrp	x14, _AT91C_CSD_v21_ER_BLEN_EN_M@GOTPAGE
Lloh56:
	ldr	x14, [x14, _AT91C_CSD_v21_ER_BLEN_EN_M@GOTPAGEOFF]
Lloh57:
	ldr	w14, [x14]
	and	w12, w12, w14
	stp	w13, w12, [x9, #20]
Lloh58:
	adrp	x12, _AT91C_CSD_RD_B_MIS_S@GOTPAGE
Lloh59:
	ldr	x12, [x12, _AT91C_CSD_RD_B_MIS_S@GOTPAGEOFF]
Lloh60:
	ldr	w12, [x12]
	lsr	w12, w11, w12
Lloh61:
	adrp	x13, _AT91C_CSD_RD_B_MIS_M@GOTPAGE
Lloh62:
	ldr	x13, [x13, _AT91C_CSD_RD_B_MIS_M@GOTPAGEOFF]
Lloh63:
	ldr	w13, [x13]
	and	w12, w12, w13
Lloh64:
	adrp	x13, _AT91C_CSD_WR_B_MIS_S@GOTPAGE
Lloh65:
	ldr	x13, [x13, _AT91C_CSD_WR_B_MIS_S@GOTPAGEOFF]
Lloh66:
	ldr	w13, [x13]
	lsr	w13, w11, w13
Lloh67:
	adrp	x14, _AT91C_CSD_WR_B_MIS_M@GOTPAGE
Lloh68:
	ldr	x14, [x14, _AT91C_CSD_WR_B_MIS_M@GOTPAGEOFF]
Lloh69:
	ldr	w14, [x14]
	and	w13, w13, w14
	stp	w12, w13, [x9, #28]
Lloh70:
	adrp	x12, _AT91C_CSD_C_SIZE_M_S@GOTPAGE
Lloh71:
	ldr	x12, [x12, _AT91C_CSD_C_SIZE_M_S@GOTPAGEOFF]
Lloh72:
	ldr	w12, [x12]
	lsr	w12, w10, w12
Lloh73:
	adrp	x13, _AT91C_CSD_C_SIZE_M_M@GOTPAGE
Lloh74:
	ldr	x13, [x13, _AT91C_CSD_C_SIZE_M_M@GOTPAGEOFF]
Lloh75:
	ldr	w13, [x13]
	and	w12, w12, w13
	add	w12, w12, #2
Lloh76:
	adrp	x13, _AT91C_CSD_CSIZE_H_S@GOTPAGE
Lloh77:
	ldr	x13, [x13, _AT91C_CSD_CSIZE_H_S@GOTPAGEOFF]
Lloh78:
	ldr	w13, [x13]
	lsr	w11, w11, w13
Lloh79:
	adrp	x13, _AT91C_CSD_CSIZE_H_M@GOTPAGE
Lloh80:
	ldr	x13, [x13, _AT91C_CSD_CSIZE_H_M@GOTPAGEOFF]
Lloh81:
	ldr	w13, [x13]
Lloh82:
	adrp	x14, _AT91C_CSD_CSIZE_L_S@GOTPAGE
Lloh83:
	ldr	x14, [x14, _AT91C_CSD_CSIZE_L_S@GOTPAGEOFF]
	and	w11, w11, w13
Lloh84:
	ldr	w13, [x14]
	lsr	w10, w10, w13
Lloh85:
	adrp	x13, _AT91C_CSD_CSIZE_L_M@GOTPAGE
Lloh86:
	ldr	x13, [x13, _AT91C_CSD_CSIZE_L_M@GOTPAGEOFF]
Lloh87:
	ldr	w13, [x13]
	and	w10, w10, w13
	add	w10, w10, w11, lsl #2
	add	w10, w10, #1
	lsl	w10, w10, w12
	lsl	w1, w10, w8
	str	w1, [x9, #36]
Lloh88:
	adrp	x0, l_.str@PAGE
Lloh89:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_AT91F_MCI_SDCard_SetBusWidth
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_AT91F_MCI_SetBlocklength
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
Lloh90:
	adrp	x8, _AT91C_INIT_OK@GOTPAGE
Lloh91:
	ldr	x8, [x8, _AT91C_INIT_OK@GOTPAGEOFF]
Lloh92:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20]
LBB0_8:
	ldr	x8, [sp, #24]
Lloh93:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh94:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91C_GO_IDLE_STATE_CMD,4,2    ; @AT91C_GO_IDLE_STATE_CMD
	.comm	_AT91C_NO_ARGUMENT,4,2          ; @AT91C_NO_ARGUMENT
	.comm	_AT91C_INIT_ERROR,8,3           ; @AT91C_INIT_ERROR
	.comm	_AT91C_CMD_SEND_OK,8,3          ; @AT91C_CMD_SEND_OK
	.comm	_AT91C_SD_CARD_INSERTED,4,2     ; @AT91C_SD_CARD_INSERTED
	.comm	_AT91C_SET_RELATIVE_ADDR_CMD,4,2 ; @AT91C_SET_RELATIVE_ADDR_CMD
	.comm	_AT91C_BASE_MCI,8,3             ; @AT91C_BASE_MCI
	.comm	_AT91C_CSD_RD_B_LEN_S,4,2       ; @AT91C_CSD_RD_B_LEN_S
	.comm	_AT91C_CSD_RD_B_LEN_M,4,2       ; @AT91C_CSD_RD_B_LEN_M
	.comm	_AT91C_CSD_WBLEN_S,4,2          ; @AT91C_CSD_WBLEN_S
	.comm	_AT91C_CSD_WBLEN_M,4,2          ; @AT91C_CSD_WBLEN_M
	.comm	_AT91C_CSD_v21_SECT_SIZE_S,4,2  ; @AT91C_CSD_v21_SECT_SIZE_S
	.comm	_AT91C_CSD_v21_SECT_SIZE_M,4,2  ; @AT91C_CSD_v21_SECT_SIZE_M
	.comm	_AT91C_CSD_RD_B_PAR_S,4,2       ; @AT91C_CSD_RD_B_PAR_S
	.comm	_AT91C_CSD_RD_B_PAR_M,4,2       ; @AT91C_CSD_RD_B_PAR_M
	.comm	_AT91C_CSD_WBLOCK_P_S,4,2       ; @AT91C_CSD_WBLOCK_P_S
	.comm	_AT91C_CSD_WBLOCK_P_M,4,2       ; @AT91C_CSD_WBLOCK_P_M
	.comm	_AT91C_CSD_v21_ER_BLEN_EN_S,4,2 ; @AT91C_CSD_v21_ER_BLEN_EN_S
	.comm	_AT91C_CSD_v21_ER_BLEN_EN_M,4,2 ; @AT91C_CSD_v21_ER_BLEN_EN_M
	.comm	_AT91C_CSD_RD_B_MIS_S,4,2       ; @AT91C_CSD_RD_B_MIS_S
	.comm	_AT91C_CSD_RD_B_MIS_M,4,2       ; @AT91C_CSD_RD_B_MIS_M
	.comm	_AT91C_CSD_WR_B_MIS_S,4,2       ; @AT91C_CSD_WR_B_MIS_S
	.comm	_AT91C_CSD_WR_B_MIS_M,4,2       ; @AT91C_CSD_WR_B_MIS_M
	.comm	_AT91C_CSD_C_SIZE_M_S,4,2       ; @AT91C_CSD_C_SIZE_M_S
	.comm	_AT91C_CSD_C_SIZE_M_M,4,2       ; @AT91C_CSD_C_SIZE_M_M
	.comm	_AT91C_CSD_CSIZE_H_S,4,2        ; @AT91C_CSD_CSIZE_H_S
	.comm	_AT91C_CSD_CSIZE_H_M,4,2        ; @AT91C_CSD_CSIZE_H_M
	.comm	_AT91C_CSD_CSIZE_L_S,4,2        ; @AT91C_CSD_CSIZE_L_S
	.comm	_AT91C_CSD_CSIZE_L_M,4,2        ; @AT91C_CSD_CSIZE_L_M
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SD-Card: %d Bytes\n\r"

	.comm	_AT91C_INIT_OK,4,2              ; @AT91C_INIT_OK
.subsections_via_symbols
