	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_ieee_ets_to_tm_info
_hclge_ieee_ets_to_tm_info:             ## @hclge_ieee_ets_to_tm_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HNAE3_MAX_TC@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	testq	%r11, %r11
	je	LBB0_8
## %bb.1:
	movq	(%rsi), %r10
	xorl	%edx, %edx
	movq	_HCLGE_SCH_MODE_DWRR@GOTPCREL(%rip), %r8
	movq	_HCLGE_SCH_MODE_SP@GOTPCREL(%rip), %r9
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %eax
	movq	8(%rdi), %rcx
	movl	%eax, (%rcx,%rdx,4)
	movq	16(%rsi), %rax
	movl	(%rax,%rdx,4), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %r11
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rdx,4), %ecx
	cmpl	$129, %ecx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r9), %ecx
	movq	8(%rdi), %rax
	movl	%ecx, (%rax,%rdx,4)
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_8:
	movl	8(%rsi), %esi
	callq	_hclge_tm_prio_tc_info_update
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_MAX_TC,8,3               ## @HNAE3_MAX_TC
	.comm	_HCLGE_SCH_MODE_SP,4,2          ## @HCLGE_SCH_MODE_SP
	.comm	_HCLGE_SCH_MODE_DWRR,4,2        ## @HCLGE_SCH_MODE_DWRR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hclge_ieee_ets_to_tm_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_ieee_ets_to_tm_info
_hclge_ieee_ets_to_tm_info:             ; @hclge_ieee_ets_to_tm_info
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _HNAE3_MAX_TC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNAE3_MAX_TC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x9, #0
	ldr	x10, [x1]
Lloh3:
	adrp	x11, _HCLGE_SCH_MODE_DWRR@GOTPAGE
Lloh4:
	ldr	x11, [x11, _HCLGE_SCH_MODE_DWRR@GOTPAGEOFF]
Lloh5:
	adrp	x12, _HCLGE_SCH_MODE_SP@GOTPAGE
Lloh6:
	ldr	x12, [x12, _HCLGE_SCH_MODE_SP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x11]
	ldr	x14, [x0, #8]
	lsl	x15, x9, #2
	str	w13, [x14, x15]
	ldr	x13, [x1, #16]
	ldr	w13, [x13, x15]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x0]
	ldr	x14, [x14]
	str	w13, [x14, x9, lsl #2]
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10, x9, lsl #2]
	cmp	w13, #129
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w13, #128
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w13, #0
	ldr	w14, [x12]
	ldr	x15, [x0, #8]
	str	w14, [x15, x9, lsl #2]
	b	LBB0_3
LBB0_7:
	ldr	w1, [x1, #8]
	bl	_hclge_tm_prio_tc_info_update
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_MAX_TC,8,3               ; @HNAE3_MAX_TC
	.comm	_HCLGE_SCH_MODE_SP,4,2          ; @HCLGE_SCH_MODE_SP
	.comm	_HCLGE_SCH_MODE_DWRR,4,2        ; @HCLGE_SCH_MODE_DWRR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hclge_ieee_ets_to_tm_info
.subsections_via_symbols
