	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmio_mmc_do_data_irq           ## -- Begin function tmio_mmc_do_data_irq
	.p2align	4, 0x90
_tmio_mmc_do_data_irq:                  ## @tmio_mmc_do_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	32(%rdi), %rbx
	movq	$0, 32(%rdi)
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.1:
	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), %r15
	movl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %r14
	cmpq	$0, 24(%r12)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_tmio_mmc_check_bounce_buffer
	jmp	LBB0_7
LBB0_14:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_4:
	leaq	L_.str.3(%rip), %r14
LBB0_7:
	movq	8(%r12), %rdi
	movq	16(%r12), %rdx
	movq	%r14, %rsi
	callq	_dev_dbg
	testq	%r15, %r15
	je	LBB0_13
## %bb.8:
	movq	16(%r12), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.9:
	movq	(%r15), %rdx
	movq	16(%r15), %rcx
	movq	_MMC_STOP_TRANSMISSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_11
## %bb.10:
	testq	%rcx, %rcx
	je	LBB0_12
LBB0_11:
	movq	8(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
LBB0_12:
	movq	_CTL_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sd_ctrl_read16_and_16_as_32
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_CTL_STOP_INTERNAL_ACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sd_ctrl_write16
LBB0_13:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## 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
L_.str.2:                               ## @.str.2
	.asciz	"Complete Rx request %p\n"

L_.str.3:                               ## @.str.3
	.asciz	"Complete Tx request %p\n"

	.comm	_MMC_STOP_TRANSMISSION,8,3      ## @MMC_STOP_TRANSMISSION
L_.str.4:                               ## @.str.4
	.asciz	"unsupported stop: CMD%u,0x%x. We did CMD12,0\n"

	.comm	_CTL_RESPONSE,4,2               ## @CTL_RESPONSE
	.comm	_CTL_STOP_INTERNAL_ACTION,4,2   ## @CTL_STOP_INTERNAL_ACTION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tmio_mmc_do_data_irq           ; -- Begin function tmio_mmc_do_data_irq
	.p2align	2
_tmio_mmc_do_data_irq:                  ; @tmio_mmc_do_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	x19, x0
	ldr	x21, [x0, #32]
	str	xzr, [x0, #32]
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x20, [x21, #24]
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w8, #0
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, 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	_dev_warn
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:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_tmio_mmc_check_bounce_buffer
LBB0_8:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	ldp	x0, x2, [x19, #8]
	bl	_dev_dbg
	cbz	x20, LBB0_15
; %bb.11:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbnz	w8, LBB0_15
; %bb.12:
	ldr	x2, [x20]
Lloh11:
	adrp	x8, _MMC_STOP_TRANSMISSION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMC_STOP_TRANSMISSION@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x3, [x20, #16]
	cmp	x2, x8
	ccmp	x3, #0, #0, eq
	b.eq	LBB0_14
; %bb.13:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
LBB0_14:
Lloh16:
	adrp	x8, _CTL_RESPONSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CTL_RESPONSE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sd_ctrl_read16_and_16_as_32
	ldr	x8, [x20, #8]
	str	w0, [x8]
Lloh19:
	adrp	x8, _CTL_STOP_INTERNAL_ACTION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CTL_STOP_INTERNAL_ACTION@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_sd_ctrl_write16
LBB0_15:
	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	_schedule_work
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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
l_.str.2:                               ; @.str.2
	.asciz	"Complete Rx request %p\n"

l_.str.3:                               ; @.str.3
	.asciz	"Complete Tx request %p\n"

	.comm	_MMC_STOP_TRANSMISSION,8,3      ; @MMC_STOP_TRANSMISSION
l_.str.4:                               ; @.str.4
	.asciz	"unsupported stop: CMD%u,0x%x. We did CMD12,0\n"

	.comm	_CTL_RESPONSE,4,2               ; @CTL_RESPONSE
	.comm	_CTL_STOP_INTERNAL_ACTION,4,2   ; @CTL_STOP_INTERNAL_ACTION
.subsections_via_symbols
