	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmci_irq
_mmci_irq:                              ## @mmci_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	%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, %r15
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	_MCI_CMDSENT@GOTPCREL(%rip), %r14
	movq	_MCI_CMDRESPEND@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MMCISTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r15), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_MMCIMASK0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r15), %rdi
	callq	_readl
	movl	%eax, %ebx
	andl	%r12d, %ebx
	movq	_MMCICLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DBG
	movq	_MCI_DATATIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MCI_DATACRCFAIL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MCI_TXUNDERRUN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MCI_RXOVERRUN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MCI_DATAEND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MCI_DATABLOCKEND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mmci_data_irq
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MCI_CMDTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MCI_CMDCRCFAIL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r14), %eax
	orl	(%r13), %eax
	testl	%ebx, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mmci_cmd_irq
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMCISTATUS,8,3                 ## @MMCISTATUS
	.comm	_MMCIMASK0,8,3                  ## @MMCIMASK0
	.comm	_MMCICLEAR,8,3                  ## @MMCICLEAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq0 %08x\n"

	.comm	_MCI_DATACRCFAIL,4,2            ## @MCI_DATACRCFAIL
	.comm	_MCI_DATATIMEOUT,4,2            ## @MCI_DATATIMEOUT
	.comm	_MCI_TXUNDERRUN,4,2             ## @MCI_TXUNDERRUN
	.comm	_MCI_RXOVERRUN,4,2              ## @MCI_RXOVERRUN
	.comm	_MCI_DATAEND,4,2                ## @MCI_DATAEND
	.comm	_MCI_DATABLOCKEND,4,2           ## @MCI_DATABLOCKEND
	.comm	_MCI_CMDCRCFAIL,4,2             ## @MCI_CMDCRCFAIL
	.comm	_MCI_CMDTIMEOUT,4,2             ## @MCI_CMDTIMEOUT
	.comm	_MCI_CMDSENT,4,2                ## @MCI_CMDSENT
	.comm	_MCI_CMDRESPEND,4,2             ## @MCI_CMDRESPEND
	.no_dead_strip	_mmci_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmci_irq
_mmci_irq:                              ; @mmci_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x0, x1
	bl	_spin_lock
Lloh0:
	adrp	x27, _MCI_TXUNDERRUN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MCI_TXUNDERRUN@GOTPAGEOFF]
Lloh2:
	adrp	x28, _MCI_RXOVERRUN@GOTPAGE
Lloh3:
	ldr	x28, [x28, _MCI_RXOVERRUN@GOTPAGEOFF]
Lloh4:
	adrp	x22, _MCI_DATAEND@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MCI_DATAEND@GOTPAGEOFF]
Lloh6:
	adrp	x23, _MCI_DATABLOCKEND@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MCI_DATABLOCKEND@GOTPAGEOFF]
Lloh8:
	adrp	x24, _MCI_CMDCRCFAIL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MCI_CMDCRCFAIL@GOTPAGEOFF]
Lloh10:
	adrp	x25, _MCI_CMDTIMEOUT@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MCI_CMDTIMEOUT@GOTPAGEOFF]
Lloh12:
	adrp	x20, _MCI_CMDSENT@GOTPAGE
Lloh13:
	ldr	x20, [x20, _MCI_CMDSENT@GOTPAGEOFF]
Lloh14:
	adrp	x26, _MCI_CMDRESPEND@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MCI_CMDRESPEND@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w21, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
Lloh16:
	adrp	x9, _MMCISTATUS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MMCISTATUS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19, #24]
Lloh19:
	adrp	x9, _MMCIMASK0@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MMCIMASK0@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	and	w21, w0, w21
	ldr	x8, [x19, #24]
Lloh22:
	adrp	x9, _MMCICLEAR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MMCICLEAR@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	mov	x0, x19
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DBG
	ldr	x1, [x19, #16]
Lloh27:
	adrp	x8, _MCI_DATACRCFAIL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MCI_DATACRCFAIL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _MCI_DATATIMEOUT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MCI_DATATIMEOUT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x22]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w8, w8, w9
	and	w8, w8, w21
	cmp	w8, #0
	ccmp	x1, #0, #4, ne
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x2, x21
	bl	_mmci_data_irq
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w8, w8, w9
	tst	w8, w21
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x2, x21
	bl	_mmci_cmd_irq
	b	LBB0_1
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MMCISTATUS,8,3                 ; @MMCISTATUS
	.comm	_MMCIMASK0,8,3                  ; @MMCIMASK0
	.comm	_MMCICLEAR,8,3                  ; @MMCICLEAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq0 %08x\n"

	.comm	_MCI_DATACRCFAIL,4,2            ; @MCI_DATACRCFAIL
	.comm	_MCI_DATATIMEOUT,4,2            ; @MCI_DATATIMEOUT
	.comm	_MCI_TXUNDERRUN,4,2             ; @MCI_TXUNDERRUN
	.comm	_MCI_RXOVERRUN,4,2              ; @MCI_RXOVERRUN
	.comm	_MCI_DATAEND,4,2                ; @MCI_DATAEND
	.comm	_MCI_DATABLOCKEND,4,2           ; @MCI_DATABLOCKEND
	.comm	_MCI_CMDCRCFAIL,4,2             ; @MCI_CMDCRCFAIL
	.comm	_MCI_CMDTIMEOUT,4,2             ; @MCI_CMDTIMEOUT
	.comm	_MCI_CMDSENT,4,2                ; @MCI_CMDSENT
	.comm	_MCI_CMDRESPEND,4,2             ; @MCI_CMDRESPEND
	.no_dead_strip	_mmci_irq
.subsections_via_symbols
