	.file	"extr_if_ix.c_ixgbe_initialize_transmit_units.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ixgbe_initialize_transmit_units, @function
ixgbe_initialize_transmit_units:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	iflib_get_softc@PLT
	mov	edx, DWORD PTR [rax]
	mov	r13, QWORD PTR 16[rax]
	mov	rbx, rax
	lea	rbp, 24[rax]
	mov	r14, QWORD PTR 8[rax]
	test	edx, edx
	jle	.L2
	mov	DWORD PTR 12[rsp], 0
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, DWORD PTR 4[r14]
	mov	r15d, DWORD PTR [r14]
	mov	edi, r12d
	call	IXGBE_TDBAL@PLT
	mov	edx, r15d
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, r12d
	call	IXGBE_TDBAH@PLT
	mov	ecx, 32
	mov	edx, r15d
	mov	rdi, rbp
	sar	edx, cl
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edi, r12d
	mov	r15d, DWORD PTR [rax]
	call	IXGBE_TDLEN@PLT
	mov	rdi, rbp
	sal	r15d, 2
	mov	esi, eax
	mov	edx, r15d
	call	IXGBE_WRITE_REG@PLT
	mov	edi, r12d
	call	IXGBE_TDH@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, r12d
	call	IXGBE_TDT@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, DWORD PTR 4[r14]
	call	IXGBE_TDT@PLT
	mov	rcx, QWORD PTR 0[r13]
	mov	DWORD PTR 32[r14], eax
	mov	eax, DWORD PTR 24[r14]
	mov	DWORD PTR 28[r14], eax
	mov	eax, DWORD PTR [rcx]
	sub	eax, 1
	mov	DWORD PTR 8[r14], eax
	mov	eax, DWORD PTR [rcx]
	test	eax, eax
	jle	.L3
	mov	rsi, QWORD PTR 16[r14]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR QIDX_INVALID[rip]
	mov	DWORD PTR [rsi+rax*4], edx
	add	rax, 1
	cmp	DWORD PTR [rcx], eax
	jg	.L4
.L3:
	cmp	DWORD PTR 24[rbx], 128
	mov	edi, r12d
	je	.L15
	call	IXGBE_DCA_TXCTRL_82599@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_READ_REG@PLT
	mov	r15d, eax
.L6:
	mov	edx, DWORD PTR IXGBE_DCA_TXCTRL_DESC_WRO_EN[rip]
	mov	edi, r12d
	not	edx
	and	r15d, edx
	cmp	DWORD PTR 24[rbx], 128
	je	.L16
	call	IXGBE_DCA_TXCTRL_82599@PLT
	mov	edx, r15d
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
.L8:
	add	DWORD PTR 12[rsp], 1
	add	r14, 40
	mov	eax, DWORD PTR 12[rsp]
	cmp	DWORD PTR [rbx], eax
	jg	.L9
.L2:
	cmp	DWORD PTR 24[rbx], 128
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	call	IXGBE_DCA_TXCTRL@PLT
	mov	edx, r15d
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	call	IXGBE_DCA_TXCTRL@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_READ_REG@PLT
	mov	r15d, eax
	jmp	.L6
