	.file	"extr_cxgb4_dcb.c_cxgb4_ieee_read_ets.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DCB read PGID failed with %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"DCB read PGRATE failed with %d\n"
	.text
	.p2align 4
	.type	cxgb4_ieee_read_ets, @function
cxgb4_ieee_read_ets:
.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
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	netdev2pinfo@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR CXGB4_DCB_FW_PGID[rip]
	or	eax, DWORD PTR CXGB4_DCB_FW_PGRATE[rip]
	test	DWORD PTR 16[rbx], eax
	je	.L10
	mov	eax, DWORD PTR 20[rbx]
	mov	r14, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR 40[rbp], eax
	test	r12d, r12d
	je	.L4
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 120
	mov	DWORD PTR 0[rbp], 1
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 144
	call	INIT_PORT_DCB_READ_LOCAL_CMD@PLT
	mov	eax, DWORD PTR FW_PORT_DCB_TYPE_PGID[rip]
	mov	esi, DWORD PTR 4[r14]
	mov	rdi, r14
	mov	ecx, 32
	mov	DWORD PTR 60[rsp], eax
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	r15, rsp
	mov	r8, r15
	mov	rdx, r15
	call	t4_wr_mbox@PLT
	cmp	eax, DWORD PTR FW_PORT_DCB_CFG_SUCCESS[rip]
	mov	r12d, eax
	jne	.L5
	mov	edi, DWORD PTR 24[rsp]
	call	be32_to_cpu@PLT
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 128
	mov	r13d, eax
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR [rbx]
	call	INIT_PORT_DCB_READ_LOCAL_CMD@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
.L12:
	mov	eax, DWORD PTR FW_PORT_DCB_TYPE_PGRATE[rip]
	mov	esi, DWORD PTR 4[r14]
	mov	r8, r15
	mov	rdx, r15
	mov	ecx, 32
	mov	rdi, r14
	mov	DWORD PTR 16[rsp], eax
	call	t4_wr_mbox@PLT
	cmp	DWORD PTR FW_PORT_DCB_CFG_SUCCESS[rip], eax
	mov	r12d, eax
	jne	.L8
	mov	eax, DWORD PTR IEEE_8021QAZ_MAX_TCS[rip]
	test	eax, eax
	jle	.L10
	mov	r11, QWORD PTR 8[rbp]
	mov	r10, QWORD PTR 8[rsp]
	mov	ecx, 28
	xor	eax, eax
	mov	r9, QWORD PTR 24[rbp]
	mov	r8, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 16[rbp]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, r13d
	sar	edx, cl
	sub	ecx, 4
	and	edx, 15
	mov	DWORD PTR [r11+rax*4], edx
	mov	edx, DWORD PTR [r10+rax*4]
	mov	DWORD PTR [r9+rax*4], edx
	mov	DWORD PTR [r8+rax*4], edx
	mov	edx, DWORD PTR [rdi+rax*4]
	mov	DWORD PTR [rsi+rax*4], edx
	add	rax, 1
	cmp	DWORD PTR IEEE_8021QAZ_MAX_TCS[rip], eax
	jg	.L11
.L10:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 144
	call	INIT_PORT_DCB_READ_PEER_CMD@PLT
	mov	eax, DWORD PTR FW_PORT_DCB_TYPE_PGID[rip]
	mov	esi, DWORD PTR 4[r14]
	mov	rdi, r14
	mov	ecx, 32
	mov	DWORD PTR 60[rsp], eax
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	r15, rsp
	mov	r8, r15
	mov	rdx, r15
	call	t4_wr_mbox@PLT
	cmp	eax, DWORD PTR FW_PORT_DCB_CFG_SUCCESS[rip]
	mov	r12d, eax
	je	.L7
.L5:
	mov	edx, r12d
	mov	edi, DWORD PTR [r14]
	lea	rsi, .LC0[rip]
	neg	edx
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 24[rsp]
	call	be32_to_cpu@PLT
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 128
	mov	r13d, eax
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR [rbx]
	call	INIT_PORT_DCB_READ_PEER_CMD@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR [r14]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	neg	edx
	call	dev_err@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cxgb4_ieee_read_ets, .-cxgb4_ieee_read_ets
	.comm	IEEE_8021QAZ_MAX_TCS,4,4
	.comm	FW_PORT_DCB_TYPE_PGRATE,4,4
	.comm	FW_PORT_DCB_TYPE_PGID,4,4
	.comm	FW_PORT_DCB_CFG_SUCCESS,4,4
	.comm	CXGB4_DCB_FW_PGRATE,4,4
	.comm	CXGB4_DCB_FW_PGID,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_cxgb4_dcb.c_cxgb4_ieee_read_ets.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DCB read PGID failed with %d\012\000"
	.align	2
.LC1:
	.ascii	"DCB read PGRATE failed with %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cxgb4_ieee_read_ets, %function
