	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_mci_dma_isr
_wmt_mci_dma_isr:                       ## @wmt_mci_dma_isr
	.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	%rsi, %rbx
	movq	_SDDMA_CCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%rsi), %rdi
	callq	_readl
	andl	$15, %eax
	movq	_DMA_CCR_EVT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
	movq	%rbx, %rdi
	callq	_wmt_mci_disable_dma
	movl	8(%rbx), %edi
	callq	_complete
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	callq	_completion_done
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_wmt_complete_data_request
	jmp	LBB0_5
LBB0_1:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	movl	8(%rbx), %edi
	callq	_complete
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDDMA_CCR,8,3                  ## @SDDMA_CCR
	.comm	_DMA_CCR_EVT_SUCCESS,4,2        ## @DMA_CCR_EVT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA Error: Status = %d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_wmt_mci_dma_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_mci_dma_isr
_wmt_mci_dma_isr:                       ; @wmt_mci_dma_isr
	.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
	mov	x19, x1
	ldr	x8, [x1, #32]
Lloh0:
	adrp	x9, _SDDMA_CCR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDDMA_CCR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	and	w2, w0, #0xf
Lloh3:
	adrp	x8, _DMA_CCR_EVT_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_CCR_EVT_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	wzr, [x8]
	mov	x0, x19
	bl	_wmt_mci_disable_dma
	ldr	w0, [x19, #8]
	bl	_complete
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.2:
	bl	_completion_done
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_wmt_complete_data_request
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w0, [x19, #8]
	bl	_complete
LBB0_5:
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SDDMA_CCR,8,3                  ; @SDDMA_CCR
	.comm	_DMA_CCR_EVT_SUCCESS,4,2        ; @DMA_CCR_EVT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA Error: Status = %d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_wmt_mci_dma_isr
.subsections_via_symbols
