	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vfop_flr
_bnx2x_vfop_flr:                        ## @bnx2x_vfop_flr
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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_flr.cmd(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	js	LBB0_9
## %bb.1:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	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	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vfop_qflr_cmd
	jmp	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vf_flr_clnup_hw
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vf_free_resc
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_bnx2x_vf_enable_mbx
	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	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_bnx2x_vfop_mcast_cmd
LBB0_5:
	movq	%rax, %rdx
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_BNX2X_ERR
LBB0_10:
	movq	_VF_FLR_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_vfop_end
	movq	_CHANNEL_TLV_FLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_unlock_vf_pf_channel
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	3                               ## @__const.bnx2x_vfop_flr.cmd
l___const.bnx2x_vfop_flr.cmd:
	.quad	_bnx2x_vfop_flr
	.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	"VF[%d] FLR error: rc %d\n"

	.comm	_VF_FLR_ACK,4,2                 ## @VF_FLR_ACK
	.comm	_CHANNEL_TLV_FLR,4,2            ## @CHANNEL_TLV_FLR
	.no_dead_strip	_bnx2x_vfop_flr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vfop_flr
_bnx2x_vfop_flr:                        ; @bnx2x_vfop_flr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	bl	_bnx2x_vfop_cur
	mov	x21, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x8, l___const.bnx2x_vfop_flr.cmd@PAGE
Lloh1:
	add	x8, x8, l___const.bnx2x_vfop_flr.cmd@PAGEOFF
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x2, [x0, #8]
	tbnz	x2, #63, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	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]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vfop_qflr_cmd
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vf_flr_clnup_hw
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_vf_free_resc
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_bnx2x_vf_enable_mbx
	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]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	mov	w5, #1
	bl	_bnx2x_vfop_mcast_cmd
LBB0_8:
	mov	x2, x0
	str	x0, [x21, #8]
	cbz	x0, LBB0_11
LBB0_9:
	ldr	w1, [x19, #4]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_ERR
LBB0_10:
Lloh10:
	adrp	x8, _VF_FLR_ACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VF_FLR_ACK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_bnx2x_vfop_end
Lloh13:
	adrp	x8, _CHANNEL_TLV_FLR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CHANNEL_TLV_FLR@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_unlock_vf_pf_channel
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAddLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @__const.bnx2x_vfop_flr.cmd
l___const.bnx2x_vfop_flr.cmd:
	.quad	_bnx2x_vfop_flr
	.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	"VF[%d] FLR error: rc %d\n"

	.comm	_VF_FLR_ACK,4,2                 ; @VF_FLR_ACK
	.comm	_CHANNEL_TLV_FLR,4,2            ; @CHANNEL_TLV_FLR
	.no_dead_strip	_bnx2x_vfop_flr
.subsections_via_symbols
