	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_cmd_irq
_tmio_mmc_cmd_irq:                      ## @tmio_mmc_cmd_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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	24(%rdi), %r12
	callq	_spin_lock
	cmpq	$0, 24(%r15)
	je	LBB0_1
## %bb.2:
	movq	_CTL_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sd_ctrl_read16_and_16_as_32
	movq	(%r12), %rcx
	movl	%eax, 12(%rcx)
	leal	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_sd_ctrl_read16_and_16_as_32
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx)
	leal	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_sd_ctrl_read16_and_16_as_32
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	addl	$12, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sd_ctrl_read16_and_16_as_32
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movl	8(%r12), %edx
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_4
## %bb.3:
	shll	$8, %eax
	movl	4(%rcx), %edx
	movl	8(%rcx), %esi
	movl	%edx, %edi
	sarl	$24, %edi
	orl	%eax, %edi
	movl	%edi, (%rcx)
	shll	$8, %edx
	movl	%esi, %eax
	sarl	$24, %eax
	orl	%edx, %eax
	movl	%eax, 4(%rcx)
	shll	$8, %esi
	movl	12(%rcx), %eax
	movl	%eax, %edx
	sarl	$24, %edx
	orl	%esi, %edx
	movl	%edx, 8(%rcx)
	shll	$8, %eax
	movl	%eax, 12(%rcx)
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_24
LBB0_4:
	movq	_MMC_RSP_R3@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	12(%rcx), %eax
	movl	%eax, (%rcx)
LBB0_6:
	movq	_TMIO_STAT_CMDTIMEOUT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 12(%r12)
LBB0_14:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	movl	12(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.16:
	movq	_EILSEQ@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	jne	LBB0_23
LBB0_17:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	12(%r15), %ecx
	testl	%edx, (%rax)
	je	LBB0_21
## %bb.18:
	movq	_TMIO_MASK_READOP@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_23:
	leaq	4(%r15), %rdi
	callq	_schedule_work
	jmp	LBB0_24
LBB0_8:
	movq	_TMIO_STAT_CRCFAIL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.9:
	movq	_MMC_RSP_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_11
## %bb.10:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_TMIO_STAT_STOPBIT_ERR@GOTPCREL(%rip), %rcx
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rcx)
	jne	LBB0_13
## %bb.12:
	movq	_TMIO_STAT_CMD_IDX_ERR@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_13
	jmp	LBB0_14
LBB0_21:
	movq	_TMIO_MASK_WRITEOP@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	movq	%r15, %rdi
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.22:
	callq	_tmio_mmc_disable_mmc_irqs
	leaq	8(%r15), %rdi
	callq	_tasklet_schedule
	jmp	LBB0_24
LBB0_20:
	callq	_tmio_mmc_enable_mmc_irqs
