	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vf_mbx_setup_q
_bnx2x_vf_mbx_setup_q:                  ## @bnx2x_vf_mbx_setup_q
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdx), %r12
	movups	l___const.bnx2x_vf_mbx_setup_q.cmd(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	(%r12), %rbx
	movq	%rsi, %rdi
	callq	_vf_rxq_count
	cmpq	%rax, %rbx
	jge	LBB0_1
## %bb.2:
	movq	_VFPF_RXQ_VALID@GOTPCREL(%rip), %rcx
	movq	_VFPF_TXQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%eax, 8(%r12)
	je	LBB0_8
## %bb.3:
	movq	(%r12), %rsi
	movq	%r13, %rdi
	callq	_vfq_get
	movq	%rax, %rbx
	movq	$0, -56(%rbp)
	leaq	8(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_memset
	leaq	40(%r13), %r15
	movq	_BNX2X_Q_FLG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
	movl	8(%r12), %eax
	movq	_VFPF_TXQ_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_BNX2X_Q_TYPE_HAS_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	___set_bit
	movl	92(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	88(%r12), %eax
	leaq	24(%r13), %rdx
	movl	%eax, 36(%r13)
	movl	76(%r12), %eax
	movl	%eax, 32(%r13)
	movl	84(%r12), %esi
	movq	%r14, %rdi
	callq	_bnx2x_vf_mbx_set_q_flags
	movl	84(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_bnx2x_vf_mbx_set_q_flags
	movl	80(%r12), %eax
	movl	%eax, 104(%r13)
	movl	76(%r12), %eax
	movl	%eax, 100(%r13)
	movl	72(%r12), %eax
	movl	%eax, 96(%r13)
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_bnx2x_vfop_qctor_dump_tx
	movl	8(%r12), %eax
LBB0_5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_VFPF_RXQ_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_BNX2X_Q_TYPE_HAS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	___set_bit
	movl	68(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	64(%r12), %eax
	movl	%eax, 20(%r13)
	movl	12(%r12), %eax
	movl	%eax, 16(%r13)
	movl	60(%r12), %esi
	movq	%r14, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_bnx2x_vf_mbx_set_q_flags
	movl	60(%r12), %esi
	movq	%r14, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_bnx2x_vf_mbx_set_q_flags
	movl	56(%r12), %eax
	movl	%eax, 48(%r13)
	movl	52(%r12), %eax
	movl	%eax, 92(%r13)
	movl	48(%r12), %eax
	movl	%eax, 88(%r13)
	movl	44(%r12), %eax
	movl	%eax, 84(%r13)
	movups	28(%r12), %xmm0
	movups	%xmm0, 68(%r13)
	movups	12(%r12), %xmm0
	movups	%xmm0, 52(%r13)
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_bnx2x_vfop_qctor_dump_rx
LBB0_7:
	movq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_bnx2x_vfop_qctor_prep
	movl	(%rbx), %ecx
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_vfop_qsetup_cmd
	movl	%eax, (%r13)
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	(%r12), %r15
	movq	%r13, %rdi
	callq	_vf_rxq_count
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r13)
LBB0_8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_vf_mbx_resp
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	3                               ## @__const.bnx2x_vf_mbx_setup_q.cmd
l___const.bnx2x_vf_mbx_setup_q.cmd:
	.long	0                               ## 0x0
	.space	4
	.quad	_bnx2x_vf_mbx_resp

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vf_qid %d invalid, max queue count is %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VFPF_RXQ_VALID,4,2             ## @VFPF_RXQ_VALID
	.comm	_VFPF_TXQ_VALID,4,2             ## @VFPF_TXQ_VALID
	.comm	_BNX2X_Q_FLG_ACTIVE,4,2         ## @BNX2X_Q_FLG_ACTIVE
	.comm	_BNX2X_Q_TYPE_HAS_TX,4,2        ## @BNX2X_Q_TYPE_HAS_TX
	.comm	_BNX2X_Q_TYPE_HAS_RX,4,2        ## @BNX2X_Q_TYPE_HAS_RX
	.no_dead_strip	_bnx2x_vf_mbx_setup_q
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vf_mbx_setup_q
_bnx2x_vf_mbx_setup_q:                  ; @bnx2x_vf_mbx_setup_q
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x2]
Lloh0:
	adrp	x8, l___const.bnx2x_vf_mbx_setup_q.cmd@PAGE
Lloh1:
	add	x8, x8, l___const.bnx2x_vf_mbx_setup_q.cmd@PAGEOFF
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x21, [x24]
	mov	x0, x1
	bl	_vf_rxq_count
	cmp	x21, x0
	b.ge	LBB0_7
; %bb.1:
	ldr	w8, [x24, #8]
Lloh3:
	adrp	x25, _VFPF_RXQ_VALID@GOTPAGE
Lloh4:
	ldr	x25, [x25, _VFPF_RXQ_VALID@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh5:
	adrp	x26, _VFPF_TXQ_VALID@GOTPAGE
Lloh6:
	ldr	x26, [x26, _VFPF_TXQ_VALID@GOTPAGEOFF]
	ldr	w10, [x26]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	x1, [x24]
	mov	x0, x19
	bl	_vfq_get
	mov	x21, x0
	str	xzr, [sp, #8]
	add	x22, x19, #8
	mov	x0, x22
	mov	w1, #0
	mov	w2, #104
	bl	_memset
	add	x23, x19, #40
Lloh7:
	adrp	x8, _BNX2X_Q_FLG_ACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2X_Q_FLG_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x23
	bl	___set_bit
	ldr	w8, [x24, #8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _BNX2X_Q_TYPE_HAS_TX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2X_Q_TYPE_HAS_TX@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	___set_bit
	ldr	w8, [x24, #92]
	str	w8, [x21, #4]
	ldr	w8, [x24, #88]
	add	x2, x19, #24
	str	w8, [x19, #36]
	ldr	w8, [x24, #76]
	str	w8, [x19, #32]
	ldr	w1, [x24, #84]
	mov	x0, x20
	bl	_bnx2x_vf_mbx_set_q_flags
	ldr	w1, [x24, #84]
	mov	x0, x20
	mov	x2, x23
	bl	_bnx2x_vf_mbx_set_q_flags
	ldr	w8, [x24, #80]
	str	w8, [x19, #104]
	ldr	d0, [x24, #72]
	str	d0, [x19, #96]
	ldp	w4, w5, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	bl	_bnx2x_vfop_qctor_dump_tx
	ldr	w8, [x24, #8]
LBB0_4:
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _BNX2X_Q_TYPE_HAS_RX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_Q_TYPE_HAS_RX@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	___set_bit
	ldr	w8, [x24, #68]
	str	w8, [x21, #4]
	ldr	w8, [x24, #64]
	str	w8, [x19, #20]
	ldr	w8, [x24, #12]
	str	w8, [x19, #16]
	ldr	w1, [x24, #60]
	mov	x0, x20
	mov	x2, x22
	bl	_bnx2x_vf_mbx_set_q_flags
	ldr	w1, [x24, #60]
	mov	x0, x20
	mov	x2, x23
	bl	_bnx2x_vf_mbx_set_q_flags
	ldr	w8, [x24, #56]
	str	w8, [x19, #48]
	ldr	w8, [x24, #52]
	str	w8, [x19, #92]
	ldur	d0, [x24, #44]
	stur	d0, [x19, #84]
	ldur	q0, [x24, #28]
	stur	q0, [x19, #68]
	ldur	q0, [x24, #12]
	stur	q0, [x19, #52]
	ldp	w4, w5, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	bl	_bnx2x_vfop_qctor_dump_rx
LBB0_6:
	ldr	x4, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_bnx2x_vfop_qctor_prep
	ldr	w3, [x21]
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vfop_qsetup_cmd
	str	w0, [x19]
	cbnz	w0, LBB0_8
	b	LBB0_9
LBB0_7:
	ldr	x21, [x24]
	mov	x0, x19
	bl	_vf_rxq_count
	mov	x2, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_BNX2X_ERR
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vf_mbx_resp
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAddLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @__const.bnx2x_vf_mbx_setup_q.cmd
l___const.bnx2x_vf_mbx_setup_q.cmd:
	.long	0                               ; 0x0
	.space	4
	.quad	_bnx2x_vf_mbx_resp

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vf_qid %d invalid, max queue count is %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VFPF_RXQ_VALID,4,2             ; @VFPF_RXQ_VALID
	.comm	_VFPF_TXQ_VALID,4,2             ; @VFPF_TXQ_VALID
	.comm	_BNX2X_Q_FLG_ACTIVE,4,2         ; @BNX2X_Q_FLG_ACTIVE
	.comm	_BNX2X_Q_TYPE_HAS_TX,4,2        ; @BNX2X_Q_TYPE_HAS_TX
	.comm	_BNX2X_Q_TYPE_HAS_RX,4,2        ; @BNX2X_Q_TYPE_HAS_RX
	.no_dead_strip	_bnx2x_vf_mbx_setup_q
.subsections_via_symbols
