	.file	"extr_igb_main.c_igb_init_dmac.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	igb_init_dmac, @function
igb_init_dmac:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR e1000_82580[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 8[rdi], rax
	jle	.L2
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	test	DWORD PTR IGB_FLAG_DMAC[rip], eax
	jne	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	jne	.L1
	mov	edi, DWORD PTR E1000_PCIEMISC[rip]
	call	rd32@PLT
	mov	esi, DWORD PTR E1000_PCIEMISC_LX_DECISION[rip]
	mov	edi, DWORD PTR E1000_PCIEMISC[rip]
	not	esi
	and	esi, eax
	call	wr32@PLT
	mov	edi, DWORD PTR E1000_DMACR[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	wr32@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR E1000_DMCTXTH[rip]
	mov	r12d, esi
	xor	esi, esi
	call	wr32@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	eax, r12d
	mov	edi, DWORD PTR E1000_FCRTC[rip]
	sal	eax, 6
	lea	edx, 15[rcx]
	test	ecx, ecx
	mov	ebp, eax
	cmovns	edx, ecx
	sub	eax, 384
	sar	edx, 4
	sub	ebp, edx
	cmp	eax, ebp
	cmovge	ebp, eax
	call	rd32@PLT
	mov	ecx, DWORD PTR E1000_FCRTC_RTH_COAL_SHIFT[rip]
	mov	edi, DWORD PTR E1000_FCRTC[rip]
	mov	esi, ebp
	lea	ebp, -10[r12]
	sal	esi, cl
	xor	esi, eax
	and	esi, DWORD PTR E1000_FCRTC_RTH_COAL_MASK[rip]
	xor	esi, eax
	call	wr32@PLT
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 5631
	jg	.L5
	test	eax, eax
	lea	edx, 511[rax]
	mov	ebp, r12d
	cmovs	eax, edx
	sar	eax, 9
	sub	ebp, eax
.L5:
	mov	edi, DWORD PTR E1000_DMACR[rip]
	call	rd32@PLT
	mov	ecx, DWORD PTR E1000_DMACR_DMACTHR_SHIFT[rip]
	mov	esi, eax
	mov	eax, ebp
	sal	eax, cl
	xor	eax, esi
	and	eax, DWORD PTR E1000_DMACR_DMACTHR_MASK[rip]
	xor	eax, esi
	mov	esi, DWORD PTR E1000_DMACR_DMAC_EN[rip]
	or	esi, DWORD PTR E1000_DMACR_DMAC_LX_MASK[rip]
	or	eax, esi
	or	eax, 31
	mov	esi, eax
	mov	rax, QWORD PTR e1000_i354[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L6
	mov	eax, DWORD PTR E1000_DMACR_DC_BMC2OSW_EN[rip]
	not	eax
	and	esi, eax
.L6:
	mov	edi, DWORD PTR E1000_DMACR[rip]
	call	wr32@PLT
	mov	edi, DWORD PTR E1000_DMCRTRH[rip]
	xor	esi, esi
	call	wr32@PLT
	mov	esi, DWORD PTR IGB_DMCTLX_DCFLUSH_DIS[rip]
	mov	edi, DWORD PTR E1000_DMCTLX[rip]
	or	esi, 4
	call	wr32@PLT
	mov	esi, DWORD PTR IGB_MIN_TXPBSIZE[rip]
	mov	eax, DWORD PTR IGB_TX_BUF_4096[rip]
	add	eax, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR E1000_DMCTXTH[rip]
	sub	esi, eax
	sar	esi, 6
	call	wr32@PLT
	mov	edi, DWORD PTR E1000_PCIEMISC[rip]
	call	rd32@PLT
	mov	esi, DWORD PTR E1000_PCIEMISC_LX_DECISION[rip]
	mov	edi, DWORD PTR E1000_PCIEMISC[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	not	esi
	pop	r12
	.cfi_def_cfa_offset 8
	and	esi, eax
	jmp	wr32@PLT
	.cfi_endproc
.LFE0:
	.size	igb_init_dmac, .-igb_init_dmac
	.comm	e1000_i354,8,8
	.comm	e1000_82580,8,8
	.comm	IGB_TX_BUF_4096,4,4
	.comm	IGB_MIN_TXPBSIZE,4,4
	.comm	IGB_FLAG_DMAC,4,4
	.comm	IGB_DMCTLX_DCFLUSH_DIS,4,4
	.comm	E1000_PCIEMISC_LX_DECISION,4,4
	.comm	E1000_PCIEMISC,4,4
	.comm	E1000_FCRTC_RTH_COAL_SHIFT,4,4
	.comm	E1000_FCRTC_RTH_COAL_MASK,4,4
	.comm	E1000_FCRTC,4,4
	.comm	E1000_DMCTXTH,4,4
	.comm	E1000_DMCTLX,4,4
	.comm	E1000_DMCRTRH,4,4
	.comm	E1000_DMACR_DMAC_LX_MASK,4,4
	.comm	E1000_DMACR_DMAC_EN,4,4
	.comm	E1000_DMACR_DMACTHR_SHIFT,4,4
	.comm	E1000_DMACR_DMACTHR_MASK,4,4
	.comm	E1000_DMACR_DC_BMC2OSW_EN,4,4
	.comm	E1000_DMACR,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_igb_main.c_igb_init_dmac.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	igb_init_dmac, %function
igb_init_dmac:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, r3
	ble	.L2
	ldr	r3, .L12+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r4, r0
	tst	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L12+8
	mov	r5, r1
	ldr	r0, [r7]
	mov	r1, #0
	bl	wr32
	ldr	r6, [r4, #4]
	ldr	r8, .L12+12
	add	r2, r6, #15
	cmp	r6, #0
	movlt	r6, r2
	lsl	r3, r5, #6
	asr	r6, r6, #4
	rsb	r6, r6, r5, lsl #6
	sub	r3, r3, #384
	cmp	r3, r6
	ldr	r0, [r8]
	movge	r6, r3
	bl	rd32
	mov	r1, r0
	ldr	r3, .L12+16
	ldr	r2, .L12+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	eor	r3, r0, r6, lsl r3
	and	r3, r3, r2
	eor	r1, r1, r3
	ldr	r0, [r8]
	bl	wr32
	ldr	r3, [r4, #4]
	cmp	r3, #5632
	subge	r5, r5, #10
	bge	.L5
	add	r2, r3, #508
	add	r2, r2, #3
	cmp	r3, #0
	movlt	r3, r2
	sub	r5, r5, r3, asr #9
.L5:
	ldr	r6, .L12+24
	ldr	r0, [r6]
	bl	rd32
	ldr	r2, .L12+28
	ldr	r3, .L12+32
	ldr	r1, [r2]
	ldr	r3, [r3]
	eor	r5, r0, r5, lsl r1
	ldr	r2, .L12+36
	ldr	r1, .L12+40
	ldr	r2, [r2]
	and	r5, r5, r3
	ldr	r1, [r1]
	ldr	r3, .L12+44
	orr	r1, r1, r2
	ldr	r3, [r3]
	ldr	r2, [r4, #8]
	eor	r0, r0, r5
	cmp	r2, r3
	ldrne	r3, .L12+48
	orr	r1, r1, r0
	ldrne	r3, [r3]
	orr	r1, r1, #31
	bicne	r1, r1, r3
	ldr	r0, [r6]
	bl	wr32
	ldr	r3, .L12+52
	mov	r1, #0
	ldr	r0, [r3]
	bl	wr32
	ldr	r2, .L12+56
	ldr	r3, .L12+60
	ldr	r1, [r2]
	ldr	r0, [r3]
	orr	r1, r1, #4
	bl	wr32
	ldr	r2, .L12+64
	ldr	r1, .L12+68
	ldr	r2, [r2]
	ldr	r3, [r4, #4]
	ldr	r1, [r1]
	add	r3, r3, r2
	sub	r1, r1, r3
	ldr	r4, .L12+72
	asr	r1, r1, #6
	ldr	r0, [r7]
	bl	wr32
	ldr	r0, [r4]
	bl	rd32
	mov	r3, r0
	ldr	r2, .L12+76
	ldr	r0, [r4]
	ldr	r1, [r2]
	pop	{r4, r5, r6, r7, r8, lr}
	bic	r1, r3, r1
	b	wr32
.L2:
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r4, .L12+72
	ldr	r0, [r4]
	bl	rd32
	mov	r3, r0
	ldr	r2, .L12+76
	ldr	r0, [r4]
	ldr	r1, [r2]
	bic	r1, r3, r1
	bl	wr32
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L12+24
	mov	r1, #0
	ldr	r0, [r3]
	b	wr32
.L13:
	.align	2
.L12:
	.word	e1000_82580
	.word	IGB_FLAG_DMAC
	.word	E1000_DMCTXTH
	.word	E1000_FCRTC
	.word	E1000_FCRTC_RTH_COAL_SHIFT
	.word	E1000_FCRTC_RTH_COAL_MASK
	.word	E1000_DMACR
	.word	E1000_DMACR_DMACTHR_SHIFT
	.word	E1000_DMACR_DMACTHR_MASK
	.word	E1000_DMACR_DMAC_LX_MASK
	.word	E1000_DMACR_DMAC_EN
	.word	e1000_i354
	.word	E1000_DMACR_DC_BMC2OSW_EN
	.word	E1000_DMCRTRH
	.word	IGB_DMCTLX_DCFLUSH_DIS
	.word	E1000_DMCTLX
	.word	IGB_TX_BUF_4096
	.word	IGB_MIN_TXPBSIZE
	.word	E1000_PCIEMISC
	.word	E1000_PCIEMISC_LX_DECISION
	.size	igb_init_dmac, .-igb_init_dmac
	.comm	e1000_i354,4,4
	.comm	e1000_82580,4,4
	.comm	IGB_TX_BUF_4096,4,4
	.comm	IGB_MIN_TXPBSIZE,4,4
	.comm	IGB_FLAG_DMAC,4,4
	.comm	IGB_DMCTLX_DCFLUSH_DIS,4,4
	.comm	E1000_PCIEMISC_LX_DECISION,4,4
	.comm	E1000_PCIEMISC,4,4
	.comm	E1000_FCRTC_RTH_COAL_SHIFT,4,4
	.comm	E1000_FCRTC_RTH_COAL_MASK,4,4
	.comm	E1000_FCRTC,4,4
	.comm	E1000_DMCTXTH,4,4
	.comm	E1000_DMCTLX,4,4
	.comm	E1000_DMCRTRH,4,4
	.comm	E1000_DMACR_DMAC_LX_MASK,4,4
	.comm	E1000_DMACR_DMAC_EN,4,4
	.comm	E1000_DMACR_DMACTHR_SHIFT,4,4
	.comm	E1000_DMACR_DMACTHR_MASK,4,4
	.comm	E1000_DMACR_DC_BMC2OSW_EN,4,4
	.comm	E1000_DMACR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
