	.file	"extr_ixgbe_dcb_82598.c_ixgbe_dcb_config_tx_desc_arbiter_82598.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ixgbe_dcb_config_tx_desc_arbiter_82598
	.type	ixgbe_dcb_config_tx_desc_arbiter_82598, @function
ixgbe_dcb_config_tx_desc_arbiter_82598:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rsi
	mov	esi, DWORD PTR IXGBE_DPMCS[rip]
	call	IXGBE_READ_REG@PLT
	mov	edx, DWORD PTR IXGBE_DPMCS_ARBDIS[rip]
	mov	esi, 4
	mov	rdi, rbp
	mov	ecx, DWORD PTR IXGBE_DPMCS_MTSOS_SHIFT[rip]
	not	edx
	and	eax, edx
	mov	edx, DWORD PTR IXGBE_DPMCS_TSOEF[rip]
	sal	esi, cl
	or	edx, esi
	mov	esi, DWORD PTR IXGBE_DPMCS[rip]
	or	edx, eax
	call	IXGBE_WRITE_REG@PLT
	cmp	QWORD PTR MAX_TRAFFIC_CLASS[rip], 0
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR IXGBE_TDTQ2TCCR_MCL_SHIFT[rip]
	mov	edx, DWORD PTR 0[r13+rbx*4]
	mov	eax, DWORD PTR [rdi+rbx*4]
	sal	edx, cl
	mov	ecx, DWORD PTR IXGBE_TDTQ2TCCR_BWG_SHIFT[rip]
	or	eax, edx
	mov	edx, DWORD PTR [r14+rbx*8]
	sal	edx, cl
	or	edx, eax
	mov	rax, QWORD PTR [r15+rbx*8]
	cmp	rax, QWORD PTR prio_group[rip]
	mov	r12d, edx
	jne	.L3
	or	r12d, DWORD PTR IXGBE_TDTQ2TCCR_GSP[rip]
.L3:
	cmp	rax, QWORD PTR prio_link[rip]
	jne	.L4
	or	r12d, DWORD PTR IXGBE_TDTQ2TCCR_LSP[rip]
.L4:
	mov	rdi, rbx
	add	rbx, 1
	call	IXGBE_TDTQ2TCCR@PLT
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	cmp	QWORD PTR MAX_TRAFFIC_CLASS[rip], rbx
	ja	.L5
.L2:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	ixgbe_dcb_config_tx_desc_arbiter_82598, .-ixgbe_dcb_config_tx_desc_arbiter_82598
	.comm	prio_link,8,8
	.comm	prio_group,8,8
	.comm	MAX_TRAFFIC_CLASS,8,8
	.comm	IXGBE_TDTQ2TCCR_MCL_SHIFT,4,4
	.comm	IXGBE_TDTQ2TCCR_LSP,4,4
	.comm	IXGBE_TDTQ2TCCR_GSP,4,4
	.comm	IXGBE_TDTQ2TCCR_BWG_SHIFT,4,4
	.comm	IXGBE_DPMCS_TSOEF,4,4
	.comm	IXGBE_DPMCS_MTSOS_SHIFT,4,4
	.comm	IXGBE_DPMCS_ARBDIS,4,4
	.comm	IXGBE_DPMCS,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_ixgbe_dcb_82598.c_ixgbe_dcb_config_tx_desc_arbiter_82598.c"
	.text
	.align	2
	.global	ixgbe_dcb_config_tx_desc_arbiter_82598
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_dcb_config_tx_desc_arbiter_82598, %function
ixgbe_dcb_config_tx_desc_arbiter_82598:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, .L12
	sub	sp, sp, #12
	mov	fp, r1
	ldr	r1, [r4]
	mov	r6, r2
	mov	r5, r3
	mov	r7, r0
	bl	IXGBE_READ_REG
	mov	r1, #4
	ldr	ip, .L12+4
	ldr	r3, .L12+8
	ldr	r2, .L12+12
	ldr	r3, [r3]
	ldr	ip, [ip]
	ldr	r2, [r2]
	bic	r0, r0, ip
	orr	r2, r2, r1, lsl r3
	ldr	r8, .L12+16
	orr	r2, r2, r0
	ldr	r1, [r4]
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L2
	mov	r4, #0
	sub	r2, fp, #4
	str	r2, [sp, #4]
	ldr	r2, [sp, #48]
	ldr	r3, .L12+20
	sub	r2, r2, #4
	ldr	r10, .L12+24
	ldr	r9, .L12+28
	sub	r6, r6, #4
	sub	r5, r5, #4
	str	r2, [sp]
.L5:
	ldr	r1, [sp, #4]
	ldr	r2, [r3]
	ldr	fp, [r1, #4]!
	ldr	lr, [r6, #4]!
	ldr	ip, [sp]
	orr	fp, fp, lr, lsl r2
	ldr	lr, [r5, #4]!
	ldr	r2, [r10]
	str	r1, [sp, #4]
	orr	fp, fp, lr, lsl r2
	ldr	r1, [ip, #4]!
	ldr	r2, [r9]
	str	ip, [sp]
	cmp	r1, r2
	ldreq	r2, .L12+32
	ldr	ip, .L12+36
	ldreq	r2, [r2]
	ldr	ip, [ip]
	orreq	fp, fp, r2
	cmp	r1, ip
	ldreq	r2, .L12+40
	mov	r0, r4
	ldreq	r2, [r2]
	add	r4, r4, #1
	orreq	fp, fp, r2
	bl	IXGBE_TDTQ2TCCR
	mov	r2, fp
	mov	r1, r0
	mov	r0, r7
	bl	IXGBE_WRITE_REG
	ldr	r2, [r8]
	ldr	r3, .L12+20
	cmp	r2, r4
	bhi	.L5
.L2:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	IXGBE_DPMCS
	.word	IXGBE_DPMCS_ARBDIS
	.word	IXGBE_DPMCS_MTSOS_SHIFT
	.word	IXGBE_DPMCS_TSOEF
	.word	MAX_TRAFFIC_CLASS
	.word	IXGBE_TDTQ2TCCR_MCL_SHIFT
	.word	IXGBE_TDTQ2TCCR_BWG_SHIFT
	.word	prio_group
	.word	IXGBE_TDTQ2TCCR_GSP
	.word	prio_link
	.word	IXGBE_TDTQ2TCCR_LSP
	.size	ixgbe_dcb_config_tx_desc_arbiter_82598, .-ixgbe_dcb_config_tx_desc_arbiter_82598
	.comm	prio_link,4,4
	.comm	prio_group,4,4
	.comm	MAX_TRAFFIC_CLASS,4,4
	.comm	IXGBE_TDTQ2TCCR_MCL_SHIFT,4,4
	.comm	IXGBE_TDTQ2TCCR_LSP,4,4
	.comm	IXGBE_TDTQ2TCCR_GSP,4,4
	.comm	IXGBE_TDTQ2TCCR_BWG_SHIFT,4,4
	.comm	IXGBE_DPMCS_TSOEF,4,4
	.comm	IXGBE_DPMCS_MTSOS_SHIFT,4,4
	.comm	IXGBE_DPMCS_ARBDIS,4,4
	.comm	IXGBE_DPMCS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
