	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_read_mf_cfg              ## -- Begin function bnx2x_read_mf_cfg
	.p2align	4, 0x90
_bnx2x_read_mf_cfg:                     ## @bnx2x_read_mf_cfg
	.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	%rdi, %r14
	callq	_CHIP_MODE_IS_4_PORT
	cmpq	$1, %rax
	movl	$2, %r15d
	sbbl	$0, %r15d
	movq	%r14, %rdi
	callq	_BP_NOMCP
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	_VN_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	%r14, %rdi
	callq	_BP_MAX_VN_NUM
	cmpl	%eax, %r12d
	jge	LBB0_5
## %bb.2:
	leal	(%r12,%r12), %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_BP_PORT
	movl	%eax, %ebx
	addl	%r13d, %ebx
	imull	%r15d, %ebx
	movq	%r14, %rdi
	callq	_BP_PATH
	addl	%ebx, %eax
	movq	_E1H_FUNC_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_func_mf_config@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %esi
	movq	%r14, %rdi
	callq	_MF_CFG_RD
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	movq	%r14, %rdi
	callq	_BP_MAX_VN_NUM
	cltq
	addl	$2, %r13d
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_5:
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_BP_VN
	movq	_FUNC_MF_CFG_FUNC_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	testl	%ecx, (%rbx,%rax,4)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	_MF_FUNC_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	_MF_FUNC_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
LBB0_8:
	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	_E1H_FUNC_MAX,4,2               ## @E1H_FUNC_MAX
	.comm	_func_mf_config,8,3             ## @func_mf_config
	.comm	_FUNC_MF_CFG_FUNC_DISABLED,4,2  ## @FUNC_MF_CFG_FUNC_DISABLED
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mf_cfg function disabled\n"

	.comm	_MF_FUNC_DIS,4,2                ## @MF_FUNC_DIS
L_.str.1:                               ## @.str.1
	.asciz	"mf_cfg function enabled\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_read_mf_cfg              ; -- Begin function bnx2x_read_mf_cfg
	.p2align	2
_bnx2x_read_mf_cfg:                     ; @bnx2x_read_mf_cfg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_CHIP_MODE_IS_4_PORT
	cmp	x0, #0
	mov	w8, #1
	cinc	w20, w8, ne
	mov	x0, x19
	bl	_BP_NOMCP
	cbnz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _VN_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VN_0@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
	mov	x0, x19
	bl	_BP_MAX_VN_NUM
	cmp	w21, w0
	b.ge	LBB0_5
; %bb.2:
	lsl	w22, w21, #1
Lloh3:
	adrp	x23, _E1H_FUNC_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _E1H_FUNC_MAX@GOTPAGEOFF]
Lloh5:
	adrp	x24, _func_mf_config@GOTPAGE
Lloh6:
	ldr	x24, [x24, _func_mf_config@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_BP_PORT
	add	w25, w0, w22
	mov	x0, x19
	bl	_BP_PATH
	madd	w8, w25, w20, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24]
	ldr	w1, [x9, w8, sxtw #2]
	mov	x0, x19
	bl	_MF_CFG_RD
	ldr	x8, [x19]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	mov	x0, x19
	bl	_BP_MAX_VN_NUM
	add	w22, w22, #2
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	ldr	x20, [x19]
	mov	x0, x19
	bl	_BP_VN
	ldr	w8, [x20, x0, lsl #2]
Lloh7:
	adrp	x9, _FUNC_MF_CFG_FUNC_DISABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FUNC_MF_CFG_FUNC_DISABLED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _NETIF_MSG_IFUP@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x10]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh15:
	adrp	x8, _MF_FUNC_DIS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MF_FUNC_DIS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh20:
	adrp	x8, _MF_FUNC_DIS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MF_FUNC_DIS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_8:
	str	w8, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VN_0,4,2                       ; @VN_0
	.comm	_E1H_FUNC_MAX,4,2               ; @E1H_FUNC_MAX
	.comm	_func_mf_config,8,3             ; @func_mf_config
	.comm	_FUNC_MF_CFG_FUNC_DISABLED,4,2  ; @FUNC_MF_CFG_FUNC_DISABLED
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mf_cfg function disabled\n"

	.comm	_MF_FUNC_DIS,4,2                ; @MF_FUNC_DIS
l_.str.1:                               ; @.str.1
	.asciz	"mf_cfg function enabled\n"

.subsections_via_symbols
