	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_calc_vn_max
_bnx2x_calc_vn_max:                     ## @bnx2x_calc_vn_max
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movslq	%esi, %r15
	movl	(%rax,%r15,4), %esi
	movq	_FUNC_MF_CFG_FUNC_HIDE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	callq	_bnx2x_extract_max_cfg
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_IS_MF_SI
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	imull	8(%r12), %ebx
	movslq	%ebx, %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	jmp	LBB0_4
LBB0_3:
	imull	$100, %ebx, %ebx
LBB0_4:
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_DP
	movq	(%r14), %rax
	movl	%ebx, (%rax,%r15,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FUNC_MF_CFG_FUNC_HIDE,4,2      ## @FUNC_MF_CFG_FUNC_HIDE
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vn %d: vn_max_rate %d\n"

	.no_dead_strip	_bnx2x_calc_vn_max
.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_max
_bnx2x_calc_vn_max:                     ; @bnx2x_calc_vn_max
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x0]
	sxtw	x23, w20
	ldr	w1, [x8, w1, sxtw #2]
Lloh0:
	adrp	x8, _FUNC_MF_CFG_FUNC_HIDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FUNC_MF_CFG_FUNC_HIDE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_5
LBB0_2:
	mov	x21, x0
	bl	_bnx2x_extract_max_cfg
	mov	x22, x0
	mov	x0, x21
	bl	_IS_MF_SI
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x21, #8]
	mul	w8, w8, w22
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w21, w8, w9
	b	LBB0_5
LBB0_4:
	mov	w8, #100
	mul	w21, w22, w8
LBB0_5:
Lloh3:
	adrp	x8, _NETIF_MSG_IFUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_DP
	ldr	x8, [x19]
	str	w21, [x8, x23, lsl #2]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FUNC_MF_CFG_FUNC_HIDE,4,2      ; @FUNC_MF_CFG_FUNC_HIDE
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vn %d: vn_max_rate %d\n"

	.no_dead_strip	_bnx2x_calc_vn_max
.subsections_via_symbols
