	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_init_mac_credit_pool     ## -- Begin function bnx2x_init_mac_credit_pool
	.p2align	4, 0x90
_bnx2x_init_mac_credit_pool:            ## @bnx2x_init_mac_credit_pool
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_CHIP_IS_E1
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_CHIP_REV_IS_SLOW
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	$5, %edx
	movq	_BNX2X_MAX_EMUL_MULTI@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_CHIP_IS_E1H
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.5:
	movq	%rbx, %rdi
	callq	_CHIP_REV_IS_SLOW
	movl	$5, %edx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	_MAX_MAC_CREDIT_E1H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %r15d
	cltd
	idivl	%r15d
	movl	%eax, %edx
	jmp	LBB0_9
LBB0_7:
	movq	_MAX_MAC_CREDIT_E1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movq	_BNX2X_MAX_MULTICAST@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %edx
LBB0_9:
	imull	%edx, %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_init_credit_pool         ## TAILCALL
LBB0_11:
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	callq	_CHIP_REV_IS_SLOW
	movl	$5, %edx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_PF_MAC_CREDIT_E2
	movl	%eax, %edx
LBB0_14:
	movq	%r14, %rdi
	movl	$-1, %esi
	jmp	LBB0_10
LBB0_15:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MAC_CREDIT_E1,4,2          ## @MAX_MAC_CREDIT_E1
	.comm	_BNX2X_MAX_MULTICAST,4,2        ## @BNX2X_MAX_MULTICAST
	.comm	_BNX2X_MAX_EMUL_MULTI,4,2       ## @BNX2X_MAX_EMUL_MULTI
	.comm	_MAX_MAC_CREDIT_E1H,4,2         ## @MAX_MAC_CREDIT_E1H
	.comm	_BNX2X_CAM_SIZE_EMUL,4,2        ## @BNX2X_CAM_SIZE_EMUL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_init_mac_credit_pool     ; -- Begin function bnx2x_init_mac_credit_pool
	.p2align	2
_bnx2x_init_mac_credit_pool:            ; @bnx2x_init_mac_credit_pool
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_CHIP_IS_E1
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_CHIP_REV_IS_SLOW
	cbz	w0, LBB0_7
; %bb.2:
	mov	w8, #5
Lloh0:
	adrp	x9, _BNX2X_MAX_EMUL_MULTI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2X_MAX_EMUL_MULTI@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	mov	x0, x22
	bl	_CHIP_IS_E1H
	cmp	w21, #1
	cbz	x0, LBB0_11
; %bb.4:
	b.lt	LBB0_14
; %bb.5:
	mov	x0, x22
	bl	_CHIP_REV_IS_SLOW
	cbz	w0, LBB0_15
; %bb.6:
	mov	w2, #5
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _MAX_MAC_CREDIT_E1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_MAC_CREDIT_E1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
Lloh5:
	adrp	x9, _BNX2X_MAX_MULTICAST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNX2X_MAX_MULTICAST@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	sub	w2, w8, w9
LBB0_9:
	mul	w1, w2, w20
	mov	x0, x19
LBB0_10:
	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
	b	_bnx2x_init_credit_pool
LBB0_11:
	b.lt	LBB0_14
; %bb.12:
	mov	x0, x22
	bl	_CHIP_REV_IS_SLOW
	cbz	w0, LBB0_16
; %bb.13:
	mov	w2, #5
	b	LBB0_17
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	b	LBB0_10
LBB0_15:
Lloh7:
	adrp	x8, _MAX_MAC_CREDIT_E1H@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_MAC_CREDIT_E1H@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w9, w21, #1
	sdiv	w2, w8, w9
	b	LBB0_9
LBB0_16:
	mov	x0, x22
	mov	x1, x21
	bl	_PF_MAC_CREDIT_E2
	mov	x2, x0
LBB0_17:
	mov	x0, x19
	mov	w1, #-1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MAC_CREDIT_E1,4,2          ; @MAX_MAC_CREDIT_E1
	.comm	_BNX2X_MAX_MULTICAST,4,2        ; @BNX2X_MAX_MULTICAST
	.comm	_BNX2X_MAX_EMUL_MULTI,4,2       ; @BNX2X_MAX_EMUL_MULTI
	.comm	_MAX_MAC_CREDIT_E1H,4,2         ; @MAX_MAC_CREDIT_E1H
	.comm	_BNX2X_CAM_SIZE_EMUL,4,2        ; @BNX2X_CAM_SIZE_EMUL
.subsections_via_symbols
