	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_mci_irq
_at91_mci_irq:                          ## @at91_mci_irq
	.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	%rsi, %r14
	movq	_AT91_MCI_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_at91_mci_read
	movl	%eax, %ebx
	movq	_AT91_MCI_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_at91_mci_read
	movl	%eax, %r12d
	andl	%ebx, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_AT91_MCI_ERRORS@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_19
## %bb.1:
	movq	_AT91_MCI_UNRE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_3:
	movq	_AT91_MCI_OVRE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_5:
	movq	_AT91_MCI_DTOE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_7:
	movq	_AT91_MCI_DCRCE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_9:
	movq	_AT91_MCI_RTOE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_11:
	movq	_AT91_MCI_RENDE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_13:
	movq	_AT91_MCI_RCRCE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_15:
	movq	_AT91_MCI_RDIRE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_17
## %bb.16:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_17:
	movq	_AT91_MCI_RINDE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_48
## %bb.18:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_48
LBB0_19:
	movq	_AT91_MCI_TXBUFE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_21
## %bb.20:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_at91_mci_handle_transmitted
LBB0_21:
	movq	_AT91_MCI_ENDRX@GOTPCREL(%rip), %r15
	testl	%r12d, (%r15)
	je	LBB0_23
## %bb.22:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_at91_mci_post_dma_read
LBB0_23:
	movq	_AT91_MCI_RXBUFF@GOTPCREL(%rip), %rbx
	testl	%r12d, (%rbx)
	je	LBB0_24
## %bb.25:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ATMEL_PDC_PTCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATMEL_PDC_RXTDIS@GOTPCREL(%rip), %rax
	movq	_ATMEL_PDC_TXTDIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_at91_mci_write
	movq	_AT91_MCI_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	orl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_at91_mci_write
	movl	$1, %ebx
	jmp	LBB0_26
LBB0_24:
	xorl	%ebx, %ebx
LBB0_26:
	movq	_AT91_MCI_ENDTX@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_28
## %bb.27:
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_28:
	movq	_AT91_MCI_NOTBUSY@GOTPCREL(%rip), %r13
	testl	%r12d, (%r13)
	je	LBB0_30
