	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_select_queue             ## -- Begin function bnx2x_select_queue
	.p2align	4, 0x90
_bnx2x_select_queue:                    ## @bnx2x_select_queue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_CNIC_LOADED
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	callq	_NO_FCOE
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_ntohs
LBB0_4:
	movq	_ETH_P_FCOE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.5:
	movq	_ETH_P_FIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___netdev_pick_tx
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_BNX2X_NUM_ETH_QUEUES
	movq	%rax, %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	jmp	LBB0_9
LBB0_7:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_txq_index@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_fcoe_tx                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021Q,8,3                ## @ETH_P_8021Q
	.comm	_ETH_P_FCOE,8,3                 ## @ETH_P_FCOE
	.comm	_ETH_P_FIP,8,3                  ## @ETH_P_FIP
	.comm	_txq_index,4,2                  ## @txq_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_select_queue             ; -- Begin function bnx2x_select_queue
	.p2align	2
_bnx2x_select_queue:                    ; @bnx2x_select_queue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_CNIC_LOADED
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_NO_FCOE
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_ntohs
Lloh0:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_ntohs
LBB0_4:
Lloh3:
	adrp	x8, _ETH_P_FCOE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_FCOE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ETH_P_FIP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETH_P_FIP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _txq_index@GOTPAGE
Lloh10:
	ldr	x8, [x8, _txq_index@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bnx2x_fcoe_tx
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	___netdev_pick_tx
	mov	x20, x0
	mov	x0, x19
	bl	_BNX2X_NUM_ETH_QUEUES
	sdiv	x8, x20, x0
	msub	x0, x8, x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021Q,8,3                ; @ETH_P_8021Q
	.comm	_ETH_P_FCOE,8,3                 ; @ETH_P_FCOE
	.comm	_ETH_P_FIP,8,3                  ; @ETH_P_FIP
	.comm	_txq_index,4,2                  ; @txq_index
.subsections_via_symbols
