	.file	"extr_imxmmc.c_imxmci_start_clock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"imxmci_start_clock blocked, no luck\n"
	.text
	.p2align 4
	.type	imxmci_start_clock, @function
imxmci_start_clock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, 256
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	r12, 16[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR MMC_REG_STR_STP_CLK[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	readw@PLT
	mov	edi, DWORD PTR STR_STP_CLK_STOP_CLK[rip]
	mov	rsi, QWORD PTR MMC_REG_STR_STP_CLK[rip]
	add	rsi, QWORD PTR 8[rbp]
	not	edi
	and	edi, eax
	call	writew@PLT
	mov	edi, DWORD PTR IMXMCI_PEND_STARTED_b[rip]
	mov	rsi, r12
	call	clear_bit@PLT
	mov	rdi, QWORD PTR MMC_REG_STR_STP_CLK[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	readw@PLT
	or	eax, DWORD PTR STR_STP_CLK_START_CLK[rip]
	mov	rsi, QWORD PTR MMC_REG_STR_STP_CLK[rip]
	mov	edi, eax
	add	rsi, QWORD PTR 8[rbp]
	call	writew@PLT
.L9:
	mov	ebx, 128
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR IMXMCI_PEND_STARTED_b[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L3
	sub	ebx, 1
	je	.L18
.L7:
	mov	rdi, QWORD PTR MMC_REG_STATUS[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	readw@PLT
	test	DWORD PTR STATUS_CARD_BUS_CLK_RUN[rip], eax
	je	.L5
	mov	rdi, QWORD PTR MMC_REG_STATUS[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	readw@PLT
	test	DWORD PTR STATUS_CARD_BUS_CLK_RUN[rip], eax
	je	.L5
.L3:
	xor	eax, eax
.L1:
	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
	ret
.L18:
	.cfi_restore_state
	xor	edi, edi
	call	local_irq_save@PLT
	mov	edi, DWORD PTR IMXMCI_PEND_STARTED_b[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	je	.L19
.L8:
	xor	edi, edi
	call	local_irq_restore@PLT
	sub	r13d, 1
	jne	.L9
	mov	edi, DWORD PTR 0[rbp]
	call	mmc_dev@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_err@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, QWORD PTR MMC_REG_STR_STP_CLK[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	readw@PLT
	or	eax, DWORD PTR STR_STP_CLK_START_CLK[rip]
	mov	rsi, QWORD PTR MMC_REG_STR_STP_CLK[rip]
	mov	edi, eax
	add	rsi, QWORD PTR 8[rbp]
	call	writew@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	imxmci_start_clock, .-imxmci_start_clock
	.comm	STR_STP_CLK_STOP_CLK,4,4
	.comm	STR_STP_CLK_START_CLK,4,4
	.comm	STATUS_CARD_BUS_CLK_RUN,4,4
	.comm	MMC_REG_STR_STP_CLK,8,8
	.comm	MMC_REG_STATUS,8,8
	.comm	IMXMCI_PEND_STARTED_b,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_imxmmc.c_imxmci_start_clock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"imxmci_start_clock blocked, no luck\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	imxmci_start_clock, %function
imxmci_start_clock:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L20
	mov	r5, r0
	ldr	r3, [r10]
	ldr	r0, [r0, #4]
	sub	sp, sp, #12
	add	r0, r0, r3
	bl	readw
	ldr	r3, .L20+4
	ldr	r1, [r5, #4]
	ldr	r2, [r3]
	ldr	r3, [r10]
	ldr	r8, .L20+8
	bic	r0, r0, r2
	add	r1, r1, r3
	add	r9, r5, #8
	bl	writew
	mov	r1, r9
	ldr	r0, [r8]
	bl	clear_bit
	ldr	r3, [r10]
	ldr	r0, [r5, #4]
	ldr	fp, .L20+12
	add	r0, r0, r3
	bl	readw
	ldr	r3, [r10]
	ldr	r2, [fp]
	ldr	r1, [r5, #4]
	orr	r0, r0, r2
	add	r1, r1, r3
	bl	writew
	mov	r3, #256
	ldr	r7, .L20+16
	ldr	r6, .L20+20
	str	r3, [sp, #4]
.L9:
	mov	r4, #128
	b	.L7
.L5:
	mov	r1, r9
	ldr	r0, [r8]
	bl	test_bit
	cmp	r0, #0
	bne	.L3
	subs	r4, r4, #1
	beq	.L18
.L7:
	ldr	r3, [r7]
	ldr	r0, [r5, #4]
	add	r0, r0, r3
	bl	readw
	ldr	r3, [r6]
	tst	r0, r3
	beq	.L5
	ldr	r3, [r7]
	ldr	r0, [r5, #4]
	add	r0, r0, r3
	bl	readw
	ldr	r3, [r6]
	tst	r0, r3
	beq	.L5
.L3:
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, #0
	bl	local_irq_save
	mov	r1, r9
	ldr	r0, [r8]
	bl	test_bit
	cmp	r0, #0
	beq	.L19
.L8:
	mov	r0, #0
	bl	local_irq_restore
	ldr	r3, [sp, #4]
	subs	r3, r3, #1
	str	r3, [sp, #4]
	bne	.L9
	ldr	r0, [r5]
	bl	mmc_dev
	ldr	r1, .L20+24
	bl	dev_err
	mvn	r0, #0
	b	.L1
.L19:
	ldr	r3, [r10]
	ldr	r0, [r5, #4]
	add	r0, r0, r3
	bl	readw
	ldr	r2, [fp]
	ldr	r1, [r5, #4]
	ldr	r3, [r10]
	orr	r0, r0, r2
	add	r1, r1, r3
	bl	writew
	b	.L8
.L21:
	.align	2
.L20:
	.word	MMC_REG_STR_STP_CLK
	.word	STR_STP_CLK_STOP_CLK
	.word	IMXMCI_PEND_STARTED_b
	.word	STR_STP_CLK_START_CLK
	.word	MMC_REG_STATUS
	.word	STATUS_CARD_BUS_CLK_RUN
	.word	.LC0
	.size	imxmci_start_clock, .-imxmci_start_clock
	.comm	STR_STP_CLK_STOP_CLK,4,4
	.comm	STR_STP_CLK_START_CLK,4,4
	.comm	STATUS_CARD_BUS_CLK_RUN,4,4
	.comm	MMC_REG_STR_STP_CLK,4,4
	.comm	MMC_REG_STATUS,4,4
	.comm	IMXMCI_PEND_STARTED_b,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
