	.file	"extr_mxcmmc.c_mxcmci_read_response.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CMD TIMEOUT\n"
.LC1:
	.string	"cmd crc error\n"
	.text
	.p2align 4
	.type	mxcmci_read_response, @function
mxcmci_read_response:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 8[rdi]
	test	r13, r13
	je	.L1
	mov	rbp, rdi
	test	DWORD PTR STATUS_TIME_OUT_RESP[rip], esi
	jne	.L23
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR STATUS_RESP_CRC_ERR[rip], esi
	je	.L5
	test	DWORD PTR MMC_RSP_CRC[rip], eax
	jne	.L24
.L5:
	test	DWORD PTR MMC_RSP_PRESENT[rip], eax
	je	.L1
.L25:
	mov	esi, DWORD PTR MMC_REG_RES_FIFO[rip]
	test	DWORD PTR MMC_RSP_136[rip], eax
	je	.L7
	xor	r12d, r12d
.L8:
	mov	rdi, rbp
	call	mxcmci_readw@PLT
	mov	esi, DWORD PTR MMC_REG_RES_FIFO[rip]
	mov	rdi, rbp
	mov	ebx, eax
	call	mxcmci_readw@PLT
	sal	ebx, 16
	mov	rdx, QWORD PTR 8[r13]
	or	ebx, eax
	mov	DWORD PTR [rdx+r12], ebx
	add	r12, 4
	cmp	r12, 16
	je	.L1
	mov	esi, DWORD PTR MMC_REG_RES_FIFO[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	call	mxcmci_readw@PLT
	mov	esi, DWORD PTR MMC_REG_RES_FIFO[rip]
	mov	rdi, rbp
	mov	ebx, eax
	call	mxcmci_readw@PLT
	mov	esi, DWORD PTR MMC_REG_RES_FIFO[rip]
	mov	rdi, rbp
	sal	ebx, 24
	mov	r12d, eax
	call	mxcmci_readw@PLT
	sal	r12d, 8
	mov	rdx, QWORD PTR 8[r13]
	or	ebx, r12d
	sar	eax, 8
	or	ebx, eax
	mov	DWORD PTR [rdx], ebx
.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
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	edi, DWORD PTR [rdi]
	call	mmc_dev@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	neg	eax
	mov	DWORD PTR 16[r13], eax
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR MMC_RSP_PRESENT[rip], eax
	je	.L1
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR [rdi]
	call	mmc_dev@PLT
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR EILSEQ[rip]
	neg	eax
	mov	DWORD PTR 16[r13], eax
	mov	eax, DWORD PTR 0[r13]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	mxcmci_read_response, .-mxcmci_read_response
	.comm	STATUS_TIME_OUT_RESP,4,4
	.comm	STATUS_RESP_CRC_ERR,4,4
	.comm	MMC_RSP_PRESENT,4,4
	.comm	MMC_RSP_CRC,4,4
	.comm	MMC_RSP_136,4,4
	.comm	MMC_REG_RES_FIFO,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EILSEQ,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_read_response.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CMD TIMEOUT\012\000"
	.align	2
.LC1:
	.ascii	"cmd crc error\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxcmci_read_response, %function
mxcmci_read_response:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #4]
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L25
	mov	r4, r0
	ldr	r3, [r3]
	tst	r1, r3
	bne	.L23
	ldr	r2, .L25+4
	ldr	r3, [r6]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L5
	ldr	r2, .L25+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L24
.L5:
	ldr	r2, .L25+12
	ldr	r2, [r2]
	tst	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L25+16
	ldr	r8, .L25+20
	ldr	r2, [r2]
	ldr	r1, [r8]
	tst	r3, r2
	beq	.L7
	mov	r5, #0
.L8:
	mov	r0, r4
	bl	mxcmci_readw
	ldr	r1, [r8]
	mov	r7, r0
	mov	r0, r4
	bl	mxcmci_readw
	ldr	r3, [r6, #4]
	orr	r0, r0, r7, lsl #16
	str	r0, [r3, r5]
	add	r5, r5, #4
	cmp	r5, #16
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, [r8]
	b	.L8
.L23:
	ldr	r0, [r0]
	bl	mmc_dev
	ldr	r1, .L25+24
	bl	dev_dbg
	ldr	r2, .L25+28
	ldr	r3, [r6]
	ldr	r2, [r2]
	rsb	r2, r2, #0
	str	r2, [r6, #8]
	b	.L5
.L24:
	ldr	r0, [r0]
	bl	mmc_dev
	ldr	r1, .L25+32
	bl	dev_dbg
	ldr	r2, .L25+36
	ldr	r3, [r6]
	ldr	r2, [r2]
	rsb	r2, r2, #0
	str	r2, [r6, #8]
	b	.L5
.L7:
	mov	r0, r4
	bl	mxcmci_readw
	ldr	r1, [r8]
	mov	r7, r0
	mov	r0, r4
	bl	mxcmci_readw
	mov	r5, r0
	ldr	r1, [r8]
	mov	r0, r4
	bl	mxcmci_readw
	lsl	r5, r5, #8
	ldr	r3, [r6, #4]
	orr	r5, r5, r7, lsl #24
	orr	r5, r5, r0, asr #8
	str	r5, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	.align	2
.L25:
	.word	STATUS_TIME_OUT_RESP
	.word	STATUS_RESP_CRC_ERR
	.word	MMC_RSP_CRC
	.word	MMC_RSP_PRESENT
	.word	MMC_RSP_136
	.word	MMC_REG_RES_FIFO
	.word	.LC0
	.word	ETIMEDOUT
	.word	.LC1
	.word	EILSEQ
	.size	mxcmci_read_response, .-mxcmci_read_response
	.comm	STATUS_TIME_OUT_RESP,4,4
	.comm	STATUS_RESP_CRC_ERR,4,4
	.comm	MMC_RSP_PRESENT,4,4
	.comm	MMC_RSP_CRC,4,4
	.comm	MMC_RSP_136,4,4
	.comm	MMC_REG_RES_FIFO,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EILSEQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
