	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cqhci_recover_mrq
_cqhci_recover_mrq:                     ## @cqhci_recover_mrq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movl	%esi, %ecx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	leaq	(%rax,%rcx), %rdx
	addq	$8, %rdx
	movq	$0, (%rdx)
	decl	(%rdi)
	addq	%rcx, %rax
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	$0, 8(%r15)
	movl	(%rax), %edi
	callq	_cqhci_error_from_flags
	movq	%rax, (%r15)
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%rax), %edi
	callq	_cqhci_error_from_flags
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
LBB0_4:
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_cqe_request_done           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cqhci_recover_mrq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cqhci_recover_mrq
_cqhci_recover_mrq:                     ; @cqhci_recover_mrq
	.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
	ldr	x8, [x0, #8]
	add	x8, x8, w1, uxtw #4
	mov	x9, x8
	ldr	x20, [x9, #8]!
	cbz	x20, LBB0_3
; %bb.1:
	mov	x19, x0
	str	xzr, [x9]
	ldr	w9, [x0]
	sub	w9, w9, #1
	str	w9, [x0]
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_4
; %bb.2:
	str	xzr, [x21, #8]
	ldr	w0, [x8]
	bl	_cqhci_error_from_flags
	str	x0, [x21]
	b	LBB0_5
LBB0_3:
	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
	ret
LBB0_4:
	ldr	w0, [x8]
	bl	_cqhci_error_from_flags
	ldr	x8, [x20]
	str	x0, [x8]
LBB0_5:
	ldr	w0, [x19, #4]
	mov	x1, x20
	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	_mmc_cqe_request_done
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cqhci_recover_mrq
.subsections_via_symbols
