	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_tm_pg_shaper_cfg
_hclge_tm_pg_shaper_cfg:                ## @hclge_tm_pg_shaper_cfg
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movq	_HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r13
	movq	_HCLGE_SHAPER_BS_U_DEF@GOTPCREL(%rip), %r15
	movq	_HCLGE_SHAPER_BS_S_DEF@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_HCLGE_SHAPER_LVL_PG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r13, %r8
	callq	_hclge_shaper_para_calc
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_hclge_tm_get_shapping_para
	movq	_HCLGE_TM_SHAP_C_BUCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_hclge_tm_pg_shapping_cfg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %edi
	movl	-52(%rbp), %esi
	movl	-44(%rbp), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	callq	_hclge_tm_get_shapping_para
	movq	_HCLGE_TM_SHAP_P_BUCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_hclge_tm_pg_shapping_cfg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	8(%r14), %rbx
	jb	LBB0_3
## %bb.7:
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_FLAG_TC_BASE_SCH_MODE,8,3 ## @HCLGE_FLAG_TC_BASE_SCH_MODE
	.comm	_HCLGE_SHAPER_LVL_PG,4,2        ## @HCLGE_SHAPER_LVL_PG
	.comm	_HCLGE_SHAPER_BS_U_DEF,4,2      ## @HCLGE_SHAPER_BS_U_DEF
	.comm	_HCLGE_SHAPER_BS_S_DEF,4,2      ## @HCLGE_SHAPER_BS_S_DEF
	.comm	_HCLGE_TM_SHAP_C_BUCKET,4,2     ## @HCLGE_TM_SHAP_C_BUCKET
	.comm	_HCLGE_TM_SHAP_P_BUCKET,4,2     ## @HCLGE_TM_SHAP_P_BUCKET
	.no_dead_strip	_hclge_tm_pg_shaper_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_tm_pg_shaper_cfg
_hclge_tm_pg_shaper_cfg:                ; @hclge_tm_pg_shaper_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x20, #0
Lloh3:
	adrp	x21, _HCLGE_SHAPER_LVL_PG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HCLGE_SHAPER_LVL_PG@GOTPAGEOFF]
Lloh5:
	adrp	x22, _HCLGE_SHAPER_BS_U_DEF@GOTPAGE
Lloh6:
	ldr	x22, [x22, _HCLGE_SHAPER_BS_U_DEF@GOTPAGEOFF]
Lloh7:
	adrp	x23, _HCLGE_SHAPER_BS_S_DEF@GOTPAGE
Lloh8:
	ldr	x23, [x23, _HCLGE_SHAPER_BS_S_DEF@GOTPAGEOFF]
Lloh9:
	adrp	x24, _HCLGE_TM_SHAP_C_BUCKET@GOTPAGE
Lloh10:
	ldr	x24, [x24, _HCLGE_TM_SHAP_C_BUCKET@GOTPAGEOFF]
Lloh11:
	adrp	x25, _HCLGE_TM_SHAP_P_BUCKET@GOTPAGE
Lloh12:
	ldr	x25, [x25, _HCLGE_TM_SHAP_P_BUCKET@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x20, lsl #2]
	ldr	w1, [x21]
	add	x2, sp, #8
	add	x3, sp, #12
	add	x4, sp, #4
	bl	_hclge_shaper_para_calc
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x22]
	ldr	w4, [x23]
	mov	w1, #0
	mov	w2, #0
	bl	_hclge_tm_get_shapping_para
	mov	x3, x0
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_hclge_tm_pg_shapping_cfg
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w0, w1, [sp, #8]
	ldr	w2, [sp, #4]
	ldr	w3, [x22]
	ldr	w4, [x23]
	bl	_hclge_tm_get_shapping_para
	mov	x3, x0
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_hclge_tm_pg_shapping_cfg
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.lo	LBB0_3
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_FLAG_TC_BASE_SCH_MODE,8,3 ; @HCLGE_FLAG_TC_BASE_SCH_MODE
	.comm	_HCLGE_SHAPER_LVL_PG,4,2        ; @HCLGE_SHAPER_LVL_PG
	.comm	_HCLGE_SHAPER_BS_U_DEF,4,2      ; @HCLGE_SHAPER_BS_U_DEF
	.comm	_HCLGE_SHAPER_BS_S_DEF,4,2      ; @HCLGE_SHAPER_BS_S_DEF
	.comm	_HCLGE_TM_SHAP_C_BUCKET,4,2     ; @HCLGE_TM_SHAP_C_BUCKET
	.comm	_HCLGE_TM_SHAP_P_BUCKET,4,2     ; @HCLGE_TM_SHAP_P_BUCKET
	.no_dead_strip	_hclge_tm_pg_shaper_cfg
.subsections_via_symbols
