	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_ets_e3b0_set_credit_upper_bound_pbf
_bnx2x_ets_e3b0_set_credit_upper_bound_pbf: ## @bnx2x_ets_e3b0_set_credit_upper_bound_pbf
	.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, %rbx
	movq	8(%rdi), %r14
	movq	%rsi, %rdi
	callq	_bnx2x_ets_get_credit_upper_bound
	cmpl	$0, (%rbx)
	movq	_DCBX_E3B0_MAX_NUM_COS_PORT1@GOTPCREL(%rip), %rcx
	cmoveq	_DCBX_E3B0_MAX_NUM_COS_PORT0@GOTPCREL(%rip), %rcx
	movq	%rax, %r15
	movl	(%rcx), %eax
	movq	_PBF_REG_COS0_UPPER_BOUND_P1@GOTPCREL(%rip), %rcx
	cmoveq	_PBF_REG_COS0_UPPER_BOUND_P0@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	(%rcx), %r12
	movl	%eax, %r13d
	shlq	$2, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_REG_WR
	addq	$4, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBF_REG_COS0_UPPER_BOUND_P0,8,3 ## @PBF_REG_COS0_UPPER_BOUND_P0
	.comm	_DCBX_E3B0_MAX_NUM_COS_PORT0,4,2 ## @DCBX_E3B0_MAX_NUM_COS_PORT0
	.comm	_PBF_REG_COS0_UPPER_BOUND_P1,8,3 ## @PBF_REG_COS0_UPPER_BOUND_P1
	.comm	_DCBX_E3B0_MAX_NUM_COS_PORT1,4,2 ## @DCBX_E3B0_MAX_NUM_COS_PORT1
	.no_dead_strip	_bnx2x_ets_e3b0_set_credit_upper_bound_pbf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_ets_e3b0_set_credit_upper_bound_pbf
_bnx2x_ets_e3b0_set_credit_upper_bound_pbf: ; @bnx2x_ets_e3b0_set_credit_upper_bound_pbf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x1
	bl	_bnx2x_ets_get_credit_upper_bound
Lloh0:
	adrp	x8, _DCBX_E3B0_MAX_NUM_COS_PORT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCBX_E3B0_MAX_NUM_COS_PORT0@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	adrp	x10, _DCBX_E3B0_MAX_NUM_COS_PORT1@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DCBX_E3B0_MAX_NUM_COS_PORT1@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _PBF_REG_COS0_UPPER_BOUND_P0@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PBF_REG_COS0_UPPER_BOUND_P0@GOTPAGEOFF]
Lloh6:
	adrp	x10, _PBF_REG_COS0_UPPER_BOUND_P1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PBF_REG_COS0_UPPER_BOUND_P1@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x21, #0
	ldr	x22, [x9]
	lsl	x23, x8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x22, w21, sxtw
	mov	x0, x19
	mov	x2, x20
	bl	_REG_WR
	add	x21, x21, #4
	cmp	x23, x21
	b.ne	LBB0_2
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PBF_REG_COS0_UPPER_BOUND_P0,8,3 ; @PBF_REG_COS0_UPPER_BOUND_P0
	.comm	_DCBX_E3B0_MAX_NUM_COS_PORT0,4,2 ; @DCBX_E3B0_MAX_NUM_COS_PORT0
	.comm	_PBF_REG_COS0_UPPER_BOUND_P1,8,3 ; @PBF_REG_COS0_UPPER_BOUND_P1
	.comm	_DCBX_E3B0_MAX_NUM_COS_PORT1,4,2 ; @DCBX_E3B0_MAX_NUM_COS_PORT1
	.no_dead_strip	_bnx2x_ets_e3b0_set_credit_upper_bound_pbf
.subsections_via_symbols
