	.file	"extr_tx4939ide.c_tx4939ide_set_dma_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tx4939ide_set_dma_mode, @function
tx4939ide_set_dma_mode:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR XFER_UDMA_0[rip]
	mov	rcx, QWORD PTR 8[rdi]
	cmp	rax, rsi
	jg	.L2
	sub	esi, eax
	cmp	QWORD PTR [rdi], 0
	lea	eax, 8[rsi]
	je	.L4
.L7:
	sal	eax, 20
	mov	edx, eax
	mov	eax, -15728641
	and	eax, DWORD PTR [rcx]
	or	eax, edx
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	sub	esi, DWORD PTR XFER_MW_DMA_0[rip]
	cmp	QWORD PTR [rdi], 0
	lea	eax, 5[rsi]
	jne	.L7
.L4:
	sal	eax, 4
	mov	edx, eax
	mov	eax, -241
	and	eax, DWORD PTR [rcx]
	or	eax, edx
	mov	DWORD PTR [rcx], eax
	ret
	.cfi_endproc
.LFE0:
	.size	tx4939ide_set_dma_mode, .-tx4939ide_set_dma_mode
	.comm	XFER_UDMA_0,8,8
	.comm	XFER_MW_DMA_0,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_tx4939ide.c_tx4939ide_set_dma_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tx4939ide_set_dma_mode, %function
tx4939ide_set_dma_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L7
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r3, r1
	ldrgt	r3, .L7+4
	suble	r1, r1, r3
	ldrgt	r3, [r3]
	addle	r1, r1, #8
	subgt	r1, r1, r3
	ldr	r3, [r0]
	addgt	r1, r1, #5
	cmp	r3, #0
	mvnne	r3, #15728640
	mvneq	r3, #240
	ldr	r0, [r2]
	lslne	r1, r1, #20
	lsleq	r1, r1, #4
	and	r3, r3, r0
	orr	r1, r3, r1
	str	r1, [r2]
	bx	lr
.L8:
	.align	2
.L7:
	.word	XFER_UDMA_0
	.word	XFER_MW_DMA_0
	.size	tx4939ide_set_dma_mode, .-tx4939ide_set_dma_mode
	.comm	XFER_UDMA_0,4,4
	.comm	XFER_MW_DMA_0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
