	.file	"extr_core.c_mmc_set_initial_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mmc_set_initial_state
	.type	mmc_set_initial_state, @function
mmc_set_initial_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	QWORD PTR 56[rdi], 0
	mov	rbp, rdi
	je	.L2
	mov	rax, QWORD PTR 48[rdi]
	call	[QWORD PTR [rax]]
.L2:
	mov	rdi, rbp
	call	mmc_retune_disable@PLT
	mov	rdi, rbp
	call	mmc_host_is_spi@PLT
	mov	QWORD PTR 16[rbp], 0
	test	rax, rax
	mov	eax, DWORD PTR MMC_CS_HIGH[rip]
	cmove	eax, DWORD PTR MMC_CS_DONTCARE[rip]
	mov	DWORD PTR 8[rbp], 0
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR MMC_BUSMODE_PUSHPULL[rip]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR MMC_BUS_WIDTH_1[rip]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR MMC_TIMING_LEGACY[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR MMC_CAP2_HS400_ES[rip], eax
	je	.L5
	mov	rax, QWORD PTR 40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L5
	lea	rsi, 8[rbp]
	mov	rdi, rbp
	call	rax
.L5:
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mmc_set_ios@PLT
	.cfi_endproc
.LFE0:
	.size	mmc_set_initial_state, .-mmc_set_initial_state
	.comm	MMC_TIMING_LEGACY,4,4
	.comm	MMC_CS_HIGH,4,4
	.comm	MMC_CS_DONTCARE,4,4
	.comm	MMC_CAP2_HS400_ES,4,4
	.comm	MMC_BUS_WIDTH_1,4,4
	.comm	MMC_BUSMODE_PUSHPULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_core.c_mmc_set_initial_state.c"
	.text
	.align	2
	.global	mmc_set_initial_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmc_set_initial_state, %function
mmc_set_initial_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #36]
	push	{r4, lr}
	cmp	r3, #0
	mov	r4, r0
	beq	.L2
	ldr	r3, [r0, #32]
	ldr	r3, [r3]
	blx	r3
.L2:
	mov	r0, r4
	bl	mmc_retune_disable
	mov	r0, r4
	bl	mmc_host_is_spi
	cmp	r0, #0
	ldrne	r3, .L17
	ldreq	r3, .L17+4
	ldr	r2, .L17+8
	ldr	ip, [r3]
	mov	r3, #0
	ldr	r0, [r2]
	ldr	lr, .L17+12
	ldr	r1, .L17+16
	ldr	r2, .L17+20
	str	ip, [r4, #24]
	ldr	ip, [r4]
	ldr	lr, [lr]
	ldr	r1, [r1]
	ldr	r2, [r2]
	tst	ip, r0
	str	lr, [r4, #20]
	str	r1, [r4, #16]
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	str	r3, [r4, #4]
	beq	.L5
	ldr	r3, [r4, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	mov	r0, r4
	add	r1, r4, #4
	blx	r3
.L5:
	mov	r0, r4
	pop	{r4, lr}
	b	mmc_set_ios
.L18:
	.align	2
.L17:
	.word	MMC_CS_HIGH
	.word	MMC_CS_DONTCARE
	.word	MMC_CAP2_HS400_ES
	.word	MMC_BUSMODE_PUSHPULL
	.word	MMC_BUS_WIDTH_1
	.word	MMC_TIMING_LEGACY
	.size	mmc_set_initial_state, .-mmc_set_initial_state
	.comm	MMC_TIMING_LEGACY,4,4
	.comm	MMC_CS_HIGH,4,4
	.comm	MMC_CS_DONTCARE,4,4
	.comm	MMC_CAP2_HS400_ES,4,4
	.comm	MMC_BUS_WIDTH_1,4,4
	.comm	MMC_BUSMODE_PUSHPULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
