	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cvm_mmc_interrupt              ## -- Begin function cvm_mmc_interrupt
	.p2align	4, 0x90
_cvm_mmc_interrupt:                     ## @cvm_mmc_interrupt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	callq	___acquire
LBB0_3:
	movq	48(%r13), %rbx
	movq	%r13, %rdi
	callq	_MIO_EMM_INT
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readq
	movl	%eax, %r14d
	movq	48(%r13), %rbx
	movq	%r13, %rdi
	callq	_MIO_EMM_INT
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_writeq
	movq	_MIO_EMM_INT_SWITCH_ERR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_check_switch_errors
LBB0_5:
	movq	32(%r13), %r15
	testq	%r15, %r15
	je	LBB0_32
## %bb.6:
	movq	48(%r13), %rbx
	movq	%r13, %rdi
	callq	_MIO_EMM_RSP_STS
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readq
	movl	%eax, %r12d
	movq	_MIO_EMM_RSP_STS_DMA_VAL@GOTPCREL(%rip), %rcx
	movq	40(%r13), %rax
	testl	%r12d, (%rcx)
	je	LBB0_8
## %bb.7:
	testq	%rax, %rax
	jne	LBB0_32
	jmp	LBB0_9
LBB0_8:
	testq	%rax, %rax
	jne	LBB0_15
LBB0_9:
	cmpq	$0, 8(%r15)
	je	LBB0_15
## %bb.10:
	movq	_MIO_EMM_INT_BUF_DONE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.11:
	movl	%r12d, %eax
	shrl	$7, %eax
	andl	$3, %eax
	cmpl	$2, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.13:
	movq	_MIO_EMM_RSP_STS_DBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r12d, %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_do_read
	jmp	LBB0_15
LBB0_14:
	movq	%r15, %rdi
	callq	_do_write
LBB0_15:
	movq	_MIO_EMM_INT_CMD_DONE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_20
## %bb.16:
	movq	_MIO_EMM_INT_DMA_DONE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_20
## %bb.17:
	movq	_MIO_EMM_INT_CMD_ERR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_20
## %bb.18:
	movq	_MIO_EMM_INT_DMA_ERR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_19
LBB0_20:
	movb	$1, %bl
	cmpq	$0, (%r15)
	je	LBB0_28
## %bb.21:
	movl	%r12d, %edi
	callq	_check_status
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	cmpq	$0, 40(%r13)
	je	LBB0_24
## %bb.22:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.23:
	movq	%r13, %rdi
	callq	_finish_dma
	testl	%eax, %eax
	je	LBB0_28
LBB0_24:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_set_cmd_response
	movq	_MIO_EMM_INT_DMA_ERR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_27
## %bb.25:
	movq	_MIO_EMM_RSP_STS_DMA_PEND@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_27
## %bb.26:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_cleanup_dma
LBB0_27:
	movq	$0, 32(%r13)
	movq	%r15, %rdi
	callq	*(%r15)
LBB0_28:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	%r13, %rdi
	callq	*%rax
LBB0_30:
	testb	%bl, %bl
	je	LBB0_32
## %bb.31:
	movq	%r13, %rdi
	callq	*16(%r13)
LBB0_32:
	cmpq	$0, 8(%r13)
	je	LBB0_34
## %bb.33:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_35
LBB0_34:
	movq	%r13, %rdi
	callq	___release
LBB0_35:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setne	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_MIO_EMM_INT_SWITCH_ERR,4,2     ## @MIO_EMM_INT_SWITCH_ERR
	.comm	_MIO_EMM_RSP_STS_DMA_VAL,4,2    ## @MIO_EMM_RSP_STS_DMA_VAL
	.comm	_MIO_EMM_INT_BUF_DONE,4,2       ## @MIO_EMM_INT_BUF_DONE
	.comm	_MIO_EMM_RSP_STS_DBUF,4,2       ## @MIO_EMM_RSP_STS_DBUF
	.comm	_MIO_EMM_INT_CMD_DONE,4,2       ## @MIO_EMM_INT_CMD_DONE
	.comm	_MIO_EMM_INT_DMA_DONE,4,2       ## @MIO_EMM_INT_DMA_DONE
	.comm	_MIO_EMM_INT_CMD_ERR,4,2        ## @MIO_EMM_INT_CMD_ERR
	.comm	_MIO_EMM_INT_DMA_ERR,4,2        ## @MIO_EMM_INT_DMA_ERR
	.comm	_MIO_EMM_RSP_STS_DMA_PEND,4,2   ## @MIO_EMM_RSP_STS_DMA_PEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cvm_mmc_interrupt              ; -- Begin function cvm_mmc_interrupt
	.p2align	2
