	.file	"extr_pxamci.c_pxamci_stop_clock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unable to stop clock\n"
	.text
	.p2align 4
	.type	pxamci_stop_clock, @function
pxamci_stop_clock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	rdi, QWORD PTR MMC_STAT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	add	rdi, QWORD PTR 8[r12]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	readl@PLT
	test	DWORD PTR STAT_CLK_EN[rip], eax
	jne	.L15
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR STOP_CLOCK[rip]
	mov	rsi, QWORD PTR MMC_STRPCL[rip]
	mov	ebp, 10001
	add	rsi, QWORD PTR 8[r12]
	call	writel@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR MMC_STAT[rip]
	add	rdi, QWORD PTR 8[r12]
	call	readl@PLT
	mov	ebx, eax
	test	DWORD PTR STAT_CLK_EN[rip], eax
	je	.L1
	mov	edi, 1
	call	udelay@PLT
	sub	rbp, 1
	jne	.L5
	test	DWORD PTR STAT_CLK_EN[rip], ebx
	je	.L1
	mov	edi, DWORD PTR [r12]
	call	mmc_dev@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	pxamci_stop_clock, .-pxamci_stop_clock
	.comm	STOP_CLOCK,4,4
	.comm	STAT_CLK_EN,4,4
	.comm	MMC_STRPCL,8,8
	.comm	MMC_STAT,8,8
	.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_pxamci.c_pxamci_stop_clock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to stop clock\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pxamci_stop_clock, %function
pxamci_stop_clock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L15
	mov	r6, r0
	ldr	r3, [r8]
	ldr	r0, [r0, #4]
	ldr	r7, .L15+4
	add	r0, r0, r3
	bl	readl
	ldr	r3, [r7]
	tst	r0, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L15+8
	ldr	r1, [r6, #4]
	ldr	r2, [r3]
	ldr	r3, .L15+12
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	writel
	ldr	r5, .L15+16
.L5:
	ldr	r3, [r8]
	ldr	r0, [r6, #4]
	add	r0, r0, r3
	bl	readl
	ldr	r3, [r7]
	mov	r4, r0
	tst	r0, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, #1
	bl	udelay
	subs	r5, r5, #1
	bne	.L5
	ldr	r3, [r7]
	tst	r4, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r0, [r6]
	bl	mmc_dev
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L15+20
	b	dev_err
.L16:
	.align	2
.L15:
	.word	MMC_STAT
	.word	STAT_CLK_EN
	.word	MMC_STRPCL
	.word	STOP_CLOCK
	.word	10001
	.word	.LC0
	.size	pxamci_stop_clock, .-pxamci_stop_clock
	.comm	STOP_CLOCK,4,4
	.comm	STAT_CLK_EN,4,4
	.comm	MMC_STRPCL,4,4
	.comm	MMC_STAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
