	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_data_irq
_tmio_mmc_data_irq:                     ## @tmio_mmc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_spin_lock
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	_TMIO_STAT_CRCFAIL@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_TMIO_STAT_STOPBIT_ERR@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_TMIO_STAT_TXUNDERRUN@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movl	%edx, 4(%rax)
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.6:
	movl	(%rax), %eax
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.7:
	movq	_CTL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sd_ctrl_read16_and_16_as_32
	movq	16(%rbx), %rcx
	movq	_TMIO_MMC_HAS_IDLE_WAIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_TMIO_STAT_SCLKDIVEN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_10
	jmp	LBB0_13
LBB0_11:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_10
LBB0_12:
	movq	%rbx, %rdi
	callq	_tmio_mmc_do_data_irq
	movq	_TMIO_MASK_READOP@GOTPCREL(%rip), %rax
	movq	_TMIO_MASK_WRITEOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tmio_mmc_disable_mmc_irqs
	jmp	LBB0_13
LBB0_9:
	movq	_TMIO_STAT_CMD_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
LBB0_10:
	movq	_TMIO_STAT_DATAEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tmio_mmc_disable_mmc_irqs
	movq	%rbx, %rdi
	callq	_tmio_mmc_dataend_dma
LBB0_13:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TMIO_STAT_CRCFAIL,4,2          ## @TMIO_STAT_CRCFAIL
	.comm	_TMIO_STAT_STOPBIT_ERR,4,2      ## @TMIO_STAT_STOPBIT_ERR
	.comm	_TMIO_STAT_TXUNDERRUN,4,2       ## @TMIO_STAT_TXUNDERRUN
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_CTL_STATUS,4,2                 ## @CTL_STATUS
	.comm	_TMIO_MMC_HAS_IDLE_WAIT,4,2     ## @TMIO_MMC_HAS_IDLE_WAIT
	.comm	_TMIO_STAT_SCLKDIVEN,4,2        ## @TMIO_STAT_SCLKDIVEN
	.comm	_TMIO_STAT_CMD_BUSY,4,2         ## @TMIO_STAT_CMD_BUSY
	.comm	_TMIO_STAT_DATAEND,4,2          ## @TMIO_STAT_DATAEND
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_TMIO_MASK_READOP,4,2           ## @TMIO_MASK_READOP
	.comm	_TMIO_MASK_WRITEOP,4,2          ## @TMIO_MASK_WRITEOP
	.no_dead_strip	_tmio_mmc_data_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmio_mmc_data_irq
_tmio_mmc_data_irq:                     ; @tmio_mmc_data_irq
	.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	x20, x1
	mov	x19, x0
	bl	_spin_lock
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.1:
Lloh0:
	adrp	x9, _TMIO_STAT_CRCFAIL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TMIO_STAT_CRCFAIL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _TMIO_STAT_STOPBIT_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TMIO_STAT_STOPBIT_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _TMIO_STAT_TXUNDERRUN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TMIO_STAT_TXUNDERRUN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_5
LBB0_4:
Lloh9:
	adrp	x9, _EILSEQ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EILSEQ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	neg	w9, w9
	str	w9, [x8, #4]
LBB0_5:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_10
; %bb.6:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MMC_DATA_WRITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh15:
	adrp	x8, _CTL_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CTL_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sd_ctrl_read16_and_16_as_32
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _TMIO_MMC_HAS_IDLE_WAIT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TMIO_MMC_HAS_IDLE_WAIT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
Lloh21:
	adrp	x8, _TMIO_STAT_SCLKDIVEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TMIO_STAT_SCLKDIVEN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_12
	b	LBB0_13
LBB0_9:
Lloh24:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_tmio_mmc_do_data_irq
Lloh27:
	adrp	x8, _TMIO_MASK_READOP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TMIO_MASK_READOP@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _TMIO_MASK_WRITEOP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TMIO_MASK_WRITEOP@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_tmio_mmc_disable_mmc_irqs
	b	LBB0_13
LBB0_11:
Lloh33:
	adrp	x8, _TMIO_STAT_CMD_BUSY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TMIO_STAT_CMD_BUSY@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_13
LBB0_12:
Lloh36:
	adrp	x8, _TMIO_STAT_DATAEND@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TMIO_STAT_DATAEND@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tmio_mmc_disable_mmc_irqs
	mov	x0, x19
	bl	_tmio_mmc_dataend_dma
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TMIO_STAT_CRCFAIL,4,2          ; @TMIO_STAT_CRCFAIL
	.comm	_TMIO_STAT_STOPBIT_ERR,4,2      ; @TMIO_STAT_STOPBIT_ERR
	.comm	_TMIO_STAT_TXUNDERRUN,4,2       ; @TMIO_STAT_TXUNDERRUN
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_CTL_STATUS,4,2                 ; @CTL_STATUS
	.comm	_TMIO_MMC_HAS_IDLE_WAIT,4,2     ; @TMIO_MMC_HAS_IDLE_WAIT
	.comm	_TMIO_STAT_SCLKDIVEN,4,2        ; @TMIO_STAT_SCLKDIVEN
	.comm	_TMIO_STAT_CMD_BUSY,4,2         ; @TMIO_STAT_CMD_BUSY
	.comm	_TMIO_STAT_DATAEND,4,2          ; @TMIO_STAT_DATAEND
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_TMIO_MASK_READOP,4,2           ; @TMIO_MASK_READOP
	.comm	_TMIO_MASK_WRITEOP,4,2          ; @TMIO_MASK_WRITEOP
	.no_dead_strip	_tmio_mmc_data_irq
.subsections_via_symbols
