	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cqhci_error_irq
_cqhci_error_irq:                       ## @cqhci_error_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_CQHCI_TERRI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cqhci_readl
	movl	%eax, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	movl	%r14d, %r12d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_pr_debug
	cmpq	$0, 16(%r15)
	je	LBB0_1
LBB0_15:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	cmpl	$0, 24(%r15)
	je	LBB0_2
## %bb.3:
	movl	%r12d, %edi
	callq	_CQHCI_TERRI_C_VALID
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	%r12d, %edi
	callq	_CQHCI_TERRI_C_TASK
	movq	8(%r15), %r14
	movslq	%eax, %rbx
	shlq	$4, %rbx
	cmpq	$0, (%r14,%rbx)
	je	LBB0_6
## %bb.5:
	leaq	(%r14,%rbx), %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_cqhci_error_flags
	movq	%rax, 8(%r14,%rbx)
	movq	(%r13), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_cqhci_recovery_needed
LBB0_6:
	movl	%r12d, %edi
	callq	_CQHCI_TERRI_D_VALID
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	%r12d, %edi
	callq	_CQHCI_TERRI_D_TASK
	movq	8(%r15), %r14
	movslq	%eax, %rbx
	shlq	$4, %rbx
	cmpq	$0, (%r14,%rbx)
	je	LBB0_9
## %bb.8:
	leaq	(%r14,%rbx), %r13
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_cqhci_error_flags
	movq	%rax, 8(%r14,%rbx)
	movq	(%r13), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_cqhci_recovery_needed
LBB0_9:
	cmpq	$0, 16(%r15)
	jne	LBB0_15
## %bb.10:
	movq	_NUM_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:
	movq	8(%r15), %r14
	shlq	$4, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14,%rbx)
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_12
	jmp	LBB0_15
LBB0_2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mmc_hostname
	movl	%r12d, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_WARN_ONCE
	jmp	LBB0_15
LBB0_13:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_cqhci_error_flags
	movq	%rax, 8(%r14,%rbx)
	movq	(%r14,%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_cqhci_recovery_needed
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_CQHCI_TERRI,4,2                ## @CQHCI_TERRI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cqhci: error IRQ status: 0x%08x cmd error %d data error %d TERRI: 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: cqhci: error when idle. IRQ status: 0x%08x cmd error %d data error %d TERRI: 0x%08x\n"

	.comm	_NUM_SLOTS,4,2                  ## @NUM_SLOTS
	.no_dead_strip	_cqhci_error_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cqhci_error_irq
_cqhci_error_irq:                       ; @cqhci_error_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, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x8, _CQHCI_TERRI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CQHCI_TERRI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cqhci_readl
	mov	x23, x0
	mov	x0, x22
	bl	_mmc_hostname
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x24
	mov	x3, x21
	mov	x4, x20
	mov	x5, x23
	bl	_pr_debug
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
LBB0_1:
	mov	x0, x19
	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	_spin_unlock
LBB0_2:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_14
; %bb.3:
	mov	x0, x23
	bl	_CQHCI_TERRI_C_VALID
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x23
	bl	_CQHCI_TERRI_C_TASK
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x25, [x19, #8]
	add	x24, x25, w0, sxtw #4
	ldr	x8, [x24]
	cbz	x8, LBB0_6
; %bb.5:
	sxtw	x26, w0
	mov	x0, x21
	mov	x1, x20
	bl	_cqhci_error_flags
	add	x8, x25, x26, lsl #4
	str	x0, [x8, #8]
	ldr	x1, [x24]
	mov	x0, x22
	mov	w2, #1
	bl	_cqhci_recovery_needed
LBB0_6:
	mov	x0, x23
	bl	_CQHCI_TERRI_D_VALID
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x23
	bl	_CQHCI_TERRI_D_TASK
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x24, [x19, #8]
	add	x23, x24, w0, sxtw #4
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.8:
	sxtw	x25, w0
	mov	x0, x20
	mov	x1, x21
	bl	_cqhci_error_flags
	add	x8, x24, x25, lsl #4
	str	x0, [x8, #8]
	ldr	x1, [x23]
	mov	x0, x22
	mov	w2, #1
	bl	_cqhci_recovery_needed
LBB0_9:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_1
; %bb.10:
Lloh5:
	adrp	x8, _NUM_SLOTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NUM_SLOTS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.11:
	ldr	x23, [x19, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	cbnz	x9, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #16
	subs	x8, x8, #1
	b.ne	LBB0_12
	b	LBB0_1
LBB0_14:
	mov	x0, x22
	bl	_mmc_hostname
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x3, x24
	mov	x4, x21
	mov	x5, x20
	mov	x6, x23
	bl	_WARN_ONCE
	b	LBB0_1
LBB0_15:
	mov	x0, x20
	mov	x1, x21
	bl	_cqhci_error_flags
	str	x0, [x23, #8]
	ldr	x1, [x23]
	mov	x0, x22
	mov	w2, #1
	bl	_cqhci_recovery_needed
	b	LBB0_1
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CQHCI_TERRI,4,2                ; @CQHCI_TERRI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cqhci: error IRQ status: 0x%08x cmd error %d data error %d TERRI: 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: cqhci: error when idle. IRQ status: 0x%08x cmd error %d data error %d TERRI: 0x%08x\n"

	.comm	_NUM_SLOTS,4,2                  ; @NUM_SLOTS
	.no_dead_strip	_cqhci_error_irq
.subsections_via_symbols
