	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_tm_pri_q_qs_cfg
_hclge_tm_pri_q_qs_cfg:                 ## @hclge_tm_pri_q_qs_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, %r12
	movq	(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	_HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.2:
	xorl	%r15d, %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	%rax, %r15
	jae	LBB0_19
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r15, %r13
	shlq	$4, %r13
	cmpq	$0, 8(%rbx,%r13)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%r13), %r14
	addq	$8, %r14
	addq	%rbx, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_hclge_tm_qs_to_pri_map_cfg
	testl	%eax, %eax
	jne	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_9:
	movq	_HCLGE_FLAG_VNET_BASE_SCH_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.10:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.11:
	movq	_HNAE3_MAX_TC@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	xorl	%r15d, %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %r14
	shlq	$4, %r14
	addq	%rbx, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_hclge_tm_qs_to_pri_map_cfg
	testl	%eax, %eax
	jne	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	incq	%rbx
	movq	(%r13), %rcx
	cmpq	%rcx, %rbx
	jb	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r12), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ecx, %ecx
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	cmpq	%rax, %r15
	jb	LBB0_12
LBB0_19:
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_hclge_vport_q_to_qs_map
	testl	%eax, %eax
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	addq	$16, %rbx
	incq	%r14
	xorl	%eax, %eax
	cmpq	8(%r12), %r14
	jb	LBB0_21
	jmp	LBB0_26
LBB0_25:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_26:
	addq	$8, %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_FLAG_VNET_BASE_SCH_MODE,8,3 ## @HCLGE_FLAG_VNET_BASE_SCH_MODE
	.comm	_HNAE3_MAX_TC,8,3               ## @HNAE3_MAX_TC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hclge_tm_pri_q_qs_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_pri_q_qs_cfg
_hclge_tm_pri_q_qs_cfg:                 ; @hclge_tm_pri_q_qs_cfg
	.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	x19, x0
	ldr	x20, [x0, #16]
	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_9
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_23
; %bb.2:
	mov	x22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x23, x20, x22, lsl #4
	mov	x24, x23
	ldr	x9, [x24, #8]!
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	add	x1, x21, x8
	mov	x0, x19
	mov	x2, x21
	bl	_hclge_tm_qs_to_pri_map_cfg
	cbnz	w0, LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x21, x21, #1
	ldr	x8, [x24]
	cmp	x21, x8
	b.lo	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	b	LBB0_3
LBB0_9:
Lloh3:
	adrp	x9, _HCLGE_FLAG_VNET_BASE_SCH_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HCLGE_FLAG_VNET_BASE_SCH_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_23
; %bb.11:
	mov	x21, #0
Lloh6:
	adrp	x22, _HNAE3_MAX_TC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HNAE3_MAX_TC@GOTPAGEOFF]
	ldr	x9, [x22]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_19
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cbz	x9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x23, #0
	add	x24, x20, x21, lsl #4
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	add	x1, x23, x8
	mov	x0, x19
	mov	x2, x21
	bl	_hclge_tm_qs_to_pri_map_cfg
	cbnz	w0, LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x23, x23, #1
	ldr	x9, [x22]
	cmp	x23, x9
	b.lo	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #8]
	b	LBB0_12
LBB0_18:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_19:
	cbz	x8, LBB0_23
; %bb.20:
	mov	x21, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_hclge_vport_q_to_qs_map
	cbnz	w0, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x20, x20, #16
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.lo	LBB0_21
	b	LBB0_24
LBB0_23:
	mov	w0, #0
LBB0_24:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_FLAG_TC_BASE_SCH_MODE,8,3 ; @HCLGE_FLAG_TC_BASE_SCH_MODE
	.comm	_HCLGE_FLAG_VNET_BASE_SCH_MODE,8,3 ; @HCLGE_FLAG_VNET_BASE_SCH_MODE
	.comm	_HNAE3_MAX_TC,8,3               ; @HNAE3_MAX_TC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hclge_tm_pri_q_qs_cfg
.subsections_via_symbols
