	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_ets_e3b0_set_cos_bw
_bnx2x_ets_e3b0_set_cos_bw:             ## @bnx2x_ets_e3b0_set_cos_bw
	.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
	movl	%edx, %eax
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%r9d, %r9d
	movl	$1, %esi
	cmovnel	%r9d, %esi
	imull	%esi, %eax
	cltd
	idivl	%r8d
	movl	%eax, %r9d
	imull	%ecx, %esi
	movl	%esi, %eax
	cltd
	idivl	%r8d
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	movl	$0, %r13d
	movl	$0, %esi
	cmpl	$5, %ebx
	ja	LBB0_13
## %bb.1:
	movl	16(%rbp), %eax
	movl	%ebx, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	testl	%eax, %eax
	movq	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0@GOTPCREL(%rip), %rax
	cmoveq	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PBF_REG_COS0_WEIGHT_P1@GOTPCREL(%rip), %rax
	cmoveq	_PBF_REG_COS0_WEIGHT_P0@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	testl	%eax, %eax
	movq	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1@GOTPCREL(%rip), %rax
	cmoveq	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PBF_REG_COS1_WEIGHT_P1@GOTPCREL(%rip), %rax
	cmoveq	_PBF_REG_COS1_WEIGHT_P0@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	testl	%eax, %eax
	movq	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2@GOTPCREL(%rip), %rax
	cmoveq	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PBF_REG_COS2_WEIGHT_P1@GOTPCREL(%rip), %rax
	cmoveq	_PBF_REG_COS2_WEIGHT_P0@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PBF_REG_COS3_WEIGHT_P0@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.9:
	movq	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PBF_REG_COS4_WEIGHT_P0@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	testl	%eax, %eax
	je	LBB0_11
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_11:
	movq	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PBF_REG_COS5_WEIGHT_P0@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r13d
LBB0_13:
	movq	%r14, %rdi
	movl	%r9d, %edx
	callq	_REG_WR
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_REG_WR
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0,4,2 ## @NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0,4,2 ## @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0
	.comm	_PBF_REG_COS0_WEIGHT_P1,4,2     ## @PBF_REG_COS0_WEIGHT_P1
	.comm	_PBF_REG_COS0_WEIGHT_P0,4,2     ## @PBF_REG_COS0_WEIGHT_P0
	.comm	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1,4,2 ## @NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1,4,2 ## @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1
	.comm	_PBF_REG_COS1_WEIGHT_P1,4,2     ## @PBF_REG_COS1_WEIGHT_P1
	.comm	_PBF_REG_COS1_WEIGHT_P0,4,2     ## @PBF_REG_COS1_WEIGHT_P0
	.comm	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2,4,2 ## @NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2,4,2 ## @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2
	.comm	_PBF_REG_COS2_WEIGHT_P1,4,2     ## @PBF_REG_COS2_WEIGHT_P1
	.comm	_PBF_REG_COS2_WEIGHT_P0,4,2     ## @PBF_REG_COS2_WEIGHT_P0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3,4,2 ## @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3
	.comm	_PBF_REG_COS3_WEIGHT_P0,4,2     ## @PBF_REG_COS3_WEIGHT_P0
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4,4,2 ## @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4
	.comm	_PBF_REG_COS4_WEIGHT_P0,4,2     ## @PBF_REG_COS4_WEIGHT_P0
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5,4,2 ## @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5
	.comm	_PBF_REG_COS5_WEIGHT_P0,4,2     ## @PBF_REG_COS5_WEIGHT_P0
	.no_dead_strip	_bnx2x_ets_e3b0_set_cos_bw
.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_cos_bw
_bnx2x_ets_e3b0_set_cos_bw:             ; @bnx2x_ets_e3b0_set_cos_bw
	.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	x19, x0
	cmp	w5, #0
	csinc	w8, w5, wzr, ne
	cmp	w1, #5
	b.hi	LBB0_3
; %bb.1:
	mov	w9, w1
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x9, _NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0@GOTPAGEOFF]
Lloh4:
	adrp	x10, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0@GOTPAGE
Lloh5:
	ldr	x10, [x10, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0@GOTPAGEOFF]
	cmp	w6, #0
	csel	x9, x10, x9, eq
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _PBF_REG_COS0_WEIGHT_P1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PBF_REG_COS0_WEIGHT_P1@GOTPAGEOFF]
Lloh8:
	adrp	x10, _PBF_REG_COS0_WEIGHT_P0@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PBF_REG_COS0_WEIGHT_P0@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	b	LBB0_13
