	.file	"extr_sdmmc_io.c_sdmmc_io_read_bytes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sdmmc_io_read_bytes
	.type	sdmmc_io_read_bytes, @function
sdmmc_io_read_bytes:
.LFB0:
	.cfi_startproc
	endbr64
	test	r8, r8
	je	.L2
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r9, rbp
	mov	r8, r13
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r14
	call	sdmmc_io_rw_extended@PLT
	cmp	QWORD PTR ESP_OK[rip], rax
	jne	.L7
	lea	r13, 0[r13+rbp*4]
	add	r12, rbp
	sub	rbx, rbp
	je	.L7
.L5:
	mov	rbp, rbx
	mov	ecx, DWORD PTR SD_ARG_CMD53_INCREMENT[rip]
	or	ecx, DWORD PTR SD_ARG_CMD53_READ[rip]
	and	rbp, -4
	jne	.L14
	mov	r8, r13
	mov	r9, rbx
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r14
	call	sdmmc_io_rw_extended@PLT
	mov	r8, rax
	mov	rax, QWORD PTR ESP_OK[rip]
	cmp	r8, rax
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r8, rax
	jmp	.L1
.L2:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	rax, QWORD PTR ESP_OK[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	sdmmc_io_read_bytes, .-sdmmc_io_read_bytes
	.comm	SD_ARG_CMD53_READ,4,4
	.comm	SD_ARG_CMD53_INCREMENT,4,4
	.comm	ESP_OK,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_sdmmc_io.c_sdmmc_io_read_bytes.c"
	.text
	.align	2
	.global	sdmmc_io_read_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdmmc_io_read_bytes, %function
sdmmc_io_read_bytes:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	r4, [sp, #56]
	cmp	r4, #0
	beq	.L2
	mov	r8, r0
	mov	r6, r2
	mov	r7, r3
	ldr	r10, .L13
	ldr	r9, .L13+4
	ldr	fp, .L13+8
	b	.L5
.L12:
	str	r7, [sp]
	mov	r2, r6
	mov	r0, r8
	str	r5, [sp, #4]
	str	r1, [sp, #12]
	bl	sdmmc_io_rw_extended
	ldr	r3, [fp]
	add	r7, r7, r5, lsl #2
	cmp	r3, r0
	bne	.L7
	subs	r4, r4, r5
	ldr	r1, [sp, #12]
	add	r6, r6, r5
	beq	.L7
.L5:
	ldr	r3, [r10]
	ldr	r2, [r9]
	bics	r5, r4, #3
	orr	r3, r3, r2
	bne	.L12
	mov	r2, r6
	mov	r0, r8
	str	r4, [sp, #4]
	str	r7, [sp]
	bl	sdmmc_io_rw_extended
	ldr	r3, [fp]
	cmp	r0, r3
	beq	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r3, r0
.L10:
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	b	.L10
.L14:
	.align	2
.L13:
	.word	SD_ARG_CMD53_INCREMENT
	.word	SD_ARG_CMD53_READ
	.word	ESP_OK
	.size	sdmmc_io_read_bytes, .-sdmmc_io_read_bytes
	.comm	SD_ARG_CMD53_READ,4,4
	.comm	SD_ARG_CMD53_INCREMENT,4,4
	.comm	ESP_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