.L17:
	mov	esi, DWORD PTR IXGBE_DMATXCTL[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	mov	esi, DWORD PTR IXGBE_DMATXCTL[rip]
	or	eax, DWORD PTR IXGBE_DMATXCTL_TE[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	IXGBE_WRITE_REG@PLT
	mov	esi, DWORD PTR IXGBE_RTTDCS[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	mov	esi, DWORD PTR IXGBE_RTTDCS[rip]
	or	eax, DWORD PTR IXGBE_RTTDCS_ARBDIS[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	ixgbe_get_mtqc@PLT
	mov	esi, DWORD PTR IXGBE_MTQC[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edx, DWORD PTR IXGBE_RTTDCS_ARBDIS[rip]
	mov	esi, DWORD PTR IXGBE_RTTDCS[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 40
	not	edx
	and	edx, r12d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	IXGBE_WRITE_REG@PLT
	.cfi_endproc
.LFE0:
	.size	ixgbe_initialize_transmit_units, .-ixgbe_initialize_transmit_units
	.comm	QIDX_INVALID,4,4
	.comm	IXGBE_RTTDCS_ARBDIS,4,4
	.comm	IXGBE_RTTDCS,4,4
	.comm	IXGBE_MTQC,4,4
	.comm	IXGBE_DMATXCTL_TE,4,4
	.comm	IXGBE_DMATXCTL,4,4
	.comm	IXGBE_DCA_TXCTRL_DESC_WRO_EN,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_if_ix.c_ixgbe_initialize_transmit_units.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_initialize_transmit_units, %function
ixgbe_initialize_transmit_units:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bl	iflib_get_softc
	ldr	r2, [r0]
	mov	fp, r0
	cmp	r2, #0
	ldr	r9, [r0, #12]
	ldr	r4, [r0, #8]
	add	r7, r0, #16
	ble	.L2
	mov	r8, #0
	ldr	r5, .L17
	add	r4, r4, #28
.L9:
	ldr	r6, [r4, #-24]
	ldr	r10, [r4, #-28]
	mov	r0, r6
	bl	IXGBE_TDBAL
	mov	r2, r10
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	mov	r0, r6
	bl	IXGBE_TDBAH
	asr	r2, r10, #32
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	mov	r0, r6
	bl	IXGBE_TDLEN
	ldr	r3, [r9]
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r7
	lsl	r2, r2, #2
	bl	IXGBE_WRITE_REG
	mov	r0, r6
	bl	IXGBE_TDH
	mov	r2, #0
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	mov	r0, r6
	bl	IXGBE_TDT
	mov	r2, #0
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	ldr	r0, [r4, #-24]
	bl	IXGBE_TDT
	ldr	r3, [r4, #-12]
	ldr	ip, [r9]
	str	r0, [r4, #-4]
	str	r3, [r4, #-8]
	ldr	r3, [ip]
	sub	r3, r3, #1
	str	r3, [r4, #-20]
	ldr	r3, [ip]
	cmp	r3, #0
	ble	.L3
	mov	r3, #0
	ldr	r2, [r4, #-16]
	sub	r2, r2, #4
.L4:
	ldr	r1, [r5]
	add	r3, r3, #1
	str	r1, [r2, #4]!
	ldr	r1, [ip]
	cmp	r1, r3
	bgt	.L4
.L3:
	ldr	r3, [fp, #16]
	mov	r0, r6
	cmp	r3, #128
	beq	.L15
	bl	IXGBE_DCA_TXCTRL_82599
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_READ_REG
.L6:
	ldr	r2, .L17+4
	ldr	r3, [fp, #16]
	ldr	r10, [r2]
	cmp	r3, #128
	bic	r10, r0, r10
	mov	r0, r6
	beq	.L16
	bl	IXGBE_DCA_TXCTRL_82599
	mov	r2, r10
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_WRITE_REG
.L8:
	ldr	r3, [fp]
	add	r8, r8, #1
	cmp	r3, r8
	add	r4, r4, #28
	bgt	.L9
.L2:
	ldr	r2, [fp, #16]
	cmp	r2, #128
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r4, .L17+8
	mov	r0, r7
	ldr	r1, [r4]
	bl	IXGBE_READ_REG
	ldr	r2, .L17+12
	ldr	r5, .L17+16
	ldr	r2, [r2]
	ldr	r1, [r4]
	orr	r2, r0, r2
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	ldr	r1, [r5]
	mov	r0, r7
	bl	IXGBE_READ_REG
	mov	r4, r0
	ldr	r6, .L17+20
	ldr	r1, [r5]
	ldr	r2, [r6]
	mov	r0, r7
	orr	r4, r4, r2
	mov	r2, r4
	bl	IXGBE_WRITE_REG
	ldr	r2, .L17+24
	ldr	r0, [fp, #4]
	ldr	r8, [r2]
	bl	ixgbe_get_mtqc
	mov	r1, r8
	mov	r2, r0
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	ldr	r2, [r6]
	mov	r0, r7
	ldr	r1, [r5]
	bic	r2, r4, r2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	IXGBE_WRITE_REG
.L16:
	bl	IXGBE_DCA_TXCTRL
	mov	r2, r10
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	b	.L8
.L15:
	bl	IXGBE_DCA_TXCTRL
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_READ_REG
	b	.L6
.L18:
	.align	2
.L17:
	.word	QIDX_INVALID
	.word	IXGBE_DCA_TXCTRL_DESC_WRO_EN
	.word	IXGBE_DMATXCTL
	.word	IXGBE_DMATXCTL_TE
	.word	IXGBE_RTTDCS
	.word	IXGBE_RTTDCS_ARBDIS
	.word	IXGBE_MTQC
	.size	ixgbe_initialize_transmit_units, .-ixgbe_initialize_transmit_units
	.comm	QIDX_INVALID,4,4
	.comm	IXGBE_RTTDCS_ARBDIS,4,4
	.comm	IXGBE_RTTDCS,4,4
	.comm	IXGBE_MTQC,4,4
	.comm	IXGBE_DMATXCTL_TE,4,4
	.comm	IXGBE_DMATXCTL,4,4
	.comm	IXGBE_DCA_TXCTRL_DESC_WRO_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
