	.file	"extr_pata_arasan_cf.c_arasan_cf_dma_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arasan_cf_dma_start, @function
arasan_cf_dma_start:
.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
	mov	rbp, rdi
	mov	r12, QWORD PTR 16[rdi]
	mov	rdi, QWORD PTR XFER_CTR[rip]
	add	rdi, QWORD PTR 8[rbp]
	mov	r13, QWORD PTR 8[r12]
	call	readl@PLT
	mov	edi, DWORD PTR XFER_DIR_MASK[rip]
	mov	edx, DWORD PTR [r12]
	mov	rsi, QWORD PTR XFER_CTR[rip]
	not	edi
	and	eax, edi
	test	DWORD PTR ATA_TFLAG_WRITE[rip], edx
	mov	edx, DWORD PTR XFER_WRITE[rip]
	cmove	edx, DWORD PTR XFER_READ[rip]
	add	rsi, QWORD PTR 8[rbp]
	mov	edi, edx
	or	edi, eax
	call	writel@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r13
	mov	rsi, r12
	call	[QWORD PTR [rax]]
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ata_sff_queue_work@PLT
	.cfi_endproc
.LFE0:
	.size	arasan_cf_dma_start, .-arasan_cf_dma_start
	.comm	XFER_WRITE,4,4
	.comm	XFER_READ,4,4
	.comm	XFER_DIR_MASK,4,4
	.comm	XFER_CTR,8,8
	.comm	ATA_TFLAG_WRITE,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_pata_arasan_cf.c_arasan_cf_dma_start.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arasan_cf_dma_start, %function
arasan_cf_dma_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, .L6
	ldr	r0, [r0, #4]
	ldr	r3, [r7]
	ldr	r5, [r4, #8]
	add	r0, r0, r3
	ldr	r6, [r5, #4]
	bl	readl
	ldr	r2, .L6+4
	ldr	r3, .L6+8
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r1, r2
	bic	r0, r0, r3
	ldrne	r3, .L6+12
	ldreq	r3, .L6+16
	ldr	r1, [r4, #4]
	ldr	r2, [r3]
	ldr	r3, [r7]
	orr	r0, r2, r0
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r6]
	mov	r1, r5
	mov	r0, r6
	ldr	r3, [r3]
	blx	r3
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	ata_sff_queue_work
.L7:
	.align	2
.L6:
	.word	XFER_CTR
	.word	ATA_TFLAG_WRITE
	.word	XFER_DIR_MASK
	.word	XFER_WRITE
	.word	XFER_READ
	.size	arasan_cf_dma_start, .-arasan_cf_dma_start
	.comm	XFER_WRITE,4,4
	.comm	XFER_READ,4,4
	.comm	XFER_DIR_MASK,4,4
	.comm	XFER_CTR,4,4
	.comm	ATA_TFLAG_WRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
