	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxamci_dma_irq
_pxamci_dma_irq:                        ## @pxamci_dma_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	movq	40(%rbx,%rdx,8), %rdi
	movl	32(%rbx), %esi
	leaq	-24(%rbp), %rdx
	callq	_dmaengine_tx_status
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_BUF_PART_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MMC_PRTBUF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	jmp	LBB0_4
LBB0_3:
	movl	16(%rbx), %edi
	callq	_mmc_hostname
	movq	8(%rbx), %rcx
	movl	(%r14), %edx
	andl	(%rcx), %edx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	8(%rbx), %rax
	movl	%ecx, 4(%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pxamci_data_done
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_DMA_COMPLETE,4,2               ## @DMA_COMPLETE
	.comm	_BUF_PART_FULL,4,2              ## @BUF_PART_FULL
	.comm	_MMC_PRTBUF,8,3                 ## @MMC_PRTBUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: DMA error on %s channel\n"

L_.str.1:                               ## @.str.1
	.asciz	"rx"

L_.str.2:                               ## @.str.2
	.asciz	"tx"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pxamci_dma_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxamci_dma_irq
_pxamci_dma_irq:                        ; @pxamci_dma_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x8]
Lloh0:
	adrp	x20, _MMC_DATA_READ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MMC_DATA_READ@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	mov	w8, #48
	mov	w9, #40
	csel	x8, x9, x8, eq
	ldr	x0, [x19, x8]
	ldr	w1, [x19, #32]
	add	x2, sp, #8
	bl	_dmaengine_tx_status
Lloh2:
	adrp	x8, _DMA_COMPLETE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_COMPLETE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _BUF_PART_FULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUF_PART_FULL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
Lloh8:
	adrp	x9, _MMC_PRTBUF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMC_PRTBUF@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_mmc_hostname
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x20]
Lloh11:
	adrp	x10, l_.str.1@PAGE
Lloh12:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh13:
	adrp	x11, l_.str.2@PAGE
Lloh14:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x2, x11, x10, eq
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x19, #8]
	str	w8, [x9, #4]
	mov	x0, x19
	mov	w1, #0
	bl	_pxamci_data_done
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_DMA_COMPLETE,4,2               ; @DMA_COMPLETE
	.comm	_BUF_PART_FULL,4,2              ; @BUF_PART_FULL
	.comm	_MMC_PRTBUF,8,3                 ; @MMC_PRTBUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: DMA error on %s channel\n"

l_.str.1:                               ; @.str.1
	.asciz	"rx"

l_.str.2:                               ; @.str.2
	.asciz	"tx"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pxamci_dma_irq
.subsections_via_symbols
