	.file	"extr_bnxt.c_bnxt_setup_msix.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TxRx"
.LC1:
	.string	"rx"
.LC2:
	.string	"tx"
.LC3:
	.string	"%s-%s-%d"
	.text
	.p2align 4
	.type	bnxt_setup_msix, @function
bnxt_setup_msix:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 24[rdi]
	mov	rdi, rbp
	call	netdev_get_num_tc@PLT
	cmp	eax, 1
	jle	.L2
	mov	r12d, eax
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR [r15]
	mov	esi, ebx
	mov	rdi, rbp
	mov	ecx, edx
	imul	ecx, ebx
	add	ebx, 1
	call	netdev_set_tc_queue@PLT
	cmp	r12d, ebx
	jne	.L3
.L2:
	mov	eax, DWORD PTR 4[r15]
	test	eax, eax
	jle	.L1
	xor	r13d, r13d
	lea	r12, .LC0[rip]
	lea	r14, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, r13d
	mov	rdi, r15
	call	bnxt_cp_num_to_irq_num@PLT
	mov	edx, DWORD PTR 8[r15]
	mov	r8, r12
	test	DWORD PTR BNXT_FLAG_SHARED_RINGS[rip], edx
	jne	.L5
	cmp	DWORD PTR 12[r15], r13d
	lea	r8, .LC2[rip]
	cmovg	r8, r14
.L5:
	movsx	rbx, eax
	mov	rax, QWORD PTR 16[r15]
	mov	rcx, QWORD PTR 0[rbp]
	mov	r9d, r13d
	lea	rdx, .LC3[rip]
	mov	esi, 4
	add	r13d, 1
	mov	edi, DWORD PTR 4[rax+rbx*8]
	call	snprintf@PLT
	mov	rax, QWORD PTR 16[r15]
	mov	edx, DWORD PTR bnxt_msix[rip]
	mov	DWORD PTR [rax+rbx*8], edx
	cmp	DWORD PTR 4[r15], r13d
	jg	.L6
.L1:
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	bnxt_setup_msix, .-bnxt_setup_msix
	.comm	bnxt_msix,4,4
	.comm	BNXT_FLAG_SHARED_RINGS,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_bnxt.c_bnxt_setup_msix.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TxRx\000"
	.align	2
.LC1:
	.ascii	"rx\000"
	.align	2
.LC2:
	.ascii	"tx\000"
	.align	2
.LC3:
	.ascii	"%s-%s-%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnxt_setup_msix, %function
bnxt_setup_msix:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r0, #20]
	mov	r4, r0
	sub	sp, sp, #12
	mov	r0, r7
	bl	netdev_get_num_tc
	cmp	r0, #1
	ble	.L2
	mov	r6, r0
	mov	r5, #0
.L3:
	ldr	r2, [r4]
	mov	r1, r5
	mul	r3, r5, r2
	mov	r0, r7
	add	r5, r5, #1
	bl	netdev_set_tc_queue
	cmp	r6, r5
	bne	.L3
.L2:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L1
	mov	r5, #0
	ldr	r10, .L13
	ldr	r9, .L13+4
	ldr	fp, .L13+8
	ldr	r8, .L13+12
.L6:
	mov	r1, r5
	mov	r0, r4
	bl	bnxt_cp_num_to_irq_num
	ldr	r2, [r4, #8]
	ldr	r3, [r10]
	mov	r6, r0
	tst	r2, r3
	movne	r1, fp
	bne	.L5
	ldr	r1, [r4, #12]
	ldr	r2, .L13+16
	cmp	r1, r5
	ldr	r3, .L13+20
	movle	r3, r2
	mov	r1, r3
.L5:
	ldr	r2, [r4, #16]
	ldr	r3, [r7]
	add	r2, r2, r6, lsl #3
	ldr	r0, [r2, #4]
	stm	sp, {r1, r5}
	mov	r2, r8
	mov	r1, #4
	bl	snprintf
	ldr	r1, [r4, #4]
	ldr	r3, [r4, #16]
	ldr	r2, [r9]
	add	r5, r5, #1
	cmp	r1, r5
	str	r2, [r3, r6, lsl #3]
	bgt	.L6
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	BNXT_FLAG_SHARED_RINGS
	.word	bnxt_msix
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.size	bnxt_setup_msix, .-bnxt_setup_msix
	.comm	bnxt_msix,4,4
	.comm	BNXT_FLAG_SHARED_RINGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