cxgb4_ieee_read_ets:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L19
	sub	sp, sp, #36
	mov	r7, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	netdev2pinfo
	ldr	r2, .L19+4
	ldr	r3, .L19+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r0, #8]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L10
	ldm	r0, {r3, r8}
	ldr	r2, [r0, #12]
	cmp	r4, #0
	mov	r5, r0
	str	r2, [r7, #20]
	beq	.L4
	mov	r1, #1
	ldr	r2, [sp, #24]
	add	r4, sp, #8
	str	r3, [sp, #4]
	str	r1, [r7]
	str	r2, [sp]
	ldm	r4, {r0, r1, r2, r3}
	bl	INIT_PORT_DCB_READ_LOCAL_CMD
	ldr	r3, .L19+12
	ldr	r1, [r8, #4]
	ldr	ip, [r3]
	mov	r2, r4
	mov	r3, #20
	mov	r0, r8
	str	r4, [sp]
	str	ip, [sp, #24]
	bl	t4_wr_mbox
	ldr	r9, .L19+16
	mov	r6, r0
	ldr	r3, [r9]
	cmp	r0, r3
	bne	.L5
	ldr	r0, [sp, #20]
	bl	be32_to_cpu
	mov	ip, r0
	ldm	r4, {r0, r1, r2, r3}
	ldr	r5, [r5]
	ldr	lr, [sp, #24]
	str	r5, [sp, #4]
	str	lr, [sp]
	mov	r5, ip
	bl	INIT_PORT_DCB_READ_LOCAL_CMD
.L12:
	ldr	r3, .L19+20
	ldr	r1, [r8, #4]
	ldr	ip, [r3]
	mov	r2, r4
	mov	r3, #20
	mov	r0, r8
	str	r4, [sp]
	str	ip, [sp, #16]
	bl	t4_wr_mbox
	ldr	r3, [r9]
	mov	r6, r0
	cmp	r3, r0
	bne	.L8
	ldr	r8, .L19+24
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L10
	mov	ip, #0
	ldr	r3, [r7, #4]
	ldr	r6, [sp, #12]
	ldr	r1, [sp, #8]
	add	r0, r7, #8
	ldm	r0, {r0, r4, lr}
	sub	r2, r3, #4
	add	r7, r3, #24
	sub	r6, r6, #4
	sub	r4, r4, #4
	sub	lr, lr, #4
	sub	r0, r0, #4
	sub	r1, r1, #4
.L11:
	sub	r3, r7, r2
	asr	r3, r5, r3
	and	r3, r3, #15
	str	r3, [r2, #4]!
	ldr	r3, [r6, #4]!
	add	ip, ip, #1
	str	r3, [r4, #4]!
	str	r3, [lr, #4]!
	ldr	r3, [r1, #4]!
	str	r3, [r0, #4]!
	ldr	r3, [r8]
	cmp	r3, ip
	bgt	.L11
.L10:
	mov	r6, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r6
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	ldr	r2, [sp, #24]
	add	r4, sp, #8
	stm	sp, {r2, r3}
	ldm	r4, {r0, r1, r2, r3}
	bl	INIT_PORT_DCB_READ_PEER_CMD
	ldr	r3, .L19+12
	ldr	r1, [r8, #4]
	ldr	ip, [r3]
	mov	r2, r4
	mov	r3, #20
	mov	r0, r8
	str	r4, [sp]
	str	ip, [sp, #24]
	bl	t4_wr_mbox
	ldr	r9, .L19+16
	mov	r6, r0
	ldr	r3, [r9]
	cmp	r0, r3
	beq	.L7
.L5:
	ldr	r0, [r8]
	ldr	r1, .L19+28
	rsb	r2, r6, #0
	bl	dev_err
	b	.L1
.L7:
	ldr	r0, [sp, #20]
	bl	be32_to_cpu
	mov	ip, r0
	ldm	r4, {r0, r1, r2, r3}
	ldr	r5, [r5]
	ldr	lr, [sp, #24]
	str	r5, [sp, #4]
	str	lr, [sp]
	mov	r5, ip
	bl	INIT_PORT_DCB_READ_PEER_CMD
	b	.L12
.L8:
	ldr	r0, [r8]
	ldr	r1, .L19+32
	rsb	r2, r6, #0
	bl	dev_err
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	CXGB4_DCB_FW_PGRATE
	.word	CXGB4_DCB_FW_PGID
	.word	FW_PORT_DCB_TYPE_PGID
	.word	FW_PORT_DCB_CFG_SUCCESS
	.word	FW_PORT_DCB_TYPE_PGRATE
	.word	IEEE_8021QAZ_MAX_TCS
	.word	.LC0
	.word	.LC1
	.size	cxgb4_ieee_read_ets, .-cxgb4_ieee_read_ets
	.comm	IEEE_8021QAZ_MAX_TCS,4,4
	.comm	FW_PORT_DCB_TYPE_PGRATE,4,4
	.comm	FW_PORT_DCB_TYPE_PGID,4,4
	.comm	FW_PORT_DCB_CFG_SUCCESS,4,4
	.comm	CXGB4_DCB_FW_PGRATE,4,4
	.comm	CXGB4_DCB_FW_PGID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
