	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_send_io_op_cond            ## -- Begin function mmc_send_io_op_cond
	.p2align	4, 0x90
_mmc_send_io_op_cond:                   ## @mmc_send_io_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_SD_IO_SEND_OP_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	_MMC_RSP_SPI_R4@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_R4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CMD_BCR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -80(%rbp)
	movl	$-100, %r14d
	leaq	-80(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MMC_CARD_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	jne	LBB0_9
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$10, %edi
	callq	_mmc_delay
	incl	%r14d
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MMC_CMD_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mmc_wait_for_cmd
	movl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_mmc_host_is_spi
	movq	-72(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MMC_CARD_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rcx)
	je	LBB0_2
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	negl	%ebx
LBB0_10:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	-72(%rbp), %r14
	movq	%r12, %rdi
	callq	_mmc_host_is_spi
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movslq	(%r14,%rcx,4), %rax
	movq	%rax, (%r15)
LBB0_12:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_IO_SEND_OP_COND,4,2         ## @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	_MMC_CMD_RETRIES,4,2            ## @MMC_CMD_RETRIES
	.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_io_op_cond            ; -- Begin function mmc_send_io_op_cond
	.p2align	2
_mmc_send_io_op_cond:                   ; @mmc_send_io_op_cond
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
Lloh0:
	adrp	x8, _SD_IO_SEND_OP_COND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_IO_SEND_OP_COND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _MMC_RSP_SPI_R4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_RSP_SPI_R4@GOTPAGEOFF]
	str	x1, [sp, #16]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MMC_RSP_R4@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_RSP_R4@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _MMC_CMD_BCR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMC_CMD_BCR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp]
	mov	w23, #-100
Lloh12:
	adrp	x24, _MMC_CMD_RETRIES@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MMC_CMD_RETRIES@GOTPAGEOFF]
Lloh14:
	adrp	x25, _MMC_CARD_BUSY@GOTPAGE
Lloh15:
	ldr	x25, [x25, _MMC_CARD_BUSY@GOTPAGEOFF]
Lloh16:
	adrp	x26, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x26, [x26, _ETIMEDOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	mov	x1, sp
	mov	x0, x20
	bl	_mmc_wait_for_cmd
	mov	x22, x0
	cbz	x21, LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w22, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	ldr	x8, [sp, #8]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x8, #4]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w22, [x26]
	mov	w0, #10
	bl	_mmc_delay
	adds	w23, w23, #1
	b.lo	LBB0_1
; %bb.8:
	neg	w22, w22
LBB0_9:
	cbz	x19, LBB0_11
LBB0_10:
	ldr	x21, [sp, #8]
	mov	x0, x20
	bl	_mmc_host_is_spi
	cmp	x0, #0
	cset	w8, ne
	ldrsw	x8, [x21, w8, uxtw #2]
	str	x8, [x19]
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	mov	w22, #0
	cbnz	x19, LBB0_10
	b	LBB0_11
	.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	_SD_IO_SEND_OP_COND,4,2         ; @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	_MMC_CMD_RETRIES,4,2            ; @MMC_CMD_RETRIES
	.comm	_MMC_CARD_BUSY,4,2              ; @MMC_CARD_BUSY
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
