	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	4(%rsi), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_MMCICLEAR@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_mmci_cmd_irq
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_mmci_data_irq
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	movl	8(%rax), %eax
	notl	%eax
	testl	%eax, %r13d
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MMCISTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	cmpq	$0, 40(%rbx)
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_mmci_pio_irq
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MMCIMASK0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%rbx), %rdi
	callq	_readl
	movl	%eax, %r13d
	andl	%r14d, %r13d
	movq	8(%rbx), %rax
	cmpq	$0, 24(%rax)
	movl	%r13d, %edi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rax), %edi
	notl	%edi
	andl	%r13d, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rsi
	addq	32(%rbx), %rsi
	callq	_writel
	movl	24(%rbx), %edi
	callq	_mmc_dev
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_dev_dbg
	movq	8(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_mmci_data_irq
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_mmci_cmd_irq
	jmp	LBB0_10
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movl	$1, %edi
	addq	$24, %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 (data+cmd) %08x\n"

	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x24, _MMCISTATUS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MMCISTATUS@GOTPAGEOFF]
Lloh2:
	adrp	x25, _MMCIMASK0@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MMCIMASK0@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x26, _MMCICLEAR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MMCICLEAR@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, #20]
	mov	x0, x20
	mov	x2, x23
	bl	_mmci_cmd_irq
	ldr	w1, [x20, #16]
	mov	x0, x20
	mov	x2, x23
	bl	_mmci_data_irq
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #8]
	bics	wzr, w23, w8
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	x23, x0
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	tst	w8, w23
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_mmci_pio_irq
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	bic	w23, w23, w8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	and	w23, w0, w23
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #24]
	mov	x0, x23
	cbz	x9, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8, #4]
	bic	w0, w23, w8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #24]
	bl	_mmc_dev
	mov	x1, x22
	mov	x2, x23
	bl	_dev_dbg
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, #16]
	mov	x0, x20
	mov	x2, x23
	bl	_mmci_data_irq
	ldr	w1, [x20, #20]
	mov	x0, x20
	mov	x2, x23
	bl	_mmci_cmd_irq
	b	LBB0_2
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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 (data+cmd) %08x\n"

	.no_dead_strip	_mmci_irq
.subsections_via_symbols
