	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mmc_send_status              ## -- Begin function __mmc_send_status
	.p2align	4, 0x90
___mmc_send_status:                     ## @__mmc_send_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	_MMC_SEND_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	4(%rdi), %edi
	callq	_mmc_host_is_spi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
	shll	$16, %eax
	movl	%eax, -48(%rbp)
LBB0_2:
	movq	_MMC_RSP_SPI_R2@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CMD_AC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	4(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edx
	callq	_mmc_wait_for_cmd
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_SEND_STATUS,4,2            ## @MMC_SEND_STATUS
	.comm	_MMC_RSP_SPI_R2,4,2             ## @MMC_RSP_SPI_R2
	.comm	_MMC_RSP_R1,4,2                 ## @MMC_RSP_R1
	.comm	_MMC_CMD_AC,4,2                 ## @MMC_CMD_AC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mmc_send_status              ; -- Begin function __mmc_send_status
	.p2align	2
___mmc_send_status:                     ; @__mmc_send_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _MMC_SEND_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_SEND_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w0, [x0, #4]
	bl	_mmc_host_is_spi
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	lsl	w8, w8, #16
	str	w8, [sp, #8]
LBB0_2:
Lloh3:
	adrp	x8, _MMC_RSP_SPI_R2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_RSP_SPI_R2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MMC_RSP_R1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_RSP_R1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _MMC_CMD_AC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMC_CMD_AC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #12]
	ldr	w0, [x21, #4]
	add	x1, sp, #8
	mov	x2, x20
	bl	_mmc_wait_for_cmd
	cbz	x19, LBB0_5
; %bb.3:
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_SEND_STATUS,4,2            ; @MMC_SEND_STATUS
	.comm	_MMC_RSP_SPI_R2,4,2             ; @MMC_RSP_SPI_R2
	.comm	_MMC_RSP_R1,4,2                 ; @MMC_RSP_R1
	.comm	_MMC_CMD_AC,4,2                 ; @MMC_CMD_AC
.subsections_via_symbols
