	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	$0, (%rdi)
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	xorl	%eax, %eax
	cmpl	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %eax
	imull	4(%rbx), %eax
LBB0_3:
	movq	24(%rbx), %r14
	movl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%rbx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_TMIO_MASK_WRITEOP@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
LBB0_4:
	movq	_TMIO_MASK_READOP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_disable_mmc_irqs
	testq	%r14, %r14
	je	LBB0_11
## %bb.7:
	cmpl	$12, (%r14)
	jne	LBB0_10
## %bb.8:
	cmpl	$0, 4(%r14)
	je	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_11
LBB0_9:
	movq	_CTL_STOP_INTERNAL_ACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_sd_ctrl_write16
LBB0_11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tmio_mmc_finish_request        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spurious data end IRQ\n"

L_.str.1:                               ## @.str.1
	.asciz	"Completed data request\n"

	.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
	.comm	_CTL_STOP_INTERNAL_ACTION,4,2   ## @CTL_STOP_INTERNAL_ACTION
	.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	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
	ldr	x21, [x0]
	str	xzr, [x0]
	cbz	x21, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x20, [x21, #24]
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w8, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	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	_pr_debug
LBB0_4:
	ldp	w8, w9, [x21, #4]
	mul	w8, w9, w8
LBB0_5:
	str	w8, [x21]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x21, #12]
Lloh4:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh6:
	adrp	x10, _TMIO_MASK_WRITEOP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TMIO_MASK_WRITEOP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x11, _TMIO_MASK_READOP@GOTPAGE
Lloh10:
	ldr	x11, [x11, _TMIO_MASK_READOP@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_disable_mmc_irqs
	cbz	x20, LBB0_10
; %bb.6:
	ldr	w8, [x20]
	cmp	w8, #12
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_9
LBB0_8:
	bl	_BUG
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _CTL_STOP_INTERNAL_ACTION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CTL_STOP_INTERNAL_ACTION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_sd_ctrl_write16
LBB0_10:
	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	_tmio_mmc_finish_request
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spurious data end IRQ\n"

l_.str.1:                               ; @.str.1
	.asciz	"Completed data request\n"

	.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
	.comm	_CTL_STOP_INTERNAL_ACTION,4,2   ; @CTL_STOP_INTERNAL_ACTION
	.no_dead_strip	_tmio_mmc_data_irq
.subsections_via_symbols
