	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_sd_external_dma_callback
_uniphier_sd_external_dma_callback:     ## @uniphier_sd_external_dma_callback
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_uniphier_sd_priv
	movq	%rax, %r15
	movl	24(%rbx), %edi
	callq	_mmc_dev
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	movl	(%r15), %ecx
	movl	%eax, %edi
	callq	_dma_unmap_sg
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movq	_DMA_TRANS_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_TMIO_STAT_DATAEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tmio_mmc_enable_mmc_irqs
	jmp	LBB0_3
LBB0_2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	8(%rbx), %rax
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_tmio_mmc_do_data_irq
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TRANS_NOERROR,8,3          ## @DMA_TRANS_NOERROR
	.comm	_TMIO_STAT_DATAEND,4,2          ## @TMIO_STAT_DATAEND
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_uniphier_sd_external_dma_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_sd_external_dma_callback
_uniphier_sd_external_dma_callback:     ; @uniphier_sd_external_dma_callback
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_uniphier_sd_priv
	mov	x21, x0
	ldr	w0, [x19, #24]
	bl	_mmc_dev
	ldp	w2, w1, [x19, #16]
	ldr	w3, [x21]
	bl	_dma_unmap_sg
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _DMA_TRANS_NOERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_TRANS_NOERROR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _TMIO_STAT_DATAEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TMIO_STAT_DATAEND@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tmio_mmc_enable_mmc_irqs
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x19, #8]
	str	w8, [x9]
	mov	x0, x19
	bl	_tmio_mmc_do_data_irq
LBB0_3:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TRANS_NOERROR,8,3          ; @DMA_TRANS_NOERROR
	.comm	_TMIO_STAT_DATAEND,4,2          ; @TMIO_STAT_DATAEND
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_uniphier_sd_external_dma_callback
.subsections_via_symbols
