	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_set_initial_state          ## -- Begin function mmc_set_initial_state
	.p2align	4, 0x90
_mmc_set_initial_state:                 ## @mmc_set_initial_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 56(%rdi)
	je	LBB0_2
## %bb.1:
	movq	48(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_2:
	movq	%rbx, %rdi
	callq	_mmc_retune_disable
	movq	%rbx, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_MMC_CS_DONTCARE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MMC_CS_HIGH@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_MMC_BUSMODE_PUSHPULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_MMC_BUS_WIDTH_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_MMC_TIMING_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movl	$0, 8(%rbx)
	movq	_MMC_CAP2_HS400_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.6:
	movq	40(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	*%rax
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mmc_set_ios                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CS_HIGH,4,2                ## @MMC_CS_HIGH
	.comm	_MMC_CS_DONTCARE,4,2            ## @MMC_CS_DONTCARE
	.comm	_MMC_BUSMODE_PUSHPULL,4,2       ## @MMC_BUSMODE_PUSHPULL
	.comm	_MMC_BUS_WIDTH_1,4,2            ## @MMC_BUS_WIDTH_1
	.comm	_MMC_TIMING_LEGACY,4,2          ## @MMC_TIMING_LEGACY
	.comm	_MMC_CAP2_HS400_ES,4,2          ## @MMC_CAP2_HS400_ES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_set_initial_state          ; -- Begin function mmc_set_initial_state
	.p2align	2
_mmc_set_initial_state:                 ; @mmc_set_initial_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_2:
	mov	x0, x19
	bl	_mmc_retune_disable
	mov	x0, x19
	bl	_mmc_host_is_spi
Lloh0:
	adrp	x8, _MMC_CS_DONTCARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_CS_DONTCARE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MMC_CS_HIGH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC_CS_HIGH@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _MMC_BUSMODE_PUSHPULL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MMC_BUSMODE_PUSHPULL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	mov	x1, x19
	str	wzr, [x1, #8]!
	stp	w9, w8, [x19, #32]
Lloh7:
	adrp	x8, _MMC_BUS_WIDTH_1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMC_BUS_WIDTH_1@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _MMC_TIMING_LEGACY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MMC_TIMING_LEGACY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	str	xzr, [x19, #16]
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _MMC_CAP2_HS400_ES@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MMC_CAP2_HS400_ES@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_set_ios
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CS_HIGH,4,2                ; @MMC_CS_HIGH
	.comm	_MMC_CS_DONTCARE,4,2            ; @MMC_CS_DONTCARE
	.comm	_MMC_BUSMODE_PUSHPULL,4,2       ; @MMC_BUSMODE_PUSHPULL
	.comm	_MMC_BUS_WIDTH_1,4,2            ; @MMC_BUS_WIDTH_1
	.comm	_MMC_TIMING_LEGACY,4,2          ; @MMC_TIMING_LEGACY
	.comm	_MMC_CAP2_HS400_ES,4,2          ; @MMC_CAP2_HS400_ES
.subsections_via_symbols
