	.file	"extr_sdhci.c_sdhci_transfer_pio.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PIO transfer complete.\n"
	.text
	.p2align 4
	.type	sdhci_transfer_pio, @function
sdhci_transfer_pio:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	je	.L1
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 16[rdi]
	mov	ebp, DWORD PTR SDHCI_DATA_AVAILABLE[rip]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR MMC_DATA_READ[rip], edx
	mov	edx, DWORD PTR 8[rdi]
	cmove	ebp, DWORD PTR SDHCI_SPACE_AVAILABLE[rip]
	test	DWORD PTR SDHCI_QUIRK_BROKEN_SMALL_PIO[rip], edx
	je	.L9
	cmp	DWORD PTR 4[rax], 1
	mov	eax, -1
	cmove	ebp, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	call	sdhci_read_block_pio@PLT
	sub	QWORD PTR [rbx], 1
	je	.L11
.L9:
	mov	esi, DWORD PTR SDHCI_PRESENT_STATE[rip]
	mov	rdi, rbx
	call	sdhci_readl@PLT
	test	eax, ebp
	je	.L11
	mov	eax, DWORD PTR 8[rbx]
	test	DWORD PTR SDHCI_QUIRK_PIO_NEEDS_DELAY[rip], eax
	jne	.L23
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, rbx
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR MMC_DATA_READ[rip], eax
	jne	.L24
	call	sdhci_write_block_pio@PLT
	sub	QWORD PTR [rbx], 1
	jne	.L9
.L11:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	DBG@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	edi, 100
	call	udelay@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	sdhci_transfer_pio, .-sdhci_transfer_pio
	.comm	SDHCI_SPACE_AVAILABLE,4,4
	.comm	SDHCI_QUIRK_PIO_NEEDS_DELAY,4,4
	.comm	SDHCI_QUIRK_BROKEN_SMALL_PIO,4,4
	.comm	SDHCI_PRESENT_STATE,4,4
	.comm	SDHCI_DATA_AVAILABLE,4,4
	.comm	MMC_DATA_READ,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_sdhci.c_sdhci_transfer_pio.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PIO transfer complete.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdhci_transfer_pio, %function
sdhci_transfer_pio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0, #8]
	ldr	r6, .L26
	ldr	r1, [r3]
	ldr	r2, [r6]
	mov	r4, r0
	tst	r1, r2
	ldrne	r2, .L26+4
	ldreq	r2, .L26+8
	ldr	r1, [r0, #4]
	ldr	r5, [r2]
	ldr	r2, .L26+12
	ldr	r2, [r2]
	tst	r1, r2
	bne	.L23
.L5:
	ldr	r7, .L26+16
	ldr	r8, .L26+20
	b	.L9
.L25:
	bl	sdhci_read_block_pio
.L8:
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4]
	beq	.L11
.L9:
	mov	r0, r4
	ldr	r1, [r7]
	bl	sdhci_readl
	tst	r0, r5
	beq	.L11
	ldr	r2, [r4, #4]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L24
.L6:
	ldr	r2, [r4, #8]
	ldr	r3, [r6]
	ldr	r2, [r2]
	mov	r0, r4
	tst	r2, r3
	bne	.L25
	bl	sdhci_write_block_pio
	b	.L8
.L24:
	mov	r0, #100
	bl	udelay
	b	.L6
.L11:
	ldr	r0, .L26+24
	pop	{r4, r5, r6, r7, r8, lr}
	b	DBG
.L23:
	ldr	r3, [r3, #4]
	cmp	r3, #1
	mvneq	r5, #0
	b	.L5
.L27:
	.align	2
.L26:
	.word	MMC_DATA_READ
	.word	SDHCI_DATA_AVAILABLE
	.word	SDHCI_SPACE_AVAILABLE
	.word	SDHCI_QUIRK_BROKEN_SMALL_PIO
	.word	SDHCI_PRESENT_STATE
	.word	SDHCI_QUIRK_PIO_NEEDS_DELAY
	.word	.LC0
	.size	sdhci_transfer_pio, .-sdhci_transfer_pio
	.comm	SDHCI_SPACE_AVAILABLE,4,4
	.comm	SDHCI_QUIRK_PIO_NEEDS_DELAY,4,4
	.comm	SDHCI_QUIRK_BROKEN_SMALL_PIO,4,4
	.comm	SDHCI_PRESENT_STATE,4,4
	.comm	SDHCI_DATA_AVAILABLE,4,4
	.comm	MMC_DATA_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
