	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_mci_handle_cmdrdy
_at91_mci_handle_cmdrdy:                ## @at91_mci_handle_cmdrdy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.4:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_AT91_MCI_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AT91_MCI_TXBUFE@GOTPCREL(%rip), %rax
	movq	_AT91_MCI_BLKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_at91_mci_write
	movq	_ATMEL_PDC_TXTEN@GOTPCREL(%rip), %rax
	movq	_ATMEL_PDC_PTCR@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	_FL_SENT_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_8
## %bb.3:
	movq	_AT91_MCI_NOTBUSY@GOTPCREL(%rip), %rax
	movq	_AT91_MCI_IER@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_at91_mci_write
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FL_SENT_STOP,4,2               ## @FL_SENT_STOP
	.comm	_AT91_MCI_IER,4,2               ## @AT91_MCI_IER
	.comm	_AT91_MCI_NOTBUSY,4,2           ## @AT91_MCI_NOTBUSY
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_AT91_MCI_TXBUFE,4,2            ## @AT91_MCI_TXBUFE
	.comm	_AT91_MCI_BLKE,4,2              ## @AT91_MCI_BLKE
	.comm	_ATMEL_PDC_PTCR,4,2             ## @ATMEL_PDC_PTCR
	.comm	_ATMEL_PDC_TXTEN,4,2            ## @ATMEL_PDC_TXTEN
	.no_dead_strip	_at91_mci_handle_cmdrdy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_mci_handle_cmdrdy
_at91_mci_handle_cmdrdy:                ; @at91_mci_handle_cmdrdy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MMC_DATA_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _AT91_MCI_IER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AT91_MCI_IER@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AT91_MCI_TXBUFE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AT91_MCI_TXBUFE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _AT91_MCI_BLKE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AT91_MCI_BLKE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_at91_mci_write
Lloh12:
	adrp	x8, _ATMEL_PDC_TXTEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATMEL_PDC_TXTEN@GOTPAGEOFF]
Lloh14:
	adrp	x9, _ATMEL_PDC_PTCR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATMEL_PDC_PTCR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _FL_SENT_STOP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FL_SENT_STOP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
Lloh19:
	adrp	x8, _AT91_MCI_NOTBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AT91_MCI_NOTBUSY@GOTPAGEOFF]
Lloh21:
	adrp	x9, _AT91_MCI_IER@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AT91_MCI_IER@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_at91_mci_write
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FL_SENT_STOP,4,2               ; @FL_SENT_STOP
	.comm	_AT91_MCI_IER,4,2               ; @AT91_MCI_IER
	.comm	_AT91_MCI_NOTBUSY,4,2           ; @AT91_MCI_NOTBUSY
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_AT91_MCI_TXBUFE,4,2            ; @AT91_MCI_TXBUFE
	.comm	_AT91_MCI_BLKE,4,2              ; @AT91_MCI_BLKE
	.comm	_ATMEL_PDC_PTCR,4,2             ; @ATMEL_PDC_PTCR
	.comm	_ATMEL_PDC_TXTEN,4,2            ; @ATMEL_PDC_TXTEN
	.no_dead_strip	_at91_mci_handle_cmdrdy
.subsections_via_symbols
