	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_mq_issue_rw_rq
_mmc_blk_mq_issue_rw_rq:                ## @mmc_blk_mq_issue_rw_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_req_to_mmc_queue_req
	movq	%rax, %r12
	movq	8(%r15), %rsi
	movq	(%rsi), %r14
	movq	$0, -40(%rbp)
	movq	%rax, %rdi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_mmc_blk_rw_rq_prep
	movq	_mmc_blk_mq_req_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mmc_pre_req
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mmc_blk_rw_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	$1, (%r15)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mmc_start_request
	movl	%eax, %ebx
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_mmc_blk_mq_post_req
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.6:
	movl	$0, (%r15)
	movq	%r14, %rdi
	callq	_mmc_retune_release
LBB0_7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_mmc_post_req
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_mmc_host_done_complete
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_mmc_retune_release
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_mmc_blk_mq_req_done,4,2        ## @mmc_blk_mq_req_done
	.no_dead_strip	_mmc_blk_mq_issue_rw_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_issue_rw_rq
_mmc_blk_mq_issue_rw_rq:                ; @mmc_blk_mq_issue_rw_rq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	mov	x0, x1
	bl	_req_to_mmc_queue_req
	mov	x20, x0
	ldr	x1, [x21, #8]
	ldr	x19, [x1]
	str	xzr, [sp, #8]
	mov	w2, #0
	mov	x3, x21
	bl	_mmc_blk_rw_rq_prep
Lloh0:
	adrp	x8, _mmc_blk_mq_req_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmc_blk_mq_req_done@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_mmc_pre_req
	add	x1, sp, #8
	mov	x0, x21
	bl	_mmc_blk_rw_wait
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_mmc_start_request
	mov	x22, x0
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_mmc_blk_mq_post_req
LBB0_3:
	cbz	w22, LBB0_7
; %bb.4:
	str	wzr, [x21]
	mov	x0, x19
	bl	_mmc_retune_release
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_mmc_post_req
LBB0_6:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x19
	bl	_mmc_host_done_complete
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_mmc_retune_release
LBB0_9:
	mov	w22, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmc_blk_mq_req_done,4,2        ; @mmc_blk_mq_req_done
	.no_dead_strip	_mmc_blk_mq_issue_rw_rq
.subsections_via_symbols
