	.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	$120, %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
	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_3
## %bb.4:
	movq	(%r12), %rsi
	movq	%r13, %rdi
	callq	_vfq_get
	movq	%rax, %r15
	movq	$0, -48(%rbp)
	movq	%rax, %rdi
	callq	_bnx2x_vfq_is_leading
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_leading_vfq_init
LBB0_6:
	leaq	-152(%rbp), %rdi
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_memset
	leaq	-120(%rbp), %rbx
	movq	_BNX2X_Q_FLG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	___set_bit
	movl	8(%r12), %eax
	movq	_VFPF_TXQ_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_BNX2X_Q_TYPE_HAS_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	___set_bit
	movl	92(%r12), %eax
	movl	%eax, 4(%r15)
	movl	88(%r12), %eax
	leaq	-136(%rbp), %rdx
	movl	%eax, -124(%rbp)
	movl	76(%r12), %eax
	movl	%eax, -128(%rbp)
	movl	84(%r12), %esi
	movq	%r14, %rdi
	callq	_bnx2x_vf_mbx_set_q_flags
	movl	84(%r12), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_bnx2x_vf_mbx_set_q_flags
	movl	80(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	76(%r12), %eax
	movl	%eax, -56(%rbp)
	movl	72(%r12), %eax
	movl	%eax, -60(%rbp)
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	leaq	-152(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_bnx2x_vfop_qctor_dump_tx
	movl	8(%r12), %eax
LBB0_8:
	movq	_VFPF_RXQ_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movq	_BNX2X_Q_TYPE_HAS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	___set_bit
	movl	68(%r12), %eax
	movl	%eax, 4(%r15)
	movl	64(%r12), %eax
	movl	%eax, -140(%rbp)
	movl	12(%r12), %eax
	movl	%eax, -144(%rbp)
	movl	60(%r12), %esi
	leaq	-152(%rbp), %rdx
	movq	%r14, %rdi
	callq	_bnx2x_vf_mbx_set_q_flags
	movl	60(%r12), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_bnx2x_vf_mbx_set_q_flags
	movl	56(%r12), %eax
	movl	%eax, -112(%rbp)
	movl	52(%r12), %eax
	movl	%eax, -64(%rbp)
	movl	48(%r12), %eax
	movl	%eax, -68(%rbp)
	movl	44(%r12), %eax
	movl	%eax, -72(%rbp)
	movups	28(%r12), %xmm0
	movups	%xmm0, -88(%rbp)
	movups	12(%r12), %xmm0
	movups	%xmm0, -104(%rbp)
	movq	%r15, %rdi
	callq	_bnx2x_vfq_is_leading
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r13), %edi
	callq	_FW_VF_HANDLE
	movl	%eax, -108(%rbp)
	movq	_BNX2X_Q_FLG_MCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	___set_bit
LBB0_11:
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	leaq	-152(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_bnx2x_vfop_qctor_dump_rx
LBB0_12:
	movq	-48(%rbp), %r8
	leaq	-152(%rbp), %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_bnx2x_vfop_qctor_prep
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_bnx2x_vf_queue_setup
	movl	%eax, %edx
	jmp	LBB0_13
LBB0_1:
	movq	(%r12), %rbx
	movq	%r13, %rdi
	callq	_vf_rxq_count
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	jmp	LBB0_13
LBB0_3:
	xorl	%edx, %edx
LBB0_13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_vf_mbx_resp
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_BNX2X_Q_FLG_MCAST,4,2          ## @BNX2X_Q_FLG_MCAST
	.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, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x23, [x2]
	ldr	x21, [x23]
	mov	x0, x1
	bl	_vf_rxq_count
	cmp	x21, x0
	b.ge	LBB0_11
; %bb.1:
	ldr	w8, [x23, #8]
Lloh0:
	adrp	x24, _VFPF_RXQ_VALID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VFPF_RXQ_VALID@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh2:
	adrp	x25, _VFPF_TXQ_VALID@GOTPAGE
Lloh3:
	ldr	x25, [x25, _VFPF_TXQ_VALID@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_12
; %bb.2:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_vfq_get
	mov	x21, x0
	str	xzr, [sp]
	bl	_bnx2x_vfq_is_leading
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_bnx2x_leading_vfq_init
LBB0_4:
	add	x26, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #104
	bl	_memset
	add	x22, x26, #32
Lloh4:
	adrp	x8, _BNX2X_Q_FLG_ACTIVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BNX2X_Q_FLG_ACTIVE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x22
	bl	___set_bit
	ldr	w8, [x23, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _BNX2X_Q_TYPE_HAS_TX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2X_Q_TYPE_HAS_TX@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, sp
	bl	___set_bit
	ldr	w8, [x23, #92]
	str	w8, [x21, #4]
	add	x2, x26, #16
	ldr	w8, [x23, #76]
	ldp	w1, w9, [x23, #84]
	stp	w8, w9, [sp, #32]
	mov	x0, x20
	bl	_bnx2x_vf_mbx_set_q_flags
	ldr	w1, [x23, #84]
	mov	x0, x20
	mov	x2, x22
	bl	_bnx2x_vf_mbx_set_q_flags
	ldr	w8, [x23, #80]
	str	w8, [sp, #108]
	ldr	d0, [x23, #72]
	stur	d0, [sp, #100]
	ldp	w4, w5, [x21]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_bnx2x_vfop_qctor_dump_tx
	ldr	w8, [x23, #8]
LBB0_6:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _BNX2X_Q_TYPE_HAS_RX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2X_Q_TYPE_HAS_RX@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, sp
	bl	___set_bit
	ldr	w8, [x23, #68]
	str	w8, [x21, #4]
	ldp	w1, w8, [x23, #60]
	str	w8, [sp, #20]
	ldr	w8, [x23, #12]
	str	w8, [sp, #16]
	add	x2, sp, #8
	mov	x0, x20
	bl	_bnx2x_vf_mbx_set_q_flags
	ldr	w1, [x23, #60]
	mov	x0, x20
	mov	x2, x22
	bl	_bnx2x_vf_mbx_set_q_flags
	ldp	w9, w8, [x23, #52]
	str	w8, [sp, #48]
	str	w9, [sp, #96]
	ldur	d0, [x23, #44]
	str	d0, [sp, #88]
	ldur	q0, [x23, #28]
	stur	q0, [sp, #72]
	ldur	q0, [x23, #12]
	stur	q0, [sp, #56]
	mov	x0, x21
	bl	_bnx2x_vfq_is_leading
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19]
	bl	_FW_VF_HANDLE
	str	w0, [sp, #52]
Lloh13:
	adrp	x8, _BNX2X_Q_FLG_MCAST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_Q_FLG_MCAST@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x22
	bl	___set_bit
LBB0_9:
	ldp	w4, w5, [x21]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_bnx2x_vfop_qctor_dump_rx
LBB0_10:
	ldr	x4, [sp]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_bnx2x_vfop_qctor_prep
	ldr	w2, [x21]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vf_queue_setup
	mov	x2, x0
	b	LBB0_13
LBB0_11:
	ldr	x21, [x23]
	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	w2, w8
	b	LBB0_13
LBB0_12:
	mov	w2, #0
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vf_mbx_resp
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.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	__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
	.comm	_BNX2X_Q_FLG_MCAST,4,2          ; @BNX2X_Q_FLG_MCAST
	.no_dead_strip	_bnx2x_vf_mbx_setup_q
.subsections_via_symbols
