	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_cmng_fns_init
_bnx2x_cmng_fns_init:                   ## @bnx2x_cmng_fns_init
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	16(%r14), %rax
	movq	%rax, -32(%rbp)
	movq	_CMNG_FNS_MINMAX@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_9
## %bb.1:
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_bnx2x_read_mf_cfg
LBB0_4:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bnx2x_calc_vn_min
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.5:
	movq	_VN_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_BP_MAX_VN_NUM
	cmpl	%eax, %ebx
	jge	LBB0_8
## %bb.6:
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_bnx2x_calc_vn_max
	incl	%ebx
	movq	%r14, %rdi
	callq	_BP_MAX_VN_NUM
	cmpl	%eax, %ebx
	jl	LBB0_7
LBB0_8:
	movq	_CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_bnx2x_init_cmng
	jmp	LBB0_10
LBB0_9:
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMNG_FNS_MINMAX,8,3            ## @CMNG_FNS_MINMAX
	.comm	_VN_0,4,2                       ## @VN_0
	.comm	_CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN,4,2 ## @CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rate shaping and fairness are disabled\n"

	.no_dead_strip	_bnx2x_cmng_fns_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_cmng_fns_init
_bnx2x_cmng_fns_init:                   ; @bnx2x_cmng_fns_init
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x19, #16]
	str	x8, [sp, #8]
Lloh0:
	adrp	x9, _CMNG_FNS_MINMAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMNG_FNS_MINMAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x21
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
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
	bl	_DP
	b	LBB0_9
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_bnx2x_read_mf_cfg
LBB0_4:
	mov	x1, sp
	mov	x0, x19
	bl	_bnx2x_calc_vn_min
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _VN_0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VN_0@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_BP_MAX_VN_NUM
	cmp	w20, w0
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_calc_vn_max
	add	w20, w20, #1
	b	LBB0_6
LBB0_8:
Lloh11:
	adrp	x8, _CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [sp]
	orr	w8, w9, w8
	str	w8, [sp]
	mov	x0, sp
	mov	x1, x19
	bl	_bnx2x_init_cmng
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CMNG_FNS_MINMAX,8,3            ; @CMNG_FNS_MINMAX
	.comm	_VN_0,4,2                       ; @VN_0
	.comm	_CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN,4,2 ; @CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rate shaping and fairness are disabled\n"

	.no_dead_strip	_bnx2x_cmng_fns_init
.subsections_via_symbols
