	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_mq_complete_rq
_mmc_blk_mq_complete_rq:                ## @mmc_blk_mq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_req_to_mmc_queue_req
	movl	4(%rax), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_blk_update_request
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movl	(%rbx), %esi
	jmp	LBB0_3
LBB0_4:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_blk_rq_bytes
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movslq	(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_MMC_MAX_RETRIES@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jle	LBB0_7
LBB0_10:
	movq	%r15, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blk_mq_requeue_request         ## TAILCALL
LBB0_5:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_3:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___blk_mq_end_request           ## TAILCALL
LBB0_7:
	movl	(%r14), %edi
	callq	_mmc_card_removed
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_RQF_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_9:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blk_mq_end_request             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_STS_OK,4,2                 ## @BLK_STS_OK
	.comm	_BLK_STS_IOERR,4,2              ## @BLK_STS_IOERR
	.comm	_MMC_MAX_RETRIES,8,3            ## @MMC_MAX_RETRIES
	.comm	_RQF_QUIET,4,2                  ## @RQF_QUIET
	.no_dead_strip	_mmc_blk_mq_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_mq_complete_rq
_mmc_blk_mq_complete_rq:                ; @mmc_blk_mq_complete_rq
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_req_to_mmc_queue_req
	ldr	w2, [x0, #4]
	cbz	w2, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _BLK_STS_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BLK_STS_OK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_blk_update_request
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	w1, [x20]
	b	LBB0_7
LBB0_3:
	mov	x21, x0
	mov	x0, x19
	bl	_blk_rq_bytes
	cbz	w0, LBB0_6
; %bb.4:
	ldrsw	x8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
Lloh2:
	adrp	x9, _MMC_MAX_RETRIES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC_MAX_RETRIES@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x8
	b.le	LBB0_8
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	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	_blk_mq_requeue_request
LBB0_6:
Lloh5:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
LBB0_7:
	mov	x0, x19
	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	___blk_mq_end_request
LBB0_8:
	ldr	w0, [x20]
	bl	_mmc_card_removed
	cbz	x0, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _RQF_QUIET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RQF_QUIET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
Lloh11:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	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	_blk_mq_end_request
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_STS_OK,4,2                 ; @BLK_STS_OK
	.comm	_BLK_STS_IOERR,4,2              ; @BLK_STS_IOERR
	.comm	_MMC_MAX_RETRIES,8,3            ; @MMC_MAX_RETRIES
	.comm	_RQF_QUIET,4,2                  ; @RQF_QUIET
	.no_dead_strip	_mmc_blk_mq_complete_rq
.subsections_via_symbols
