	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmci_data_irq
_mmci_data_irq:                         ## @mmci_data_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_MCI_DATABLOCKEND@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	16(%r14), %eax
	addl	%eax, 16(%r15)
LBB0_2:
	movq	_MCI_DATACRCFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MCI_DATATIMEOUT@GOTPCREL(%rip), %rdx
	movq	_MCI_TXUNDERRUN@GOTPCREL(%rip), %rsi
	movq	_MCI_RXOVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rsi), %eax
	movl	(%rdx), %edx
	movl	%ecx, %esi
	orl	%edx, %esi
	orl	%eax, %esi
	testl	%ebx, %esi
	je	LBB0_13
## %bb.3:
	testl	%ebx, %ecx
	je	LBB0_5
## %bb.4:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	testl	%ebx, %edx
	je	LBB0_7
## %bb.6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	testl	%ebx, %eax
	je	LBB0_10
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 12(%r14)
LBB0_10:
	movq	_MCI_DATAEND@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.11:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_13
## %bb.12:
	movl	(%r15), %edi
	callq	_sg_page
	movl	%eax, %edi
	callq	_flush_dcache_page
LBB0_13:
	movq	_MCI_DATAEND@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_16
## %bb.14:
	movq	%r15, %rdi
	callq	_mmci_stop_data
	movl	4(%r14), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.15:
	movq	%r15, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmci_start_command             ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	8(%r14), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmci_request_end               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_DATABLOCKEND,4,2           ## @MCI_DATABLOCKEND
	.comm	_MCI_DATACRCFAIL,4,2            ## @MCI_DATACRCFAIL
	.comm	_MCI_DATATIMEOUT,4,2            ## @MCI_DATATIMEOUT
	.comm	_MCI_TXUNDERRUN,4,2             ## @MCI_TXUNDERRUN
	.comm	_MCI_RXOVERRUN,4,2              ## @MCI_RXOVERRUN
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MCI_DATAEND,4,2                ## @MCI_DATAEND
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.no_dead_strip	_mmci_data_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmci_data_irq
_mmci_data_irq:                         ; @mmci_data_irq
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MCI_DATABLOCKEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_DATABLOCKEND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x20, #16]
	ldr	w9, [x19, #16]
	add	w8, w9, w8
	str	w8, [x19, #16]
LBB0_2:
Lloh3:
	adrp	x8, _MCI_DATACRCFAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCI_DATACRCFAIL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _MCI_DATATIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCI_DATATIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x10, _MCI_TXUNDERRUN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MCI_TXUNDERRUN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _MCI_RXOVERRUN@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MCI_RXOVERRUN@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w10, w11, w10
	orr	w11, w10, w9
	orr	w11, w11, w8
Lloh15:
	adrp	x22, _MCI_DATAEND@GOTPAGE
Lloh16:
	ldr	x22, [x22, _MCI_DATAEND@GOTPAGEOFF]
	tst	w11, w21
	b.eq	LBB0_13
; %bb.3:
	tst	w9, w21
	b.eq	LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	tst	w10, w21
	b.eq	LBB0_10
; %bb.8:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20, #12]
LBB0_10:
	ldr	w8, [x22]
	orr	w21, w8, w21
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	w8, [x20]
Lloh23:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x19]
	bl	_sg_page
	bl	_flush_dcache_page
LBB0_13:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_mmci_stop_data
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_17
; %bb.15:
	mov	x0, x19
	mov	w2, #0
	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	_mmci_start_command
LBB0_16:
	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
	ret
LBB0_17:
	ldr	w1, [x20, #8]
	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	_mmci_request_end
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_DATABLOCKEND,4,2           ; @MCI_DATABLOCKEND
	.comm	_MCI_DATACRCFAIL,4,2            ; @MCI_DATACRCFAIL
	.comm	_MCI_DATATIMEOUT,4,2            ; @MCI_DATATIMEOUT
	.comm	_MCI_TXUNDERRUN,4,2             ; @MCI_TXUNDERRUN
	.comm	_MCI_RXOVERRUN,4,2              ; @MCI_RXOVERRUN
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MCI_DATAEND,4,2                ; @MCI_DATAEND
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.no_dead_strip	_mmci_data_irq
.subsections_via_symbols
