	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_app_sd_status              ## -- Begin function mmc_app_sd_status
	.p2align	4, 0x90
_mmc_app_sd_status:                     ## @mmc_app_sd_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	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movups	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	(%rdi), %edi
	movq	%rbx, %rsi
	callq	_mmc_app_cmd
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-88(%rbp), %r15
	movq	%r15, -104(%rbp)
	movq	_SD_APP_SD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_MMC_RSP_SPI_R2@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CMD_ADTC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movabsq	$4294967360, %rax               ## imm = 0x100000040
	movq	%rax, -88(%rbp)
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-56(%rbp), %rdi
	movq	%rdi, -72(%rbp)
	movl	$1, -80(%rbp)
	movq	%r14, %rsi
	movl	$64, %edx
	callq	_sg_init_one
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mmc_set_data_timeout
	movl	(%rbx), %edi
	leaq	-104(%rbp), %rsi
	callq	_mmc_wait_for_req
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-76(%rbp), %eax
LBB0_3:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_APP_SD_STATUS,4,2           ## @SD_APP_SD_STATUS
	.comm	_MMC_RSP_SPI_R2,4,2             ## @MMC_RSP_SPI_R2
	.comm	_MMC_RSP_R1,4,2                 ## @MMC_RSP_R1
	.comm	_MMC_CMD_ADTC,4,2               ## @MMC_CMD_ADTC
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mmc_app_sd_status
lCPI0_0:
	.long	64                              ; 0x40
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mmc_app_sd_status
	.p2align	2
_mmc_app_sd_status:                     ; @mmc_app_sd_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #40]
	str	xzr, [sp, #56]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
	ldr	w0, [x0]
	mov	x1, x19
	bl	_mmc_app_cmd
	cbnz	w0, LBB0_3
; %bb.1:
	add	x8, sp, #40
	add	x9, sp, #8
	stp	x9, x8, [x29, #-32]
Lloh0:
	adrp	x8, _SD_APP_SD_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_APP_SD_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	str	xzr, [sp, #48]
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_ADTC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMC_CMD_ADTC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #40]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh14:
	adrp	x8, _MMC_DATA_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MMC_DATA_READ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	x8, sp
	str	x8, [sp, #24]
	mov	w8, #1
	str	w8, [sp, #16]
	mov	x0, sp
	mov	x1, x20
	mov	w2, #64
	bl	_sg_init_one
	add	x0, sp, #8
	mov	x1, x19
	bl	_mmc_set_data_timeout
	ldr	w0, [x19]
	sub	x1, x29, #32
	bl	_mmc_wait_for_req
	ldr	w0, [sp, #44]
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w0, [sp, #20]
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_APP_SD_STATUS,4,2           ; @SD_APP_SD_STATUS
	.comm	_MMC_RSP_SPI_R2,4,2             ; @MMC_RSP_SPI_R2
	.comm	_MMC_RSP_R1,4,2                 ; @MMC_RSP_R1
	.comm	_MMC_CMD_ADTC,4,2               ; @MMC_CMD_ADTC
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
.subsections_via_symbols
