	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goldfish_mmc_request
_goldfish_mmc_request:                  ## @goldfish_mmc_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_mmc_priv
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_WARN_ON
	movq	%r14, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_goldfish_mmc_prepare_data
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_goldfish_mmc_start_command
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	_SD_IO_SEND_OP_COND@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	_MMC_RSP_SPI_R4@GOTPCREL(%rip), %rcx
	movq	_MMC_RSP_R4@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MMC_CMD_BCR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	cmpl	%edx, 8(%rax)
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movl	%edx, 12(%rax)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_IO_SEND_OP_COND,8,3         ## @SD_IO_SEND_OP_COND
	.comm	_MMC_RSP_SPI_R4,4,2             ## @MMC_RSP_SPI_R4
	.comm	_MMC_RSP_R4,4,2                 ## @MMC_RSP_R4
	.comm	_MMC_CMD_BCR,4,2                ## @MMC_CMD_BCR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_goldfish_mmc_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goldfish_mmc_request
_goldfish_mmc_request:                  ; @goldfish_mmc_request
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_mmc_priv
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	str	x19, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_goldfish_mmc_prepare_data
	ldr	x1, [x19]
	mov	x0, x20
	bl	_goldfish_mmc_start_command
	ldr	x8, [x19]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _SD_IO_SEND_OP_COND@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SD_IO_SEND_OP_COND@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x8, #8]
Lloh3:
	adrp	x10, _MMC_RSP_SPI_R4@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMC_RSP_SPI_R4@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _MMC_RSP_R4@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MMC_RSP_R4@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh9:
	adrp	x11, _MMC_CMD_BCR@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MMC_CMD_BCR@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w10, w11
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x9, _EINVAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	neg	w9, w9
	str	w9, [x8, #12]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_IO_SEND_OP_COND,8,3         ; @SD_IO_SEND_OP_COND
	.comm	_MMC_RSP_SPI_R4,4,2             ; @MMC_RSP_SPI_R4
	.comm	_MMC_RSP_R4,4,2                 ; @MMC_RSP_R4
	.comm	_MMC_CMD_BCR,4,2                ; @MMC_CMD_BCR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_goldfish_mmc_request
.subsections_via_symbols