_cvm_mmc_interrupt:                     ; @cvm_mmc_interrupt
	.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, x1
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	___acquire
LBB0_3:
	ldr	x20, [x19, #48]
	mov	x0, x19
	bl	_MIO_EMM_INT
	add	x0, x0, x20
	bl	_readq
	mov	x20, x0
	ldr	x21, [x19, #48]
	mov	x0, x19
	bl	_MIO_EMM_INT
	add	x1, x0, x21
	mov	x0, x20
	bl	_writeq
Lloh0:
	adrp	x8, _MIO_EMM_INT_SWITCH_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIO_EMM_INT_SWITCH_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_check_switch_errors
LBB0_5:
	ldr	x21, [x19, #32]
	cbz	x21, LBB0_31
; %bb.6:
	ldr	x22, [x19, #48]
	mov	x0, x19
	bl	_MIO_EMM_RSP_STS
	add	x0, x0, x22
	bl	_readq
	mov	x22, x0
Lloh3:
	adrp	x8, _MIO_EMM_RSP_STS_DMA_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIO_EMM_RSP_STS_DMA_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	x8, [x19, #40]
	tst	w9, w0
	b.eq	LBB0_8
; %bb.7:
	cbnz	x8, LBB0_31
	b	LBB0_9
LBB0_8:
	cbnz	x8, LBB0_15
LBB0_9:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_15
; %bb.10:
Lloh6:
	adrp	x8, _MIO_EMM_INT_BUF_DONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIO_EMM_INT_BUF_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.11:
	ubfx	w8, w22, #7, #2
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.12:
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.13:
Lloh9:
	adrp	x8, _MIO_EMM_RSP_STS_DBUF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MIO_EMM_RSP_STS_DBUF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w2, w8, w22
	mov	x0, x19
	mov	x1, x21
	bl	_do_read
	b	LBB0_15
LBB0_14:
	mov	x0, x21
	bl	_do_write
LBB0_15:
Lloh12:
	adrp	x8, _MIO_EMM_INT_CMD_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIO_EMM_INT_CMD_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_19
; %bb.16:
Lloh15:
	adrp	x8, _MIO_EMM_INT_DMA_DONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIO_EMM_INT_DMA_DONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_19
; %bb.17:
Lloh18:
	adrp	x8, _MIO_EMM_INT_CMD_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MIO_EMM_INT_CMD_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_19
; %bb.18:
Lloh21:
	adrp	x8, _MIO_EMM_INT_DMA_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MIO_EMM_INT_DMA_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_35
LBB0_19:
	ldr	x8, [x21]
	cbz	x8, LBB0_27
; %bb.20:
	mov	x0, x22
	bl	_check_status
	ldr	x8, [x21, #16]
	str	w0, [x8]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_23
; %bb.21:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_finish_dma
	cbz	w0, LBB0_27
LBB0_23:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_set_cmd_response
Lloh24:
	adrp	x8, _MIO_EMM_INT_DMA_ERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MIO_EMM_INT_DMA_ERR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_26
; %bb.24:
Lloh27:
	adrp	x8, _MIO_EMM_RSP_STS_DMA_PEND@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MIO_EMM_RSP_STS_DMA_PEND@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x19
	mov	x1, x22
	bl	_cleanup_dma
LBB0_26:
	str	xzr, [x19, #32]
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
LBB0_27:
	mov	w21, #1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_29
LBB0_28:
	mov	x0, x19
	blr	x8
LBB0_29:
	cbz	w21, LBB0_31
; %bb.30:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
LBB0_31:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_33
; %bb.32:
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	b	LBB0_34
LBB0_33:
	mov	x0, x19
	bl	___release
LBB0_34:
	cmp	w20, #0
	cset	w0, ne
	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	_IRQ_RETVAL
LBB0_35:
	mov	w21, #0
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_28
	b	LBB0_29
	.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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MIO_EMM_INT_SWITCH_ERR,4,2     ; @MIO_EMM_INT_SWITCH_ERR
	.comm	_MIO_EMM_RSP_STS_DMA_VAL,4,2    ; @MIO_EMM_RSP_STS_DMA_VAL
	.comm	_MIO_EMM_INT_BUF_DONE,4,2       ; @MIO_EMM_INT_BUF_DONE
	.comm	_MIO_EMM_RSP_STS_DBUF,4,2       ; @MIO_EMM_RSP_STS_DBUF
	.comm	_MIO_EMM_INT_CMD_DONE,4,2       ; @MIO_EMM_INT_CMD_DONE
	.comm	_MIO_EMM_INT_DMA_DONE,4,2       ; @MIO_EMM_INT_DMA_DONE
	.comm	_MIO_EMM_INT_CMD_ERR,4,2        ; @MIO_EMM_INT_CMD_ERR
	.comm	_MIO_EMM_INT_DMA_ERR,4,2        ; @MIO_EMM_INT_DMA_ERR
	.comm	_MIO_EMM_RSP_STS_DMA_PEND,4,2   ; @MIO_EMM_RSP_STS_DMA_PEND
.subsections_via_symbols
