	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_mmc_req_ok
_aw_mmc_req_ok:                         ## @aw_mmc_req_ok
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_AW_MMC_STAR@GOTPCREL(%rip), %r14
	movq	_AW_MMC_STAR_CARD_BUSY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_AW_MMC_READ_4
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_1
## %bb.3:
	movq	8(%r15), %rax
	movq	(%rax), %r14
	jmp	LBB0_10
LBB0_4:
	movq	8(%r15), %rax
	movq	(%rax), %r14
	movl	(%r14), %eax
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.5:
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_AW_MMC_RESP3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_AW_MMC_READ_4
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_AW_MMC_RESP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_AW_MMC_READ_4
	movq	24(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	_AW_MMC_RESP1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_AW_MMC_READ_4
	movq	24(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	_AW_MMC_RESP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_AW_MMC_READ_4
	movq	24(%r14), %rcx
	movq	%rax, 24(%rcx)
	jmp	LBB0_8
LBB0_7:
	movq	_AW_MMC_RESP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_AW_MMC_READ_4
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
LBB0_8:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	(%r15), %ecx
	shll	$2, %ecx
	cmpl	(%rax), %ecx
	jge	LBB0_11
LBB0_10:
	movq	_MMC_ERR_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_11:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aw_mmc_req_done                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_MMC_STAR,4,2                ## @AW_MMC_STAR
	.comm	_AW_MMC_STAR_CARD_BUSY,4,2      ## @AW_MMC_STAR_CARD_BUSY
	.comm	_MMC_ERR_FAILED,8,3             ## @MMC_ERR_FAILED
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_AW_MMC_RESP3,4,2               ## @AW_MMC_RESP3
	.comm	_AW_MMC_RESP2,4,2               ## @AW_MMC_RESP2
	.comm	_AW_MMC_RESP1,4,2               ## @AW_MMC_RESP1
	.comm	_AW_MMC_RESP0,4,2               ## @AW_MMC_RESP0
	.no_dead_strip	_aw_mmc_req_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_mmc_req_ok
_aw_mmc_req_ok:                         ; @aw_mmc_req_ok
	.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, x0
	mov	w20, #1000
Lloh0:
	adrp	x21, _AW_MMC_STAR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AW_MMC_STAR@GOTPAGEOFF]
Lloh2:
	adrp	x22, _AW_MMC_STAR_CARD_BUSY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AW_MMC_STAR_CARD_BUSY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_AW_MMC_READ_4
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1000
	bl	_DELAY
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_1
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _MMC_RSP_PRESENT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh7:
	adrp	x9, _MMC_RSP_136@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MMC_RSP_136@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
Lloh10:
	adrp	x8, _AW_MMC_RESP3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AW_MMC_RESP3@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AW_MMC_READ_4
	ldr	x8, [x20, #24]
	str	x0, [x8]
Lloh13:
	adrp	x8, _AW_MMC_RESP2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AW_MMC_RESP2@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AW_MMC_READ_4
	ldr	x8, [x20, #24]
	str	x0, [x8, #8]
Lloh16:
	adrp	x8, _AW_MMC_RESP1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AW_MMC_RESP1@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AW_MMC_READ_4
	ldr	x8, [x20, #24]
	str	x0, [x8, #16]
Lloh19:
	adrp	x8, _AW_MMC_RESP0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AW_MMC_RESP0@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AW_MMC_READ_4
	ldr	x8, [x20, #24]
	str	x0, [x8, #24]
LBB0_7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
LBB0_8:
	ldr	w9, [x19]
	ldr	w8, [x8]
	cmp	w8, w9, lsl #2
	b.le	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _MMC_ERR_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMC_ERR_FAILED@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_10:
	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	_aw_mmc_req_done
LBB0_11:
Lloh25:
	adrp	x8, _AW_MMC_RESP0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AW_MMC_RESP0@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AW_MMC_READ_4
	ldr	x8, [x20, #24]
	str	x0, [x8]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_8
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_AW_MMC_STAR,4,2                ; @AW_MMC_STAR
	.comm	_AW_MMC_STAR_CARD_BUSY,4,2      ; @AW_MMC_STAR_CARD_BUSY
	.comm	_MMC_ERR_FAILED,8,3             ; @MMC_ERR_FAILED
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_AW_MMC_RESP3,4,2               ; @AW_MMC_RESP3
	.comm	_AW_MMC_RESP2,4,2               ; @AW_MMC_RESP2
	.comm	_AW_MMC_RESP1,4,2               ; @AW_MMC_RESP1
	.comm	_AW_MMC_RESP0,4,2               ; @AW_MMC_RESP0
	.no_dead_strip	_aw_mmc_req_ok
.subsections_via_symbols