## %bb.29:
	leaq	L_.str.14(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_at91_mci_update_bytes_xfered
	movl	$1, %ebx
LBB0_30:
	movq	_AT91_MCI_DTIP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_32
## %bb.31:
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_32:
	movq	_AT91_MCI_BLKE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_36
## %bb.33:
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movl	$1, %r15d
	cmpl	$1, (%rax)
	jg	LBB0_37
LBB0_35:
	movq	_AT91_MCI_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_at91_mci_write
LBB0_36:
	movl	%ebx, %r15d
LBB0_37:
	movq	_AT91_MCI_SDIOIRQA@GOTPCREL(%rip), %r13
	testl	%r12d, (%r13)
	je	LBB0_39
## %bb.38:
	movl	(%r14), %edi
	callq	_mmc_signal_sdio_irq
LBB0_39:
	movq	_AT91_MCI_SDIOIRQB@GOTPCREL(%rip), %rbx
	testl	%r12d, (%rbx)
	je	LBB0_41
## %bb.40:
	movl	(%r14), %edi
	callq	_mmc_signal_sdio_irq
LBB0_41:
	movq	_AT91_MCI_TXRDY@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_43
## %bb.42:
	leaq	L_.str.17(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_43:
	movq	_AT91_MCI_RXRDY@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_45
## %bb.44:
	leaq	L_.str.18(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_45:
	movq	_AT91_MCI_CMDRDY@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_47
## %bb.46:
	leaq	L_.str.19(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_at91_mci_handle_cmdrdy
	movl	%eax, %r15d
LBB0_47:
	testl	%r15d, %r15d
	je	LBB0_49
LBB0_48:
	leaq	L_.str.20(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_AT91_MCI_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AT91_MCI_SDIOIRQA@GOTPCREL(%rip), %rax
	movq	_AT91_MCI_SDIOIRQB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	movq	%r14, %rdi
	callq	_at91_mci_write
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_at91_mci_completed_command
LBB0_50:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_49:
	movq	_AT91_MCI_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %eax
	orl	(%r13), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_at91_mci_write
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_MCI_SR,4,2                ## @AT91_MCI_SR
	.comm	_AT91_MCI_IMR,4,2               ## @AT91_MCI_IMR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCI irq: status = %08X, %08X, %08X\n"

	.comm	_AT91_MCI_ERRORS,4,2            ## @AT91_MCI_ERRORS
	.comm	_AT91_MCI_UNRE,4,2              ## @AT91_MCI_UNRE
L_.str.1:                               ## @.str.1
	.asciz	"MMC: Underrun error\n"

	.comm	_AT91_MCI_OVRE,4,2              ## @AT91_MCI_OVRE
L_.str.2:                               ## @.str.2
	.asciz	"MMC: Overrun error\n"

	.comm	_AT91_MCI_DTOE,4,2              ## @AT91_MCI_DTOE
L_.str.3:                               ## @.str.3
	.asciz	"MMC: Data timeout\n"

	.comm	_AT91_MCI_DCRCE,4,2             ## @AT91_MCI_DCRCE
L_.str.4:                               ## @.str.4
	.asciz	"MMC: CRC error in data\n"

	.comm	_AT91_MCI_RTOE,4,2              ## @AT91_MCI_RTOE
L_.str.5:                               ## @.str.5
	.asciz	"MMC: Response timeout\n"

	.comm	_AT91_MCI_RENDE,4,2             ## @AT91_MCI_RENDE
L_.str.6:                               ## @.str.6
	.asciz	"MMC: Response end bit error\n"

	.comm	_AT91_MCI_RCRCE,4,2             ## @AT91_MCI_RCRCE
L_.str.7:                               ## @.str.7
	.asciz	"MMC: Response CRC error\n"

	.comm	_AT91_MCI_RDIRE,4,2             ## @AT91_MCI_RDIRE
L_.str.8:                               ## @.str.8
	.asciz	"MMC: Response direction error\n"

	.comm	_AT91_MCI_RINDE,4,2             ## @AT91_MCI_RINDE
L_.str.9:                               ## @.str.9
	.asciz	"MMC: Response index error\n"

	.comm	_AT91_MCI_TXBUFE,4,2            ## @AT91_MCI_TXBUFE
L_.str.10:                              ## @.str.10
	.asciz	"TX buffer empty\n"

	.comm	_AT91_MCI_ENDRX,4,2             ## @AT91_MCI_ENDRX
L_.str.11:                              ## @.str.11
	.asciz	"ENDRX\n"

	.comm	_AT91_MCI_RXBUFF,4,2            ## @AT91_MCI_RXBUFF
L_.str.12:                              ## @.str.12
	.asciz	"RX buffer full\n"

	.comm	_ATMEL_PDC_PTCR,4,2             ## @ATMEL_PDC_PTCR
	.comm	_ATMEL_PDC_RXTDIS,4,2           ## @ATMEL_PDC_RXTDIS
	.comm	_ATMEL_PDC_TXTDIS,4,2           ## @ATMEL_PDC_TXTDIS
	.comm	_AT91_MCI_IDR,4,2               ## @AT91_MCI_IDR
	.comm	_AT91_MCI_ENDTX,4,2             ## @AT91_MCI_ENDTX
L_.str.13:                              ## @.str.13
	.asciz	"Transmit has ended\n"

	.comm	_AT91_MCI_NOTBUSY,4,2           ## @AT91_MCI_NOTBUSY
L_.str.14:                              ## @.str.14
	.asciz	"Card is ready\n"

	.comm	_AT91_MCI_DTIP,4,2              ## @AT91_MCI_DTIP
L_.str.15:                              ## @.str.15
	.asciz	"Data transfer in progress\n"

	.comm	_AT91_MCI_BLKE,4,2              ## @AT91_MCI_BLKE
L_.str.16:                              ## @.str.16
	.asciz	"Block transfer has ended\n"

	.comm	_AT91_MCI_IER,4,2               ## @AT91_MCI_IER
	.comm	_AT91_MCI_SDIOIRQA,4,2          ## @AT91_MCI_SDIOIRQA
	.comm	_AT91_MCI_SDIOIRQB,4,2          ## @AT91_MCI_SDIOIRQB
	.comm	_AT91_MCI_TXRDY,4,2             ## @AT91_MCI_TXRDY
L_.str.17:                              ## @.str.17
	.asciz	"Ready to transmit\n"

	.comm	_AT91_MCI_RXRDY,4,2             ## @AT91_MCI_RXRDY
L_.str.18:                              ## @.str.18
	.asciz	"Ready to receive\n"

	.comm	_AT91_MCI_CMDRDY,4,2            ## @AT91_MCI_CMDRDY
L_.str.19:                              ## @.str.19
	.asciz	"Command ready\n"

L_.str.20:                              ## @.str.20
	.asciz	"Completed command\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_at91_mci_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_mci_irq
_at91_mci_irq:                          ; @at91_mci_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
Lloh0:
	adrp	x8, _AT91_MCI_SR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_MCI_SR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_mci_read
	mov	x21, x0
Lloh3:
	adrp	x8, _AT91_MCI_IMR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AT91_MCI_IMR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_mci_read
                                        ; kill: def $w0 killed $w0 def $x0
	and	w20, w0, w21
	stp	x0, x20, [sp, #8]
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh8:
	adrp	x8, _AT91_MCI_ERRORS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AT91_MCI_ERRORS@GOTPAGEOFF]
Lloh10:
	adrp	x24, _AT91_MCI_IDR@GOTPAGE
Lloh11:
	ldr	x24, [x24, _AT91_MCI_IDR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x23, _AT91_MCI_SDIOIRQA@GOTPAGE
Lloh14:
	ldr	x23, [x23, _AT91_MCI_SDIOIRQA@GOTPAGEOFF]
Lloh15:
	adrp	x22, _AT91_MCI_SDIOIRQB@GOTPAGE
Lloh16:
	ldr	x22, [x22, _AT91_MCI_SDIOIRQB@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.1:
Lloh17:
	adrp	x8, _AT91_MCI_UNRE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AT91_MCI_UNRE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_3:
Lloh22:
	adrp	x8, _AT91_MCI_OVRE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AT91_MCI_OVRE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_5:
Lloh27:
	adrp	x8, _AT91_MCI_DTOE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AT91_MCI_DTOE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
LBB0_7:
Lloh32:
	adrp	x8, _AT91_MCI_DCRCE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AT91_MCI_DCRCE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
LBB0_9:
Lloh37:
	adrp	x8, _AT91_MCI_RTOE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AT91_MCI_RTOE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
LBB0_11:
Lloh42:
	adrp	x8, _AT91_MCI_RENDE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AT91_MCI_RENDE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_debug
LBB0_13:
Lloh47:
	adrp	x8, _AT91_MCI_RCRCE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AT91_MCI_RCRCE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
Lloh50:
	adrp	x0, l_.str.7@PAGE
Lloh51:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_debug
LBB0_15:
Lloh52:
	adrp	x8, _AT91_MCI_RDIRE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AT91_MCI_RDIRE@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.16:
Lloh55:
	adrp	x0, l_.str.8@PAGE
Lloh56:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_debug
LBB0_17:
Lloh57:
	adrp	x8, _AT91_MCI_RINDE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AT91_MCI_RINDE@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_48
; %bb.18:
Lloh60:
	adrp	x0, l_.str.9@PAGE
Lloh61:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_debug
	b	LBB0_48
LBB0_19:
Lloh62:
	adrp	x8, _AT91_MCI_TXBUFE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AT91_MCI_TXBUFE@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_21
; %bb.20:
Lloh65:
	adrp	x0, l_.str.10@PAGE
Lloh66:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_at91_mci_handle_transmitted
LBB0_21:
Lloh67:
	adrp	x21, _AT91_MCI_ENDRX@GOTPAGE
Lloh68:
	ldr	x21, [x21, _AT91_MCI_ENDRX@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_23
; %bb.22:
Lloh69:
	adrp	x0, l_.str.11@PAGE
Lloh70:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_at91_mci_post_dma_read
LBB0_23:
Lloh71:
	adrp	x25, _AT91_MCI_RXBUFF@GOTPAGE
Lloh72:
	ldr	x25, [x25, _AT91_MCI_RXBUFF@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.24:
Lloh73:
	adrp	x0, l_.str.12@PAGE
Lloh74:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_pr_debug
Lloh75:
	adrp	x8, _ATMEL_PDC_PTCR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ATMEL_PDC_PTCR@GOTPAGEOFF]
Lloh77:
	adrp	x9, _ATMEL_PDC_RXTDIS@GOTPAGE
Lloh78:
	ldr	x9, [x9, _ATMEL_PDC_RXTDIS@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
Lloh80:
	ldr	w8, [x9]
Lloh81:
	adrp	x9, _ATMEL_PDC_TXTDIS@GOTPAGE
Lloh82:
	ldr	x9, [x9, _ATMEL_PDC_TXTDIS@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_at91_mci_write
	ldr	w1, [x24]
	ldr	w8, [x25]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_at91_mci_write
	mov	w21, #1
	b	LBB0_26
LBB0_25:
	mov	w21, #0
LBB0_26:
Lloh84:
	adrp	x8, _AT91_MCI_ENDTX@GOTPAGE
Lloh85:
	ldr	x8, [x8, _AT91_MCI_ENDTX@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_28
; %bb.27:
Lloh87:
	adrp	x0, l_.str.13@PAGE
Lloh88:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_pr_debug
LBB0_28:
Lloh89:
	adrp	x25, _AT91_MCI_NOTBUSY@GOTPAGE
Lloh90:
	ldr	x25, [x25, _AT91_MCI_NOTBUSY@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_30
; %bb.29:
Lloh91:
	adrp	x0, l_.str.14@PAGE
Lloh92:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_at91_mci_update_bytes_xfered
	mov	w21, #1
LBB0_30:
Lloh93:
	adrp	x8, _AT91_MCI_DTIP@GOTPAGE
Lloh94:
	ldr	x8, [x8, _AT91_MCI_DTIP@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_32
; %bb.31:
Lloh96:
	adrp	x0, l_.str.15@PAGE
Lloh97:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_pr_debug
LBB0_32:
Lloh98:
	adrp	x8, _AT91_MCI_BLKE@GOTPAGE
Lloh99:
	ldr	x8, [x8, _AT91_MCI_BLKE@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_37
; %bb.33:
Lloh101:
	adrp	x0, l_.str.16@PAGE
Lloh102:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_36
; %bb.34:
	ldr	w8, [x8]
	cmp	w8, #1
	b.le	LBB0_36
; %bb.35:
	mov	w21, #1
	b	LBB0_37
LBB0_36:
Lloh103:
	adrp	x8, _AT91_MCI_IER@GOTPAGE
Lloh104:
	ldr	x8, [x8, _AT91_MCI_IER@GOTPAGEOFF]
Lloh105:
	ldr	w1, [x8]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_at91_mci_write
LBB0_37:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_39
; %bb.38:
	ldr	w0, [x19]
	bl	_mmc_signal_sdio_irq
LBB0_39:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_41
; %bb.40:
	ldr	w0, [x19]
	bl	_mmc_signal_sdio_irq
LBB0_41:
Lloh106:
	adrp	x8, _AT91_MCI_TXRDY@GOTPAGE
Lloh107:
	ldr	x8, [x8, _AT91_MCI_TXRDY@GOTPAGEOFF]
Lloh108:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_43
; %bb.42:
Lloh109:
	adrp	x0, l_.str.17@PAGE
Lloh110:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_pr_debug
LBB0_43:
Lloh111:
	adrp	x8, _AT91_MCI_RXRDY@GOTPAGE
Lloh112:
	ldr	x8, [x8, _AT91_MCI_RXRDY@GOTPAGEOFF]
Lloh113:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_45
; %bb.44:
Lloh114:
	adrp	x0, l_.str.18@PAGE
Lloh115:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_pr_debug
LBB0_45:
Lloh116:
	adrp	x8, _AT91_MCI_CMDRDY@GOTPAGE
Lloh117:
	ldr	x8, [x8, _AT91_MCI_CMDRDY@GOTPAGEOFF]
Lloh118:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_47
; %bb.46:
Lloh119:
	adrp	x0, l_.str.19@PAGE
Lloh120:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_at91_mci_handle_cmdrdy
	mov	x21, x0
LBB0_47:
	cbz	w21, LBB0_50
LBB0_48:
Lloh121:
	adrp	x0, l_.str.20@PAGE
Lloh122:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_pr_debug
	ldr	w1, [x24]
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w9, w8
	mvn	w2, w8
	mov	x0, x19
	bl	_at91_mci_write
	mov	x0, x19
	mov	x1, x20
	bl	_at91_mci_completed_command
LBB0_49:
Lloh123:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh124:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh125:
	ldr	w0, [x8]
	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
	add	sp, sp, #112
	ret
LBB0_50:
	ldr	w1, [x24]
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w9, w8
	bic	w2, w20, w8
	mov	x0, x19
	bl	_at91_mci_write
	b	LBB0_49
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh79
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpAdd	Lloh119, Lloh120
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_MCI_SR,4,2                ; @AT91_MCI_SR
	.comm	_AT91_MCI_IMR,4,2               ; @AT91_MCI_IMR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCI irq: status = %08X, %08X, %08X\n"

	.comm	_AT91_MCI_ERRORS,4,2            ; @AT91_MCI_ERRORS
	.comm	_AT91_MCI_UNRE,4,2              ; @AT91_MCI_UNRE
l_.str.1:                               ; @.str.1
	.asciz	"MMC: Underrun error\n"

	.comm	_AT91_MCI_OVRE,4,2              ; @AT91_MCI_OVRE
l_.str.2:                               ; @.str.2
	.asciz	"MMC: Overrun error\n"

	.comm	_AT91_MCI_DTOE,4,2              ; @AT91_MCI_DTOE
l_.str.3:                               ; @.str.3
	.asciz	"MMC: Data timeout\n"

	.comm	_AT91_MCI_DCRCE,4,2             ; @AT91_MCI_DCRCE
l_.str.4:                               ; @.str.4
	.asciz	"MMC: CRC error in data\n"

	.comm	_AT91_MCI_RTOE,4,2              ; @AT91_MCI_RTOE
l_.str.5:                               ; @.str.5
	.asciz	"MMC: Response timeout\n"

	.comm	_AT91_MCI_RENDE,4,2             ; @AT91_MCI_RENDE
l_.str.6:                               ; @.str.6
	.asciz	"MMC: Response end bit error\n"

	.comm	_AT91_MCI_RCRCE,4,2             ; @AT91_MCI_RCRCE
l_.str.7:                               ; @.str.7
	.asciz	"MMC: Response CRC error\n"

	.comm	_AT91_MCI_RDIRE,4,2             ; @AT91_MCI_RDIRE
l_.str.8:                               ; @.str.8
	.asciz	"MMC: Response direction error\n"

	.comm	_AT91_MCI_RINDE,4,2             ; @AT91_MCI_RINDE
l_.str.9:                               ; @.str.9
	.asciz	"MMC: Response index error\n"

	.comm	_AT91_MCI_TXBUFE,4,2            ; @AT91_MCI_TXBUFE
l_.str.10:                              ; @.str.10
	.asciz	"TX buffer empty\n"

	.comm	_AT91_MCI_ENDRX,4,2             ; @AT91_MCI_ENDRX
l_.str.11:                              ; @.str.11
	.asciz	"ENDRX\n"

	.comm	_AT91_MCI_RXBUFF,4,2            ; @AT91_MCI_RXBUFF
l_.str.12:                              ; @.str.12
	.asciz	"RX buffer full\n"

	.comm	_ATMEL_PDC_PTCR,4,2             ; @ATMEL_PDC_PTCR
	.comm	_ATMEL_PDC_RXTDIS,4,2           ; @ATMEL_PDC_RXTDIS
	.comm	_ATMEL_PDC_TXTDIS,4,2           ; @ATMEL_PDC_TXTDIS
	.comm	_AT91_MCI_IDR,4,2               ; @AT91_MCI_IDR
	.comm	_AT91_MCI_ENDTX,4,2             ; @AT91_MCI_ENDTX
l_.str.13:                              ; @.str.13
	.asciz	"Transmit has ended\n"

	.comm	_AT91_MCI_NOTBUSY,4,2           ; @AT91_MCI_NOTBUSY
l_.str.14:                              ; @.str.14
	.asciz	"Card is ready\n"

	.comm	_AT91_MCI_DTIP,4,2              ; @AT91_MCI_DTIP
l_.str.15:                              ; @.str.15
	.asciz	"Data transfer in progress\n"

	.comm	_AT91_MCI_BLKE,4,2              ; @AT91_MCI_BLKE
l_.str.16:                              ; @.str.16
	.asciz	"Block transfer has ended\n"

	.comm	_AT91_MCI_IER,4,2               ; @AT91_MCI_IER
	.comm	_AT91_MCI_SDIOIRQA,4,2          ; @AT91_MCI_SDIOIRQA
	.comm	_AT91_MCI_SDIOIRQB,4,2          ; @AT91_MCI_SDIOIRQB
	.comm	_AT91_MCI_TXRDY,4,2             ; @AT91_MCI_TXRDY
l_.str.17:                              ; @.str.17
	.asciz	"Ready to transmit\n"

	.comm	_AT91_MCI_RXRDY,4,2             ; @AT91_MCI_RXRDY
l_.str.18:                              ; @.str.18
	.asciz	"Ready to receive\n"

	.comm	_AT91_MCI_CMDRDY,4,2            ; @AT91_MCI_CMDRDY
l_.str.19:                              ; @.str.19
	.asciz	"Command ready\n"

l_.str.20:                              ; @.str.20
	.asciz	"Completed command\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_at91_mci_irq
.subsections_via_symbols
