	.file	"extr_bnx2x_cmn.c_bnx2x_select_queue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bnx2x_select_queue
	.type	bnx2x_select_queue, @function
bnx2x_select_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	CNIC_LOADED@PLT
	test	rax, rax
	je	.L2
	mov	rdi, rbp
	call	NO_FCOE@PLT
	test	eax, eax
	je	.L10
.L2:
	mov	rsi, r13
	mov	rdi, r12
	call	__netdev_pick_tx@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	BNX2X_NUM_ETH_QUEUES@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r8, rax
	mov	rax, rbx
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	cqo
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	idiv	r8
	mov	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax]
	call	ntohs@PLT
	cmp	QWORD PTR ETH_P_8021Q[rip], rax
	je	.L11
.L3:
	cmp	QWORD PTR ETH_P_FCOE[rip], rax
	je	.L4
	cmp	QWORD PTR ETH_P_FIP[rip], rax
	jne	.L2
.L4:
	mov	esi, DWORD PTR txq_index[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	bnx2x_fcoe_tx@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax]
	call	ntohs@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	bnx2x_select_queue, .-bnx2x_select_queue
	.comm	txq_index,4,4
	.comm	ETH_P_FIP,8,8
	.comm	ETH_P_FCOE,8,8
	.comm	ETH_P_8021Q,8,8
	.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_bnx2x_cmn.c_bnx2x_select_queue.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	bnx2x_select_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2x_select_queue, %function
bnx2x_select_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r0
	bl	netdev_priv
	mov	r4, r0
	bl	CNIC_LOADED
	cmp	r0, #0
	beq	.L2
	mov	r0, r4
	bl	NO_FCOE
	cmp	r0, #0
	beq	.L10
.L2:
	mov	r1, r5
	mov	r0, r6
	bl	__netdev_pick_tx
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	BNX2X_NUM_ETH_QUEUES
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_idivmod
	mov	r0, r1
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, [r5]
	ldr	r0, [r3]
	bl	ntohs
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L11
.L3:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L4
	ldr	r3, .L12+8
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L2
.L4:
	ldr	r3, .L12+12
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	bnx2x_fcoe_tx
.L11:
	ldr	r3, [r5]
	ldr	r0, [r3]
	bl	ntohs
	b	.L3
.L13:
	.align	2
.L12:
	.word	ETH_P_8021Q
	.word	ETH_P_FCOE
	.word	ETH_P_FIP
	.word	txq_index
	.size	bnx2x_select_queue, .-bnx2x_select_queue
	.comm	txq_index,4,4
	.comm	ETH_P_FIP,4,4
	.comm	ETH_P_FCOE,4,4
	.comm	ETH_P_8021Q,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
