	.file	"extr_mci_device.c_AT91F_MCI_ReadBlockSwab.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AT91F_MCI_ReadBlockSwab
	.type	AT91F_MCI_ReadBlockSwab, @function
AT91F_MCI_ReadBlockSwab:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR BUFFER_SIZE_MCI_DEVICE[rip]
	test	eax, eax
	jle	.L2
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	BYTE PTR [rbx+rax], 0
	add	rax, 1
	cmp	DWORD PTR BUFFER_SIZE_MCI_DEVICE[rip], eax
	jg	.L3
.L2:
	mov	rdx, rbx
	lea	rdi, MCI_Device[rip]
	lea	rbp, 512[rbx]
	call	AT91F_MCI_ReadBlock@PLT
	mov	edi, DWORD PTR AT91C_MCI_TIMEOUT[rip]
	call	AT91F_MCIDeviceWaitReady@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR [rbx]
	add	rbx, 4
	call	swab32@PLT
	mov	DWORD PTR -4[rbx], eax
	cmp	rbx, rbp
	jne	.L4
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	AT91F_MCI_ReadBlockSwab, .-AT91F_MCI_ReadBlockSwab
	.comm	MCI_Device,4,4
	.comm	BUFFER_SIZE_MCI_DEVICE,4,4
	.comm	AT91C_MCI_TIMEOUT,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_mci_device.c_AT91F_MCI_ReadBlockSwab.c"
	.text
	.align	2
	.global	AT91F_MCI_ReadBlockSwab
	.syntax unified
	.arm
	.fpu softvfp
	.type	AT91F_MCI_ReadBlockSwab, %function
AT91F_MCI_ReadBlockSwab:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	lr, .L9
	mov	r5, r2
	ldr	r0, [lr]
	cmp	r0, #0
	ble	.L2
	mov	r2, #0
	mov	r0, r5
	mov	r4, r2
.L3:
	strb	r4, [r0], #1
	ldr	ip, [lr]
	add	r2, r2, #1
	cmp	ip, r2
	bgt	.L3
.L2:
	mov	r2, r5
	ldr	r0, .L9+4
	bl	AT91F_MCI_ReadBlock
	ldr	r3, .L9+8
	sub	r4, r5, #4
	ldr	r0, [r3]
	bl	AT91F_MCIDeviceWaitReady
	add	r5, r5, #508
.L4:
	ldr	r0, [r4, #4]!
	bl	swab32
	cmp	r4, r5
	str	r0, [r4]
	bne	.L4
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	BUFFER_SIZE_MCI_DEVICE
	.word	MCI_Device
	.word	AT91C_MCI_TIMEOUT
	.size	AT91F_MCI_ReadBlockSwab, .-AT91F_MCI_ReadBlockSwab
	.comm	MCI_Device,4,4
	.comm	BUFFER_SIZE_MCI_DEVICE,4,4
	.comm	AT91C_MCI_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