LBB0_24:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spurious CMD irq\n"

	.comm	_CTL_RESPONSE,4,2               ## @CTL_RESPONSE
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_MMC_RSP_R3,4,2                 ## @MMC_RSP_R3
	.comm	_TMIO_STAT_CMDTIMEOUT,4,2       ## @TMIO_STAT_CMDTIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_TMIO_STAT_CRCFAIL,4,2          ## @TMIO_STAT_CRCFAIL
	.comm	_MMC_RSP_CRC,4,2                ## @MMC_RSP_CRC
	.comm	_TMIO_STAT_STOPBIT_ERR,4,2      ## @TMIO_STAT_STOPBIT_ERR
	.comm	_TMIO_STAT_CMD_IDX_ERR,4,2      ## @TMIO_STAT_CMD_IDX_ERR
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.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_cmd_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_cmd_irq
_tmio_mmc_cmd_irq:                      ; @tmio_mmc_cmd_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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #24]
	bl	_spin_lock
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _CTL_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_sd_ctrl_read16_and_16_as_32
	ldr	x8, [x22]
	str	w0, [x8, #12]
	add	w1, w21, #4
	mov	x0, x19
	bl	_sd_ctrl_read16_and_16_as_32
	ldr	x8, [x22]
	str	w0, [x8, #8]
	add	w1, w21, #8
	mov	x0, x19
	bl	_sd_ctrl_read16_and_16_as_32
	ldr	x8, [x22]
	str	w0, [x8, #4]
	add	w1, w21, #12
	mov	x0, x19
	bl	_sd_ctrl_read16_and_16_as_32
	ldr	x8, [x22]
	str	w0, [x8]
	ldr	w9, [x22, #8]
Lloh3:
	adrp	x10, _MMC_RSP_136@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMC_RSP_136@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldp	w9, w10, [x8, #4]
	asr	w11, w9, #24
	orr	w11, w11, w0, lsl #8
	asr	w12, w10, #24
	orr	w9, w12, w9, lsl #8
	stp	w11, w9, [x8]
	ldr	w9, [x8, #12]
	asr	w11, w9, #24
	orr	w10, w11, w10, lsl #8
	lsl	w9, w9, #8
	stp	w10, w9, [x8, #8]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	b	LBB0_24
LBB0_4:
Lloh8:
	adrp	x10, _MMC_RSP_R3@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MMC_RSP_R3@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x8, #12]
	str	w9, [x8]
LBB0_6:
Lloh11:
	adrp	x8, _TMIO_STAT_CMDTIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TMIO_STAT_CMDTIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh16:
	adrp	x8, _TMIO_STAT_CRCFAIL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TMIO_STAT_CRCFAIL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x22, #8]
Lloh19:
	adrp	x9, _MMC_RSP_CRC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MMC_RSP_CRC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
LBB0_10:
Lloh22:
	adrp	x8, _TMIO_STAT_STOPBIT_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TMIO_STAT_STOPBIT_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_12
; %bb.11:
Lloh25:
	adrp	x8, _TMIO_STAT_CMD_IDX_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TMIO_STAT_CMD_IDX_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
LBB0_12:
Lloh28:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x22, #12]
LBB0_14:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_19
; %bb.15:
	ldr	w9, [x22, #12]
	cbz	w9, LBB0_17
; %bb.16:
Lloh30:
	adrp	x10, _EILSEQ@GOTPAGE
Lloh31:
	ldr	x10, [x10, _EILSEQ@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	cmn	w9, w10
	b.ne	LBB0_19
LBB0_17:
	ldr	w9, [x8]
Lloh33:
	adrp	x8, _MMC_DATA_READ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MMC_DATA_READ@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x8]
	ldr	w8, [x19, #12]
	tst	w10, w9
	b.eq	LBB0_20
; %bb.18:
Lloh36:
	adrp	x9, _TMIO_MASK_READOP@GOTPAGE
Lloh37:
	ldr	x9, [x9, _TMIO_MASK_READOP@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
	add	x0, x19, #4
	bl	_schedule_work
	b	LBB0_24
LBB0_20:
Lloh38:
	adrp	x9, _TMIO_MASK_WRITEOP@GOTPAGE
Lloh39:
	ldr	x9, [x9, _TMIO_MASK_WRITEOP@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x9]
	mov	x0, x19
	cbz	w8, LBB0_23
; %bb.22:
	bl	_tmio_mmc_disable_mmc_irqs
	add	x0, x19, #8
	bl	_tasklet_schedule
	b	LBB0_24
LBB0_23:
	bl	_tmio_mmc_enable_mmc_irqs
LBB0_24:
	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	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spurious CMD irq\n"

	.comm	_CTL_RESPONSE,4,2               ; @CTL_RESPONSE
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_MMC_RSP_R3,4,2                 ; @MMC_RSP_R3
	.comm	_TMIO_STAT_CMDTIMEOUT,4,2       ; @TMIO_STAT_CMDTIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_TMIO_STAT_CRCFAIL,4,2          ; @TMIO_STAT_CRCFAIL
	.comm	_MMC_RSP_CRC,4,2                ; @MMC_RSP_CRC
	.comm	_TMIO_STAT_STOPBIT_ERR,4,2      ; @TMIO_STAT_STOPBIT_ERR
	.comm	_TMIO_STAT_CMD_IDX_ERR,4,2      ; @TMIO_STAT_CMD_IDX_ERR
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.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_cmd_irq
.subsections_via_symbols
