	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goldfish_mmc_cmd_done
_goldfish_mmc_cmd_done:                 ## @goldfish_mmc_cmd_done
	.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, %r14
	movq	%rdi, %r15
	movq	$0, 16(%rdi)
	movl	(%rsi), %ebx
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_MMC_RESP_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GOLDFISH_MMC_READ
	movq	16(%r14), %rcx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	%rax, 24(%rcx)
	movq	_MMC_RESP_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GOLDFISH_MMC_READ
	movq	16(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	_MMC_RESP_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GOLDFISH_MMC_READ
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	_MMC_RESP_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GOLDFISH_MMC_READ
	movq	16(%r14), %rcx
LBB0_3:
	movq	%rax, (%rcx)
LBB0_4:
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 8(%r14)
	je	LBB0_6
LBB0_7:
	movq	$0, (%r15)
	movq	%r15, %rdi
	callq	_mmc_from_priv
	movl	4(%r14), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_MMC_RESP_0,4,2                 ## @MMC_RESP_0
	.comm	_MMC_RESP_1,4,2                 ## @MMC_RESP_1
	.comm	_MMC_RESP_2,4,2                 ## @MMC_RESP_2
	.comm	_MMC_RESP_3,4,2                 ## @MMC_RESP_3
	.no_dead_strip	_goldfish_mmc_cmd_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goldfish_mmc_cmd_done
_goldfish_mmc_cmd_done:                 ; @goldfish_mmc_cmd_done
	.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
	str	xzr, [x0, #16]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MMC_RSP_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _MMC_RSP_136@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_RSP_136@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w21, w9, w8
Lloh6:
	adrp	x8, _MMC_RESP_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC_RESP_0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GOLDFISH_MMC_READ
	ldr	x8, [x19, #16]
	cbz	w21, LBB0_3
; %bb.2:
	str	x0, [x8, #24]
Lloh9:
	adrp	x8, _MMC_RESP_1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMC_RESP_1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GOLDFISH_MMC_READ
	ldr	x8, [x19, #16]
	str	x0, [x8, #16]
Lloh12:
	adrp	x8, _MMC_RESP_2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_RESP_2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GOLDFISH_MMC_READ
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
Lloh15:
	adrp	x8, _MMC_RESP_3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMC_RESP_3@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GOLDFISH_MMC_READ
	ldr	x8, [x19, #16]
LBB0_3:
	str	x0, [x8]
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
LBB0_6:
	str	xzr, [x20]
	mov	x0, x20
	bl	_mmc_from_priv
	ldr	w1, [x19, #4]
	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	_mmc_request_done
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_MMC_RESP_0,4,2                 ; @MMC_RESP_0
	.comm	_MMC_RESP_1,4,2                 ; @MMC_RESP_1
	.comm	_MMC_RESP_2,4,2                 ; @MMC_RESP_2
	.comm	_MMC_RESP_3,4,2                 ; @MMC_RESP_3
	.no_dead_strip	_goldfish_mmc_cmd_done
.subsections_via_symbols
