	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_init_max
_bnx2x_init_max:                        ## @bnx2x_init_max
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rcx
                                        ## kill: def $esi killed $esi def $rsi
	movq	_RS_PERIODIC_TIMEOUT_USEC@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	movq	_SDM_TICKS@GOTPCREL(%rip), %r9
	cltd
	idivl	(%r9)
	movl	%eax, (%rcx)
	movl	(%r8), %eax
	imull	%eax, %esi
	leal	(%rsi,%rsi,4), %edx
	leal	(%rsi,%rsi,4), %esi
	addl	$3, %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$2, %esi
	movl	%esi, 4(%rcx)
	movq	_BNX2X_PORT2_MODE_NUM_VNICS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_4
## %bb.1:
	movq	(%rdi), %rdx
	movq	8(%rcx), %rcx
	movq	(%rdx), %rsi
	movq	%rsi, 8(%rcx)
	imull	%esi, %eax
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	movl	%esi, (%rcx)
	cmpl	$2, (%r9)
	jl	LBB0_4
## %bb.2:
	addq	$24, %rcx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rax
	movl	(%r8), %edi
	imull	%eax, %edi
	movq	%rax, (%rcx)
	leal	7(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	sarl	$3, %eax
	movl	%eax, -8(%rcx)
	incq	%rsi
	movslq	(%r9), %rax
	addq	$16, %rcx
	cmpq	%rax, %rsi
	jl	LBB0_3
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_PERIODIC_TIMEOUT_USEC,4,2   ## @RS_PERIODIC_TIMEOUT_USEC
	.comm	_SDM_TICKS,4,2                  ## @SDM_TICKS
	.comm	_BNX2X_PORT2_MODE_NUM_VNICS,4,2 ## @BNX2X_PORT2_MODE_NUM_VNICS
	.no_dead_strip	_bnx2x_init_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_init_max
_bnx2x_init_max:                        ; @bnx2x_init_max
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RS_PERIODIC_TIMEOUT_USEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RS_PERIODIC_TIMEOUT_USEC@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _SDM_TICKS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SDM_TICKS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	sdiv	w9, w9, w10
	str	w9, [x2]
	ldr	w11, [x8]
	mul	w9, w1, w11
	add	w9, w9, w9, lsl #2
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	str	w9, [x2, #4]
Lloh5:
	adrp	x9, _BNX2X_PORT2_MODE_NUM_VNICS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNX2X_PORT2_MODE_NUM_VNICS@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x10, [x0]
	ldr	x12, [x2, #8]
	ldr	x13, [x10]
	str	x13, [x12, #8]
	mul	w11, w11, w13
	add	w13, w11, #7
	cmp	w11, #0
	csel	w11, w13, w11, lt
	asr	w11, w11, #3
	str	w11, [x12]
	ldr	w11, [x9]
	cmp	w11, #2
	b.lt	LBB0_4
; %bb.2:
	add	x11, x12, #24
	mov	w12, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x12, lsl #3]
	ldr	w14, [x8]
	str	x13, [x11]
	mul	w13, w14, w13
	add	w14, w13, #7
	cmp	w13, #0
	csel	w13, w14, w13, lt
	asr	w13, w13, #3
	stur	w13, [x11, #-8]
	add	x12, x12, #1
	ldrsw	x13, [x9]
	add	x11, x11, #16
	cmp	x12, x13
	b.lt	LBB0_3
LBB0_4:
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_PERIODIC_TIMEOUT_USEC,4,2   ; @RS_PERIODIC_TIMEOUT_USEC
	.comm	_SDM_TICKS,4,2                  ; @SDM_TICKS
	.comm	_BNX2X_PORT2_MODE_NUM_VNICS,4,2 ; @BNX2X_PORT2_MODE_NUM_VNICS
	.no_dead_strip	_bnx2x_init_max
.subsections_via_symbols
