	.file	"extr_cb710-mmc.c_cb710_mmc_set_ios.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"no card inserted - ignoring bus powerup request\n"
	.align 8
.LC1:
	.string	"powerup failed (%d)- retrying\n"
	.align 8
.LC2:
	.string	"powerup retry failed (%d) - expect errors\n"
	.text
	.p2align 4
	.type	cb710_mmc_set_ios, @function
cb710_mmc_set_ios:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	cb710_mmc_to_slot@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	mmc_priv@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, r12
	mov	r13, rax
	call	cb710_mmc_set_clock@PLT
	mov	rdi, rbp
	call	cb710_mmc_is_card_inserted@PLT
	test	eax, eax
	je	.L19
	movsx	rdx, DWORD PTR [rbx]
	cmp	rdx, QWORD PTR 0[r13]
	je	.L4
	cmp	edx, 129
	jne	.L20
	mov	rdi, rbp
	call	cb710_mmc_powerup@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L21
.L8:
	mov	QWORD PTR 0[r13], 129
.L4:
	mov	rax, QWORD PTR MMC_BUS_WIDTH_1[rip]
	xor	esi, esi
	cmp	QWORD PTR 8[rbx], rax
	mov	rdi, rbp
	setne	sil
	call	cb710_mmc_enable_4bit_data@PLT
	mov	esi, DWORD PTR CB710_MMC_IE_TEST_MASK[rip]
	mov	rdi, rbp
	xor	edx, edx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	cb710_mmc_enable_irq@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	cmp	edx, 130
	jne	.L4
	mov	rdi, rbp
	call	cb710_mmc_powerdown@PLT
	mov	QWORD PTR 0[r13], 130
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	cb710_slot_dev@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_dbg@PLT
	cmp	QWORD PTR 0[r13], 130
	mov	DWORD PTR [rbx], 130
	je	.L4
	mov	rdi, rbp
	call	cb710_mmc_powerdown@PLT
	mov	QWORD PTR 0[r13], 130
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	cb710_slot_dev@PLT
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	dev_warn@PLT
	mov	rdi, rbp
	call	cb710_mmc_powerdown@PLT
	mov	edi, 1
	call	udelay@PLT
	mov	rdi, rbp
	call	cb710_mmc_powerup@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
	mov	rdi, rbp
	call	cb710_slot_dev@PLT
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	dev_warn@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	cb710_mmc_set_ios, .-cb710_mmc_set_ios
	.comm	MMC_BUS_WIDTH_1,8,8
	.comm	CB710_MMC_IE_TEST_MASK,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_cb710-mmc.c_cb710_mmc_set_ios.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no card inserted - ignoring bus powerup request\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"powerup failed (%d)- retrying\012\000"
	.align	2
.LC2:
	.ascii	"powerup retry failed (%d) - expect errors\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cb710_mmc_set_ios, %function
cb710_mmc_set_ios:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r1
	bl	cb710_mmc_to_slot
	mov	r4, r0
	mov	r0, r6
	bl	mmc_priv
	mov	r3, r0
	ldr	r1, [r5, #8]
	mov	r0, r6
	mov	r6, r3
	bl	cb710_mmc_set_clock
	mov	r0, r4
	bl	cb710_mmc_is_card_inserted
	cmp	r0, #0
	beq	.L19
	ldr	r3, [r5]
	ldr	r2, [r6]
	cmp	r3, r2
	beq	.L4
	cmp	r3, #129
	bne	.L20
	mov	r0, r4
	bl	cb710_mmc_powerup
	subs	r7, r0, #0
	bne	.L21
.L8:
	mov	r3, #129
	str	r3, [r6]
.L4:
	ldr	r3, .L22
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	mov	r0, r4
	subs	r1, r1, r3
	movne	r1, #1
	bl	cb710_mmc_enable_4bit_data
	ldr	r3, .L22+4
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	ldr	r1, [r3]
	b	cb710_mmc_enable_irq
.L20:
	cmp	r3, #130
	bne	.L4
	mov	r0, r4
	bl	cb710_mmc_powerdown
	mov	r3, #130
	str	r3, [r6]
	b	.L4
.L19:
	mov	r0, r4
	bl	cb710_slot_dev
	ldr	r1, .L22+8
	bl	dev_dbg
	mov	r2, #130
	ldr	r3, [r6]
	str	r2, [r5]
	cmp	r3, r2
	beq	.L4
	mov	r0, r4
	bl	cb710_mmc_powerdown
	mov	r3, #130
	str	r3, [r6]
	b	.L4
.L21:
	mov	r0, r4
	bl	cb710_slot_dev
	mov	r2, r7
	ldr	r1, .L22+12
	bl	dev_warn
	mov	r0, r4
	bl	cb710_mmc_powerdown
	mov	r0, #1
	bl	udelay
	mov	r0, r4
	bl	cb710_mmc_powerup
	subs	r7, r0, #0
	beq	.L8
	mov	r0, r4
	bl	cb710_slot_dev
	mov	r2, r7
	ldr	r1, .L22+16
	bl	dev_warn
	b	.L8
.L23:
	.align	2
.L22:
	.word	MMC_BUS_WIDTH_1
	.word	CB710_MMC_IE_TEST_MASK
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	cb710_mmc_set_ios, .-cb710_mmc_set_ios
	.comm	MMC_BUS_WIDTH_1,4,4
	.comm	CB710_MMC_IE_TEST_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
