	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_tm_ets_tc_dwrr_cfg
_hclge_tm_ets_tc_dwrr_cfg:              ## @hclge_tm_ets_tc_dwrr_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_HCLGE_OPC_ETS_TC_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-48(%rbp), %r15
	movq	_HNAE3_MAX_TC@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	$1, (%rax,%rbx,4)
	movl	(%r14), %r13d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movq	(%rax,%rbx,8), %rax
	movq	(%rcx,%rax,8), %rax
	movl	(%rax,%rbx,4), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_4
LBB0_5:
	movl	$14, (%r15)
	addq	$4, %r14
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_send
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_ETS_TC_WEIGHT,4,2    ## @HCLGE_OPC_ETS_TC_WEIGHT
	.comm	_HNAE3_MAX_TC,4,2               ## @HNAE3_MAX_TC
	.comm	_DEFAULT_TC_OFFSET,4,2          ## @DEFAULT_TC_OFFSET
	.comm	_DEFAULT_TC_WEIGHT,4,2          ## @DEFAULT_TC_WEIGHT
	.no_dead_strip	_hclge_tm_ets_tc_dwrr_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_ets_tc_dwrr_cfg
_hclge_tm_ets_tc_dwrr_cfg:              ; @hclge_tm_ets_tc_dwrr_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_ETS_TC_WEIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_ETS_TC_WEIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	ldr	x21, [sp, #8]
Lloh3:
	adrp	x22, _HNAE3_MAX_TC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HNAE3_MAX_TC@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, #0
	mov	w23, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	w8, [x22]
	cmp	x20, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	str	w23, [x8, x20, lsl #2]
	ldr	w24, [x19]
	mov	x0, x20
	bl	_BIT
	tst	w0, w24
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x19, #8]
	ldr	x9, [x9, x20, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
	lsl	x9, x20, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x21, #8]
	str	w8, [x10, x9]
	b	LBB0_2
LBB0_5:
	mov	w8, #14
	str	w8, [x21]
	add	x0, x19, #4
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_ETS_TC_WEIGHT,4,2    ; @HCLGE_OPC_ETS_TC_WEIGHT
	.comm	_HNAE3_MAX_TC,4,2               ; @HNAE3_MAX_TC
	.comm	_DEFAULT_TC_OFFSET,4,2          ; @DEFAULT_TC_OFFSET
	.comm	_DEFAULT_TC_WEIGHT,4,2          ; @DEFAULT_TC_WEIGHT
	.no_dead_strip	_hclge_tm_ets_tc_dwrr_cfg
.subsections_via_symbols
