	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_cqe_complete_rq
_mmc_blk_cqe_complete_rq:               ## @mmc_blk_cqe_complete_rq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_req_to_mmc_queue_req
	movq	%rax, %rbx
	leaq	8(%rax), %r13
	movq	(%r15), %r14
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_mmc_cqe_post_req
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%rax)
	jne	LBB0_4
LBB0_2:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	cmpl	$0, (%rax)
	je	LBB0_7
LBB0_4:
	movslq	(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_MMC_CQE_RETRIES@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jg	LBB0_5
## %bb.6:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_blk_mq_end_request
	jmp	LBB0_11
LBB0_7:
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	4(%rax), %edx
	movq	%r15, %rdi
	callq	_blk_update_request
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_blk_mq_requeue_request
LBB0_11:
	leaq	28(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %r13
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mmc_issue_type
	decl	(%r13,%rax,4)
	movq	%r12, %rdi
	callq	_mmc_tot_in_flight
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_mmc_cqe_check_busy
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	$0, 24(%r12)
	je	LBB0_12
## %bb.13:
	testq	%r15, %r15
	je	LBB0_15
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_blk_mq_run_hw_queues
	testq	%r15, %r15
	jne	LBB0_14
LBB0_15:
	movq	16(%r12), %rdi
	addq	$8, %r12
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_put_card                   ## TAILCALL
LBB0_8:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	___blk_mq_end_request
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CQE_RETRIES,8,3            ## @MMC_CQE_RETRIES
	.comm	_BLK_STS_IOERR,4,2              ## @BLK_STS_IOERR
	.comm	_BLK_STS_OK,4,2                 ## @BLK_STS_OK
	.no_dead_strip	_mmc_blk_cqe_complete_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_cqe_complete_rq
_mmc_blk_cqe_complete_rq:               ; @mmc_blk_cqe_complete_rq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_req_to_mmc_queue_req
	mov	x22, x0
	add	x23, x0, #8
	ldr	x20, [x21]
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	mov	x1, x23
	bl	_mmc_cqe_post_req
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
LBB0_2:
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w9, [x8]
	cbz	w9, LBB0_8
LBB0_4:
	ldrsw	x8, [x22]
	add	w9, w8, #1
	str	w9, [x22]
Lloh0:
	adrp	x9, _MMC_CQE_RETRIES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CQE_RETRIES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _BLK_STS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BLK_STS_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_blk_mq_end_request
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x22, _BLK_STS_OK@GOTPAGE
Lloh8:
	ldr	x22, [x22, _BLK_STS_OK@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x8, #4]
	mov	x0, x21
	bl	_blk_update_request
	cbz	x0, LBB0_15
LBB0_9:
	mov	x0, x21
	mov	w1, #1
	bl	_blk_mq_requeue_request
LBB0_10:
	add	x22, x19, #28
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x23, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_mmc_issue_type
	lsl	x8, x0, #2
	ldr	w9, [x23, x8]
	sub	w9, w9, #1
	str	w9, [x23, x8]
	mov	x0, x19
	bl	_mmc_tot_in_flight
	mov	x21, x0
	mov	x0, x19
	bl	_mmc_cqe_check_busy
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_13
; %bb.11:
	cbz	x21, LBB0_14
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x20
	mov	w1, #1
	bl	_blk_mq_run_hw_queues
	cbnz	x21, LBB0_12
LBB0_14:
	ldr	x0, [x19, #16]
	add	x1, x19, #8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mmc_put_card
LBB0_15:
	ldr	w1, [x22]
	mov	x0, x21
	bl	___blk_mq_end_request
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CQE_RETRIES,8,3            ; @MMC_CQE_RETRIES
	.comm	_BLK_STS_IOERR,4,2              ; @BLK_STS_IOERR
	.comm	_BLK_STS_OK,4,2                 ; @BLK_STS_OK
	.no_dead_strip	_mmc_blk_cqe_complete_rq
.subsections_via_symbols
