	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_go_idle                    ## -- Begin function mmc_go_idle
	.p2align	4, 0x90
_mmc_go_idle:                           ## @mmc_go_idle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	callq	_mmc_host_is_spi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MMC_CS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmc_set_chip_select
	movl	$1, %edi
	callq	_mmc_delay
LBB0_2:
	movq	_MMC_GO_IDLE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_MMC_RSP_SPI_R1@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CMD_BC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mmc_wait_for_cmd
	movl	%eax, %r14d
	movl	$1, %edi
	callq	_mmc_delay
	movq	%rbx, %rdi
	callq	_mmc_host_is_spi
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_MMC_CS_DONTCARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmc_set_chip_select
	movl	$1, %edi
	callq	_mmc_delay
LBB0_4:
	movq	$0, (%rbx)
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CS_HIGH,4,2                ## @MMC_CS_HIGH
	.comm	_MMC_GO_IDLE_STATE,4,2          ## @MMC_GO_IDLE_STATE
	.comm	_MMC_RSP_SPI_R1,4,2             ## @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_NONE,4,2               ## @MMC_RSP_NONE
	.comm	_MMC_CMD_BC,4,2                 ## @MMC_CMD_BC
	.comm	_MMC_CS_DONTCARE,4,2            ## @MMC_CS_DONTCARE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_go_idle                    ; -- Begin function mmc_go_idle
	.p2align	2
_mmc_go_idle:                           ; @mmc_go_idle
	.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
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	bl	_mmc_host_is_spi
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MMC_CS_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_CS_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmc_set_chip_select
	mov	w0, #1
	bl	_mmc_delay
LBB0_2:
Lloh3:
	adrp	x8, _MMC_GO_IDLE_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_GO_IDLE_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
Lloh6:
	adrp	x8, _MMC_RSP_SPI_R1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC_RSP_SPI_R1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MMC_RSP_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMC_RSP_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _MMC_CMD_BC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MMC_CMD_BC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_mmc_wait_for_cmd
	mov	x20, x0
	mov	w0, #1
	bl	_mmc_delay
	mov	x0, x19
	bl	_mmc_host_is_spi
	cbnz	w0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _MMC_CS_DONTCARE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMC_CS_DONTCARE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmc_set_chip_select
	mov	w0, #1
	bl	_mmc_delay
LBB0_4:
	str	xzr, [x19]
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CS_HIGH,4,2                ; @MMC_CS_HIGH
	.comm	_MMC_GO_IDLE_STATE,4,2          ; @MMC_GO_IDLE_STATE
	.comm	_MMC_RSP_SPI_R1,4,2             ; @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_NONE,4,2               ; @MMC_RSP_NONE
	.comm	_MMC_CMD_BC,4,2                 ; @MMC_CMD_BC
	.comm	_MMC_CS_DONTCARE,4,2            ; @MMC_CS_DONTCARE
.subsections_via_symbols
