	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_ets_bw_limit             ## -- Begin function bnx2x_ets_bw_limit
	.p2align	4, 0x90
_bnx2x_ets_bw_limit:                    ## @bnx2x_ets_bw_limit
	.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, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movl	%r13d, %ecx
	addl	%ebx, %ecx
	je	LBB0_3
## %bb.4:
	movq	_ETS_BW_LIMIT_CREDIT_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%esi, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	imull	%esi, %r13d
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_bnx2x_ets_bw_limit_common
	movq	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_REG_WR
	movq	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_REG_WR
	movq	_PBF_REG_COS0_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_REG_WR
	movq	_PBF_REG_COS1_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WR                         ## TAILCALL
LBB0_3:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ETS enabled BW limit configuration\n"

L_.str.1:                               ## @.str.1
	.asciz	"Total BW can't be zero\n"

	.comm	_ETS_BW_LIMIT_CREDIT_WEIGHT,4,2 ## @ETS_BW_LIMIT_CREDIT_WEIGHT
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0,4,2 ## @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1,4,2 ## @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1
	.comm	_PBF_REG_COS0_WEIGHT,4,2        ## @PBF_REG_COS0_WEIGHT
	.comm	_PBF_REG_COS1_WEIGHT,4,2        ## @PBF_REG_COS1_WEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_ets_bw_limit             ; -- Begin function bnx2x_ets_bw_limit
	.p2align	2
_bnx2x_ets_bw_limit:                    ; @bnx2x_ets_bw_limit
	.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, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x23, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	cbz	w21, LBB0_4
; %bb.1:
	cbz	w22, LBB0_4
; %bb.2:
	add	w8, w21, w22
	cbz	w8, LBB0_4
; %bb.3:
Lloh4:
	adrp	x9, _ETS_BW_LIMIT_CREDIT_WEIGHT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ETS_BW_LIMIT_CREDIT_WEIGHT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	mul	w10, w9, w22
	sdiv	w22, w10, w8
	mul	w9, w9, w21
	sdiv	w21, w9, w8
	mov	x0, x20
	bl	_bnx2x_ets_bw_limit_common
Lloh7:
	adrp	x8, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WR
Lloh10:
	adrp	x8, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WR
Lloh13:
	adrp	x8, _PBF_REG_COS0_WEIGHT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PBF_REG_COS0_WEIGHT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WR
Lloh16:
	adrp	x8, _PBF_REG_COS1_WEIGHT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PBF_REG_COS1_WEIGHT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	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
	b	_REG_WR
LBB0_4:
	ldr	w0, [x23]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	b	_DP
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ETS enabled BW limit configuration\n"

l_.str.1:                               ; @.str.1
	.asciz	"Total BW can't be zero\n"

	.comm	_ETS_BW_LIMIT_CREDIT_WEIGHT,4,2 ; @ETS_BW_LIMIT_CREDIT_WEIGHT
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0,4,2 ; @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0
	.comm	_NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1,4,2 ; @NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1
	.comm	_PBF_REG_COS0_WEIGHT,4,2        ; @PBF_REG_COS0_WEIGHT
	.comm	_PBF_REG_COS1_WEIGHT,4,2        ; @PBF_REG_COS1_WEIGHT
.subsections_via_symbols
