	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vfop_close
_bnx2x_vfop_close:                      ## @bnx2x_vfop_close
	.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, %r12
	movq	%rdi, %r14
	callq	_bnx2x_vfop_cur
	movq	%rax, %r15
	movl	(%rax), %ebx
	movups	l___const.bnx2x_vfop_close.cmd(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	js	LBB0_9
## %bb.1:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.3:
	movl	16(%r15), %ebx
	incl	%ebx
	movl	%ebx, 16(%r15)
	movq	%r12, %rdi
	callq	_vf_rxq_count
	cmpl	%eax, %ebx
	jge	LBB0_6
## %bb.4:
	movl	16(%r15), %ecx
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vfop_qdown_cmd
	jmp	LBB0_5
LBB0_7:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vf_igu_disable
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vf_clr_qtbl
	jmp	LBB0_10
LBB0_8:
	movl	%ebx, %edi
	callq	_bnx2x_vfop_default
	movq	8(%r15), %rdx
	jmp	LBB0_9
LBB0_6:
	movl	$129, (%r15)
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_bnx2x_vfop_mcast_cmd
LBB0_5:
	movq	%rax, %rdx
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_BNX2X_ERR
LBB0_10:
	movq	%r12, -72(%rbp)
	movq	_VF_ACQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_bnx2x_set_vf_state@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	callq	_bnx2x_stats_safe_exec
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_vfop_end
LBB0_11:
	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_vfop_close.cmd
l___const.bnx2x_vfop_close.cmd:
	.quad	_bnx2x_vfop_close
	.long	0                               ## 0x0
	.space	4

	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vf[%d] STATE: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"disabling igu\n"

L_.str.2:                               ## @.str.2
	.asciz	"clearing qtbl\n"

L_.str.3:                               ## @.str.3
	.asciz	"VF[%d] CLOSE error: rc %d\n"

	.comm	_VF_ACQUIRED,4,2                ## @VF_ACQUIRED
	.comm	_bnx2x_set_vf_state,4,2         ## @bnx2x_set_vf_state
L_.str.4:                               ## @.str.4
	.asciz	"set state to acquired\n"

	.no_dead_strip	_bnx2x_vfop_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vfop_close
_bnx2x_vfop_close:                      ; @bnx2x_vfop_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
	bl	_bnx2x_vfop_cur
	mov	x21, x0
	adrp	x8, l___const.bnx2x_vfop_close.cmd@PAGE
	add	x8, x8, l___const.bnx2x_vfop_close.cmd@PAGEOFF
	ldr	w22, [x0]
	ldr	q0, [x8]
	str	q0, [sp, #32]
	ldr	x2, [x0, #8]
Lloh0:
	adrp	x23, _BNX2X_MSG_IOV@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BNX2X_MSG_IOV@GOTPAGEOFF]
	tbnz	x2, #63, LBB0_9
; %bb.1:
	ldr	w0, [x23]
	ldr	w8, [x19]
	stp	x8, x22, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	cmp	w22, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x21, #16]
	add	w22, w8, #1
	str	w22, [x21, #16]
	mov	x0, x19
	bl	_vf_rxq_count
	cmp	w22, w0
	b.ge	LBB0_7
; %bb.4:
	ldr	w3, [x21, #16]
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vfop_qdown_cmd
	b	LBB0_8
LBB0_5:
	ldr	w0, [x23]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vf_igu_disable
	ldr	w0, [x23]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vf_clr_qtbl
	b	LBB0_10
LBB0_6:
	mov	x0, x22
	bl	_bnx2x_vfop_default
	ldr	x2, [x21, #8]
	b	LBB0_9
LBB0_7:
	mov	w8, #129
	str	w8, [x21]
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_bnx2x_vfop_mcast_cmd
LBB0_8:
	mov	x2, x0
	str	x0, [x21, #8]
	cbz	x0, LBB0_11
LBB0_9:
	ldr	w1, [x19]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BNX2X_ERR
LBB0_10:
Lloh10:
	adrp	x8, _VF_ACQUIRED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VF_ACQUIRED@GOTPAGEOFF]
	str	x19, [sp, #24]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh13:
	adrp	x8, _bnx2x_set_vf_state@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bnx2x_set_vf_state@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_bnx2x_stats_safe_exec
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DP
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_bnx2x_vfop_end
LBB0_11:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @__const.bnx2x_vfop_close.cmd
l___const.bnx2x_vfop_close.cmd:
	.quad	_bnx2x_vfop_close
	.long	0                               ; 0x0
	.space	4

	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vf[%d] STATE: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"disabling igu\n"

l_.str.2:                               ; @.str.2
	.asciz	"clearing qtbl\n"

l_.str.3:                               ; @.str.3
	.asciz	"VF[%d] CLOSE error: rc %d\n"

	.comm	_VF_ACQUIRED,4,2                ; @VF_ACQUIRED
	.comm	_bnx2x_set_vf_state,4,2         ; @bnx2x_set_vf_state
l_.str.4:                               ; @.str.4
	.asciz	"set state to acquired\n"

	.no_dead_strip	_bnx2x_vfop_close
.subsections_via_symbols
