	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_get_mf_speed             ## -- Begin function bnx2x_get_mf_speed
	.p2align	4, 0x90
_bnx2x_get_mf_speed:                    ## @bnx2x_get_mf_speed
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %r14d
	callq	_IS_MF
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_BP_VN
	movl	(%r15,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_bnx2x_extract_max_cfg
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_IS_MF_PERCENT_BW
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	imull	%r14d, %r15d
	movslq	%r15d, %rax
	imulq	$1374389535, %rax, %r14         ## imm = 0x51EB851F
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$37, %r14
	addl	%eax, %r14d
	jmp	LBB0_4
LBB0_3:
	imull	$100, %r15d, %eax
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_get_mf_speed             ; -- Begin function bnx2x_get_mf_speed
	.p2align	2
_bnx2x_get_mf_speed:                    ; @bnx2x_get_mf_speed
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	w19, [x0, #8]
	bl	_IS_MF
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x21, [x20]
	mov	x0, x20
	bl	_BP_VN
	ldr	w1, [x21, x0, lsl #2]
	mov	x0, x20
	bl	_bnx2x_extract_max_cfg
	mov	x21, x0
	mov	x0, x20
	bl	_IS_MF_PERCENT_BW
	cbz	x0, LBB0_4
; %bb.2:
	mul	w8, w21, w19
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w19, w8, w9
LBB0_3:
	mov	x0, x19
	b	LBB0_5
LBB0_4:
	mov	w8, #100
	mul	w8, w21, w8
	cmp	w8, w19
	csel	w0, w8, w19, lt
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
