	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_send_app_op_cond           ## -- Begin function mmc_send_app_op_cond
	.p2align	4, 0x90
_mmc_send_app_op_cond:                  ## @mmc_send_app_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, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	movq	_SD_APP_OP_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	callq	_mmc_host_is_spi
	movl	%r15d, %ecx
	andl	$1073741824, %ecx               ## imm = 0x40000000
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	movl	%ecx, -64(%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, -60(%rbp)
	movl	$-100, %r14d
	leaq	-64(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MMC_CARD_BUSY@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	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	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_mmc_wait_for_app_cmd
	movl	%eax, %ebx
	testl	%r15d, %r15d
	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	-56(%rbp), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_R1_SPI_IDLE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_2
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	negl	%ebx
	movq	%r12, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_10:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_13
## %bb.11:
	movq	%r12, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_APP_OP_COND,4,2             ## @SD_APP_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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: card never left busy state\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_send_app_op_cond           ; -- Begin function mmc_send_app_op_cond
	.p2align	2
_mmc_send_app_op_cond:                  ; @mmc_send_app_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
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _SD_APP_OP_COND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_APP_OP_COND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	bl	_mmc_host_is_spi
	and	w8, w21, #0x40000000
	cmp	x0, #0
	csel	w8, w21, w8, 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_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x25]
	mov	w0, #10
	bl	_mmc_delay
	adds	w23, w23, #1
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, #0
	bl	_mmc_wait_for_app_cmd
	mov	x22, x0
	cbz	w21, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w22, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_2
LBB0_7:
	mov	w22, #0
	cbnz	x19, LBB0_10
	b	LBB0_12
LBB0_8:
	neg	w22, w22
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_9:
	cbz	x19, LBB0_12
LBB0_10:
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_12:
	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
	.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
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_APP_OP_COND,4,2             ; @SD_APP_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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: card never left busy state\n"

.subsections_via_symbols