LBB0_3:
	mov	w20, #0
	mov	w1, #0
	b	LBB0_14
LBB0_4:
Lloh10:
	adrp	x9, _NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1@GOTPAGEOFF]
Lloh12:
	adrp	x10, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1@GOTPAGEOFF]
	cmp	w6, #0
	csel	x9, x10, x9, eq
	ldr	w1, [x9]
Lloh14:
	adrp	x9, _PBF_REG_COS1_WEIGHT_P1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PBF_REG_COS1_WEIGHT_P1@GOTPAGEOFF]
Lloh16:
	adrp	x10, _PBF_REG_COS1_WEIGHT_P0@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PBF_REG_COS1_WEIGHT_P0@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	b	LBB0_13
LBB0_5:
Lloh18:
	adrp	x9, _NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2@GOTPAGEOFF]
Lloh20:
	adrp	x10, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2@GOTPAGE
Lloh21:
	ldr	x10, [x10, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2@GOTPAGEOFF]
	cmp	w6, #0
	csel	x9, x10, x9, eq
	ldr	w1, [x9]
Lloh22:
	adrp	x9, _PBF_REG_COS2_WEIGHT_P1@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PBF_REG_COS2_WEIGHT_P1@GOTPAGEOFF]
Lloh24:
	adrp	x10, _PBF_REG_COS2_WEIGHT_P0@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PBF_REG_COS2_WEIGHT_P0@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	b	LBB0_13
LBB0_6:
	cbnz	w6, LBB0_11
; %bb.7:
Lloh26:
	adrp	x9, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
Lloh29:
	adrp	x9, _PBF_REG_COS3_WEIGHT_P0@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PBF_REG_COS3_WEIGHT_P0@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	cbnz	w6, LBB0_11
; %bb.9:
Lloh31:
	adrp	x9, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
Lloh34:
	adrp	x9, _PBF_REG_COS4_WEIGHT_P0@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PBF_REG_COS4_WEIGHT_P0@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	cbz	w6, LBB0_12
LBB0_11:
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_12:
Lloh39:
	adrp	x9, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5@GOTPAGE
Lloh40:
	ldr	x9, [x9, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x9]
Lloh42:
	adrp	x9, _PBF_REG_COS5_WEIGHT_P0@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PBF_REG_COS5_WEIGHT_P0@GOTPAGEOFF]
LBB0_13:
	ldr	w20, [x9]
LBB0_14:
	mul	w9, w8, w2
	sdiv	w2, w9, w4
	mul	w8, w8, w3
	sdiv	w21, w8, w4
	mov	x0, x19
	bl	_REG_WR
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_REG_WR
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0,4,2 ; @NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0,4,2 ; @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0
	.comm	_PBF_REG_COS0_WEIGHT_P1,4,2     ; @PBF_REG_COS0_WEIGHT_P1
	.comm	_PBF_REG_COS0_WEIGHT_P0,4,2     ; @PBF_REG_COS0_WEIGHT_P0
	.comm	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1,4,2 ; @NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1,4,2 ; @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1
	.comm	_PBF_REG_COS1_WEIGHT_P1,4,2     ; @PBF_REG_COS1_WEIGHT_P1
	.comm	_PBF_REG_COS1_WEIGHT_P0,4,2     ; @PBF_REG_COS1_WEIGHT_P0
	.comm	_NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2,4,2 ; @NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2,4,2 ; @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2
	.comm	_PBF_REG_COS2_WEIGHT_P1,4,2     ; @PBF_REG_COS2_WEIGHT_P1
	.comm	_PBF_REG_COS2_WEIGHT_P0,4,2     ; @PBF_REG_COS2_WEIGHT_P0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3,4,2 ; @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3
	.comm	_PBF_REG_COS3_WEIGHT_P0,4,2     ; @PBF_REG_COS3_WEIGHT_P0
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4,4,2 ; @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4
	.comm	_PBF_REG_COS4_WEIGHT_P0,4,2     ; @PBF_REG_COS4_WEIGHT_P0
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5,4,2 ; @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5
	.comm	_PBF_REG_COS5_WEIGHT_P0,4,2     ; @PBF_REG_COS5_WEIGHT_P0
	.no_dead_strip	_bnx2x_ets_e3b0_set_cos_bw
.subsections_via_symbols
