	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cqhci_timeout
_cqhci_timeout:                         ## @cqhci_timeout
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_cqhci_tag
	movq	8(%rbx), %r15
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r12
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	shlq	$4, %r12
	movq	8(%r15,%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_3
LBB0_1:
	movq	_CQHCI_EXTERNAL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15,%r12)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_cqhci_recovery_needed
	movl	(%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_cqhci_dumpregs
LBB0_3:
	xorl	%eax, %eax
	cmpq	%r14, -72(%rbp)                 ## 8-byte Folded Reload
	sete	%al
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CQHCI_EXTERNAL_TIMEOUT,4,2     ## @CQHCI_EXTERNAL_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cqhci: timeout for tag %d\n"

	.no_dead_strip	_cqhci_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cqhci_timeout
_cqhci_timeout:                         ; @cqhci_timeout
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
	mov	x0, x1
	bl	_cqhci_tag
	mov	x24, x0
	ldr	x26, [x20, #8]
	add	x23, x20, #4
	mov	x0, x23
	bl	_spin_lock_irqsave
	add	x8, x26, w24, sxtw #4
	ldr	x25, [x8, #8]
	cmp	x25, x19
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	b	LBB0_3
LBB0_2:
	sxtw	x24, w24
Lloh0:
	adrp	x8, _CQHCI_EXTERNAL_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CQHCI_EXTERNAL_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	x9, x24, #4
	ldr	w10, [x26, x9]
	orr	w8, w10, w8
	str	w8, [x26, x9]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	bl	_cqhci_recovery_needed
	ldr	w8, [x20]
	str	w8, [x22]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_mmc_hostname
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x24
	bl	_pr_err
	mov	x0, x20
	bl	_cqhci_dumpregs
LBB0_3:
	cmp	x25, x19
	cset	w0, eq
	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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CQHCI_EXTERNAL_TIMEOUT,4,2     ; @CQHCI_EXTERNAL_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cqhci: timeout for tag %d\n"

	.no_dead_strip	_cqhci_timeout
.subsections_via_symbols
