	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cqhci_finish_mrq
_cqhci_finish_mrq:                      ## @cqhci_finish_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	(%rdi), %rcx
	movq	16(%rcx), %rax
	movl	%esi, %edx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	cmpq	$0, 8(%rcx)
	je	LBB0_2
## %bb.8:
	movq	_CQHCI_COMPLETED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rax,%rdx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WARN_ONCE                      ## TAILCALL
LBB0_2:
	addq	%rdx, %rax
	movq	$0, (%rax)
	decl	(%rcx)
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	xorl	%ecx, %ecx
	cmpq	$0, 16(%rax)
	jne	LBB0_5
## %bb.4:
	movl	8(%rax), %ecx
	imull	4(%rax), %ecx
LBB0_5:
	movl	%ecx, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mmc_cqe_request_done           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cqhci: spurious TCN for tag %d\n"

	.comm	_CQHCI_COMPLETED,4,2            ## @CQHCI_COMPLETED
	.no_dead_strip	_cqhci_finish_mrq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cqhci_finish_mrq
_cqhci_finish_mrq:                      ; @cqhci_finish_mrq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x9, [x8, #16]
	add	x10, x9, w1, uxtw #4
	ldr	x1, [x10]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x11, [x8, #8]
	cbz	x11, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _CQHCI_COMPLETED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CQHCI_COMPLETED@GOTPAGEOFF]
	mov	w10, w19
Lloh2:
	ldr	w8, [x8]
	add	x9, x9, x10, lsl #4
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	bl	_mmc_hostname
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WARN_ONCE
LBB0_4:
	str	xzr, [x10]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x1]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_7
; %bb.6:
	mov	w9, #0
	b	LBB0_8
LBB0_7:
	ldp	w9, w10, [x8, #4]
	mul	w9, w10, w9
LBB0_8:
	str	w9, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_cqe_request_done
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cqhci: spurious TCN for tag %d\n"

	.comm	_CQHCI_COMPLETED,4,2            ; @CQHCI_COMPLETED
	.no_dead_strip	_cqhci_finish_mrq
.subsections_via_symbols
