	.file	"extr_mxcmmc.c_mxcmci_push.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mxcmci_push, @function
mxcmci_push:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	edx, 3
	jg	.L4
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 0[rbp]
	mov	r14d, DWORD PTR MMC_REG_BUFFER_ACCESS[rip]
	sub	r12d, 4
	add	rbp, 4
	call	cpu_to_le32@PLT
	mov	edx, r14d
	mov	rdi, r13
	mov	esi, eax
	call	mxcmci_writel@PLT
	cmp	r12d, 3
	jle	.L2
.L4:
	mov	esi, DWORD PTR STATUS_BUF_WRITE_RDY[rip]
	mov	rdi, r13
	call	mxcmci_poll_status@PLT
	test	eax, eax
	je	.L14
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR STATUS_BUF_WRITE_RDY[rip]
	test	r12d, r12d
	je	.L5
	mov	rdi, r13
	call	mxcmci_poll_status@PLT
	test	eax, eax
	jne	.L1
	mov	edx, r12d
	mov	rsi, rbp
	lea	rdi, 4[rsp]
	call	memcpy@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	r12d, DWORD PTR MMC_REG_BUFFER_ACCESS[rip]
	call	cpu_to_le32@PLT
	mov	edx, r12d
	mov	rdi, r13
	mov	esi, eax
	call	mxcmci_writel@PLT
	mov	esi, DWORD PTR STATUS_BUF_WRITE_RDY[rip]
.L5:
	mov	rdi, r13
	call	mxcmci_poll_status@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mxcmci_push, .-mxcmci_push
	.comm	STATUS_BUF_WRITE_RDY,4,4
	.comm	MMC_REG_BUFFER_ACCESS,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_mxcmmc.c_mxcmci_push.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxcmci_push, %function
mxcmci_push:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L19
	sub	sp, sp, #12
	cmp	r2, #3
	mov	fp, r2
	mov	r5, r0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ble	.L9
	sub	r6, r2, #4
	bic	r6, r6, #3
	add	r6, r6, #4
	mov	r9, r2
	mov	r4, r1
	ldr	r8, .L19+4
	ldr	r10, .L19+8
	add	r6, r1, r6
	b	.L4
.L17:
	ldr	r0, [r4], #4
	bl	cpu_to_le32
	ldr	r2, [r10]
	mov	r1, r0
	mov	r0, r5
	bl	mxcmci_writel
	sub	r2, r9, r4
	cmp	r4, r6
	add	fp, r7, r2
	beq	.L2
.L4:
	mov	r0, r5
	ldr	r1, [r8]
	bl	mxcmci_poll_status
	cmp	r0, #0
	beq	.L17
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r6, r1
	ldr	r8, .L19+4
.L2:
	cmp	fp, #0
	ldr	r1, [r8]
	bne	.L18
.L5:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mxcmci_poll_status
.L18:
	mov	r0, r5
	bl	mxcmci_poll_status
	cmp	r0, #0
	bne	.L1
	mov	r2, fp
	mov	r1, r6
	mov	r0, sp
	bl	memcpy
	ldr	r0, [sp]
	bl	cpu_to_le32
	ldr	r3, .L19+8
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r5
	bl	mxcmci_writel
	ldr	r1, [r8]
	b	.L5
.L15:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	STATUS_BUF_WRITE_RDY
	.word	MMC_REG_BUFFER_ACCESS
	.size	mxcmci_push, .-mxcmci_push
	.comm	STATUS_BUF_WRITE_RDY,4,4
	.comm	MMC_REG_BUFFER_ACCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
