	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_start_areq
_mmc_test_start_areq:                   ## @mmc_test_start_areq
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_init_completion
	movq	_mmc_test_wait_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mmc_pre_req
LBB0_2:
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_wait_for_completion
	movq	%r13, %rdi
	callq	_mmc_test_wait_busy
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_mmc_test_check_result
	movl	%eax, %ebx
	testq	%r12, %r12
	jne	LBB0_7
	jmp	LBB0_11
LBB0_3:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_11
LBB0_7:
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mmc_start_request
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mmc_retune_release
LBB0_11:
	testq	%r15, %r15
	je	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mmc_post_req
LBB0_13:
	testq	%r12, %r12
	je	LBB0_16
## %bb.14:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_mmc_post_req
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_mmc_test_wait_done,4,2         ## @mmc_test_wait_done
	.no_dead_strip	_mmc_test_start_areq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_test_start_areq
_mmc_test_start_areq:                   ; @mmc_test_start_areq
	.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, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_init_completion
Lloh0:
	adrp	x8, _mmc_test_wait_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmc_test_wait_done@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_mmc_pre_req
LBB0_2:
	cbz	x21, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_wait_for_completion
	mov	x0, x23
	bl	_mmc_test_wait_busy
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x23
	mov	x1, x21
	bl	_mmc_test_check_result
	mov	x22, x0
	cbnz	x19, LBB0_6
	b	LBB0_9
LBB0_5:
	mov	w22, #0
	cbz	x19, LBB0_9
LBB0_6:
	cbnz	w22, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_mmc_start_request
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_mmc_retune_release
LBB0_9:
	cbz	x21, LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_mmc_post_req
LBB0_11:
	cbz	x19, LBB0_14
; %bb.12:
	cbz	w22, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_mmc_post_req
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmc_test_wait_done,4,2         ; @mmc_test_wait_done
	.no_dead_strip	_mmc_test_start_areq
.subsections_via_symbols
