	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_calc_vn_min
_bnx2x_calc_vn_min:                     ## @bnx2x_calc_vn_min
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_VN_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	callq	_BP_MAX_VN_NUM
	cmpl	%eax, %ebx
	jge	LBB0_9
## %bb.1:
	movl	$1, %r12d
	movq	_FUNC_MF_CFG_FUNC_HIDE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DEF_MIN_RATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%r12d, %esi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	cmovel	%esi, %r12d
	cmovel	%edx, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax,%rbx,4)
	incq	%rbx
	movq	%r15, %rdi
	callq	_BP_MAX_VN_NUM
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	movq	_FUNC_MF_CFG_MIN_BW_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_FUNC_MF_CFG_MIN_BW_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %edx
	andl	(%r13), %eax
	xorl	%ecx, %ecx
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	imull	$100, %edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_9:
	movq	%r15, %rdi
	callq	_BNX2X_IS_ETS_ENABLED
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_BNX2X_IS_ETS_ENABLED
	testq	%rax, %rax
	je	LBB0_7
LBB0_10:
	movq	_CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_12
LBB0_8:
	movq	_CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_12:
	movq	_CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VN_0,4,2                       ## @VN_0
	.comm	_FUNC_MF_CFG_MIN_BW_MASK,4,2    ## @FUNC_MF_CFG_MIN_BW_MASK
	.comm	_FUNC_MF_CFG_MIN_BW_SHIFT,4,2   ## @FUNC_MF_CFG_MIN_BW_SHIFT
	.comm	_FUNC_MF_CFG_FUNC_HIDE,4,2      ## @FUNC_MF_CFG_FUNC_HIDE
	.comm	_DEF_MIN_RATE,4,2               ## @DEF_MIN_RATE
	.comm	_CMNG_FLAGS_PER_PORT_FAIRNESS_VN,4,2 ## @CMNG_FLAGS_PER_PORT_FAIRNESS_VN
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fairness will be disabled due to ETS\n"

L_.str.1:                               ## @.str.1
	.asciz	"All MIN values are zeroes fairness will be disabled\n"

	.no_dead_strip	_bnx2x_calc_vn_min
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_calc_vn_min
_bnx2x_calc_vn_min:                     ; @bnx2x_calc_vn_min
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VN_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VN_0@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
	bl	_BP_MAX_VN_NUM
	cmp	w21, w0
	b.ge	LBB0_6
; %bb.1:
Lloh3:
	adrp	x23, _FUNC_MF_CFG_MIN_BW_MASK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FUNC_MF_CFG_MIN_BW_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x24, _FUNC_MF_CFG_MIN_BW_SHIFT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _FUNC_MF_CFG_MIN_BW_SHIFT@GOTPAGEOFF]
	mov	w22, #1
	mov	w25, #100
Lloh7:
	adrp	x26, _FUNC_MF_CFG_FUNC_HIDE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _FUNC_MF_CFG_FUNC_HIDE@GOTPAGEOFF]
Lloh9:
	adrp	x27, _DEF_MIN_RATE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _DEF_MIN_RATE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	x9, x21, #2
	ldr	w8, [x8, x9]
	ldr	w10, [x23]
	and	w10, w10, w8
	ldr	w11, [x24]
	asr	w10, w10, w11
	mul	w11, w10, w25
	ldr	w12, [x26]
	ldr	w13, [x27]
	cmp	w10, #0
	csel	w10, w22, wzr, eq
	csel	w11, w13, w11, eq
	tst	w12, w8
	csel	w22, w10, w22, eq
	csel	w8, w11, wzr, eq
	ldr	x10, [x19]
	str	w8, [x10, x9]
	add	x21, x21, #1
	mov	x0, x20
	bl	_BP_MAX_VN_NUM
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
; %bb.3:
	mov	x0, x20
	bl	_BNX2X_IS_ETS_ENABLED
	cbnz	x0, LBB0_7
; %bb.4:
	cbnz	w22, LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, _CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	bl	_BNX2X_IS_ETS_ENABLED
	cbz	x0, LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
Lloh17:
	adrp	x9, _NETIF_MSG_IFUP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NETIF_MSG_IFUP@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh19:
	ldr	w0, [x9]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh22:
	adrp	x8, _CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CMNG_FLAGS_PER_PORT_FAIRNESS_VN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
Lloh25:
	adrp	x9, _NETIF_MSG_IFUP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NETIF_MSG_IFUP@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh27:
	ldr	w0, [x9]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_DP
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_VN_0,4,2                       ; @VN_0
	.comm	_FUNC_MF_CFG_MIN_BW_MASK,4,2    ; @FUNC_MF_CFG_MIN_BW_MASK
	.comm	_FUNC_MF_CFG_MIN_BW_SHIFT,4,2   ; @FUNC_MF_CFG_MIN_BW_SHIFT
	.comm	_FUNC_MF_CFG_FUNC_HIDE,4,2      ; @FUNC_MF_CFG_FUNC_HIDE
	.comm	_DEF_MIN_RATE,4,2               ; @DEF_MIN_RATE
	.comm	_CMNG_FLAGS_PER_PORT_FAIRNESS_VN,4,2 ; @CMNG_FLAGS_PER_PORT_FAIRNESS_VN
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fairness will be disabled due to ETS\n"

l_.str.1:                               ; @.str.1
	.asciz	"All MIN values are zeroes fairness will be disabled\n"

	.no_dead_strip	_bnx2x_calc_vn_min
.subsections_via_symbols
