	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_send_op_cond               ## -- Begin function mmc_send_op_cond
	.p2align	4, 0x90
_mmc_send_op_cond:                      ## @mmc_send_op_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movq	_MMC_SEND_OP_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	callq	_mmc_host_is_spi
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	movl	%ecx, -72(%rbp)
	movq	_MMC_RSP_SPI_R1@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_R3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CMD_BCR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -68(%rbp)
	movl	$-100, %r14d
	leaq	-72(%rbp), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_mmc_wait_for_cmd
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_mmc_host_is_spi
	movq	-64(%rbp), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_R1_SPI_IDLE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_7
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MMC_CARD_BUSY@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$10, %edi
	callq	_mmc_delay
	testl	%r15d, %r15d
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax
	movl	(%rax), %r12d
	movl	$30, %edi
	callq	_BIT
	orl	%r12d, %eax
	leaq	-72(%rbp), %r12
	movl	%eax, -72(%rbp)
	jmp	LBB0_10
LBB0_11:
	negl	%ebx
	jmp	LBB0_12
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_5:
	xorl	%ebx, %ebx
LBB0_12:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_15
## %bb.13:
	movq	%r13, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	-64(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_SEND_OP_COND,4,2           ## @MMC_SEND_OP_COND
	.comm	_MMC_RSP_SPI_R1,4,2             ## @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_R3,4,2                 ## @MMC_RSP_R3
	.comm	_MMC_CMD_BCR,4,2                ## @MMC_CMD_BCR
	.comm	_R1_SPI_IDLE,4,2                ## @R1_SPI_IDLE
	.comm	_MMC_CARD_BUSY,4,2              ## @MMC_CARD_BUSY
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_send_op_cond               ; -- Begin function mmc_send_op_cond
	.p2align	2
_mmc_send_op_cond:                      ; @mmc_send_op_cond
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _MMC_SEND_OP_COND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_SEND_OP_COND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	bl	_mmc_host_is_spi
	cmp	x0, #0
	csel	w8, w21, wzr, eq
Lloh3:
	adrp	x9, _MMC_RSP_SPI_R1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_RSP_SPI_R1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MMC_RSP_R3@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_RSP_R3@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
	stp	w8, w9, [sp, #8]
	mov	w23, #-100
Lloh12:
	adrp	x24, _MMC_CARD_BUSY@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MMC_CARD_BUSY@GOTPAGEOFF]
Lloh14:
	adrp	x25, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x25, [x25, _ETIMEDOUT@GOTPAGEOFF]
Lloh16:
	adrp	x26, _R1_SPI_IDLE@GOTPAGE
Lloh17:
	ldr	x26, [x26, _R1_SPI_IDLE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	adds	w23, w23, #1
	b.hs	LBB0_11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_mmc_wait_for_cmd
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_6
	b	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [x25]
	mov	w0, #10
	bl	_mmc_delay
	cbnz	w21, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbnz	x0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]
	ldr	w27, [x8]
	mov	w0, #30
	bl	_BIT
	orr	w8, w0, w27
	str	w8, [sp, #8]
	b	LBB0_1
LBB0_9:
	mov	x22, x0
	cbnz	x19, LBB0_12
	b	LBB0_14
LBB0_10:
	mov	w22, #0
	cbnz	x19, LBB0_12
	b	LBB0_14
LBB0_11:
	neg	w22, w22
	cbz	x19, LBB0_14
LBB0_12:
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	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	_MMC_SEND_OP_COND,4,2           ; @MMC_SEND_OP_COND
	.comm	_MMC_RSP_SPI_R1,4,2             ; @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_R3,4,2                 ; @MMC_RSP_R3
	.comm	_MMC_CMD_BCR,4,2                ; @MMC_CMD_BCR
	.comm	_R1_SPI_IDLE,4,2                ; @R1_SPI_IDLE
	.comm	_MMC_CARD_BUSY,4,2              ; @MMC_CARD_BUSY
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
