	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_send_if_cond               ## -- Begin function mmc_send_if_cond
	.p2align	4, 0x90
_mmc_send_if_cond:                      ## @mmc_send_if_cond
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, -24(%rbp)
	movq	_SD_SEND_IF_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	xorl	%eax, %eax
	testl	$16744448, %esi                 ## imm = 0xFF8000
	setne	%al
	shll	$8, %eax
	orl	$170, %eax
	movl	%eax, -32(%rbp)
	movq	_MMC_RSP_SPI_R7@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_R7@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CMD_BCR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -28(%rbp)
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_mmc_wait_for_cmd
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_mmc_host_is_spi
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	-24(%rbp), %rax
	cmpb	$-86, (%rax,%rcx,4)
	movl	$0, %eax
	je	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_SEND_IF_COND,4,2            ## @SD_SEND_IF_COND
	.comm	_MMC_RSP_SPI_R7,4,2             ## @MMC_RSP_SPI_R7
	.comm	_MMC_RSP_R7,4,2                 ## @MMC_RSP_R7
	.comm	_MMC_CMD_BCR,4,2                ## @MMC_CMD_BCR
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_send_if_cond               ; -- Begin function mmc_send_if_cond
	.p2align	2
_mmc_send_if_cond:                      ; @mmc_send_if_cond
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SD_SEND_IF_COND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_SEND_IF_COND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	xzr, [sp, #24]
	str	w8, [sp, #24]
	tst	w1, #0xff8000
	mov	w8, #426
	mov	w9, #170
	csel	w8, w9, w8, eq
Lloh3:
	adrp	x9, _MMC_RSP_SPI_R7@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_RSP_SPI_R7@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MMC_RSP_R7@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_RSP_R7@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _MMC_CMD_BCR@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MMC_CMD_BCR@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh11:
	ldr	w10, [x11]
	orr	w9, w9, w10
	str	xzr, [sp, #16]
	stp	w8, w9, [sp, #8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_mmc_wait_for_cmd
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mmc_host_is_spi
	cmp	x0, #0
	cset	w8, ne
	ldr	x9, [sp, #16]
	lsl	x8, x8, #2
	ldrb	w8, [x9, x8]
	cmp	w8, #170
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_SEND_IF_COND,4,2            ; @SD_SEND_IF_COND
	.comm	_MMC_RSP_SPI_R7,4,2             ; @MMC_RSP_SPI_R7
	.comm	_MMC_RSP_R7,4,2                 ; @MMC_RSP_R7
	.comm	_MMC_CMD_BCR,4,2                ; @MMC_CMD_BCR
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
