	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_ets_validate
_hclge_ets_validate:                    ## @hclge_ets_validate
	.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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_HNAE3_MAX_USER_PRIO@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	(%rsi), %rdx
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	cmpq	$1, %r8
	jne	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
LBB0_10:
	testb	$1, %r8b
	je	LBB0_14
## %bb.11:
	movq	(%rdx,%rsi,8), %rcx
	cmpq	(%rax,%rsi,8), %rcx
	je	LBB0_13
## %bb.12:
	movl	$1, (%r13)
LBB0_13:
	cmpq	%rbx, %rcx
	cmovaq	%rcx, %rbx
LBB0_14:
	incq	%rbx
	jmp	LBB0_15
LBB0_1:
	movl	$1, %ebx
LBB0_15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hclge_dcb_common_validate
	testl	%eax, %eax
	je	LBB0_16
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_HNAE3_MAX_TC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.17:
	movq	8(%r12), %rdx
	xorl	%esi, %esi
	movq	_HCLGE_SCH_MODE_DWRR@GOTPCREL(%rip), %r8
	movq	_HCLGE_SCH_MODE_SP@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%r12), %rdi
	movslq	(%rdi,%rsi,4), %rdi
	addq	%rdi, %rcx
	movl	$1, %r10d
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_26
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %edi
	cmpl	$129, %edi
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$128, %edi
	jne	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%r14), %rdi
	movl	(%rdi,%rsi,4), %edi
	cmpl	(%r9), %edi
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$1, (%r13)
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%r14), %rdi
	movl	(%rdi,%rsi,4), %edi
	cmpl	(%r8), %edi
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$1, (%r13)
	jmp	LBB0_24
LBB0_4:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, %rcx
	cmovaq	%rcx, %rbx
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	cmpq	(%rax,%rsi,8), %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, (%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, %rcx
	cmovaq	%rcx, %rbx
	movq	8(%rdx,%rsi,8), %rcx
	cmpq	8(%rax,%rsi,8), %rcx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, (%r13)
	jmp	LBB0_9
LBB0_26:
	testl	%r10d, %r10d
	je	LBB0_29
## %bb.27:
	movq	_BW_PERCENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_29
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_31
LBB0_29:
	movq	%rbx, (%r15)
	xorl	%eax, %eax
	cmpq	8(%r14), %rbx
	je	LBB0_31
## %bb.30:
	movl	$1, (%r13)
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_MAX_USER_PRIO,8,3        ## @HNAE3_MAX_USER_PRIO
	.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
	.comm	_BW_PERCENT,8,3                 ## @BW_PERCENT
	.no_dead_strip	_hclge_ets_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_ets_validate
_hclge_ets_validate:                    ; @hclge_ets_validate
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HNAE3_MAX_USER_PRIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNAE3_MAX_USER_PRIO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x2, [x1]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x9, [x21]
	cmp	x8, #8
	b.hs	LBB0_8
; %bb.2:
	mov	x10, #0
	mov	x11, #0
LBB0_3:
	sub	x8, x8, x10
	lsl	x10, x10, #3
	add	x9, x9, x10
	add	x10, x2, x10
	mov	w12, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x13, x11
	csel	x11, x13, x11, hi
	add	x9, x9, #8
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10]
	ldr	x14, [x9]
	cmp	x13, x14
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w12, [x19]
	b	LBB0_4
LBB0_7:
	mov	w23, #1
	b	LBB0_23
LBB0_8:
	mov	x10, #0
	add	x11, x19, #4
	lsl	x12, x8, #3
	add	x13, x2, x12
	add	x12, x9, x12
	cmp	x12, x19
	ccmp	x9, x11, #2, hi
	cset	w12, lo
	cmp	x2, x11
	mov	x11, x10
	ccmp	x13, x19, #0, lo
	b.hi	LBB0_3
; %bb.9:
	tbnz	w12, #0, LBB0_3
; %bb.10:
	and	x10, x8, #0xfffffffffffffff8
	add	x11, x2, #32
	add	x12, x9, #32
	movi.2d	v0, #0000000000000000
	mov	w13, #1
	mov	x14, x10
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v1, #0000000000000000
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	str	w13, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	cmhi.2d	v16, v7, v0
	bit.16b	v0, v7, v16
	cmhi.2d	v7, v6, v3
	bit.16b	v3, v6, v7
	cmhi.2d	v6, v5, v2
	bit.16b	v2, v5, v6
	cmhi.2d	v5, v4, v1
	bit.16b	v1, v4, v5
	add	x11, x11, #64
	add	x12, x12, #64
	subs	x14, x14, #8
	b.eq	LBB0_21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q7, q6, [x11, #-32]
	ldp	q5, q4, [x11]
	ldur	q16, [x12, #-32]
	cmeq.2d	v16, v7, v16
	mvn.16b	v16, v16
	xtn.2s	v16, v16
	fmov	w15, s16
	tbnz	w15, #0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov.s	w15, v16[1]
	tbnz	w15, #0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	q16, [x12, #-16]
	cmeq.2d	v16, v6, v16
	mvn.16b	v16, v16
	xtn.2s	v16, v16
	fmov	w15, s16
	tbnz	w15, #0, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov.s	w15, v16[1]
	tbnz	w15, #0, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	q16, [x12]
	cmeq.2d	v16, v5, v16
	mvn.16b	v16, v16
	xtn.2s	v16, v16
	fmov	w15, s16
	tbnz	w15, #0, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov.s	w15, v16[1]
	tbnz	w15, #0, LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	q16, [x12, #16]
	cmeq.2d	v16, v4, v16
	mvn.16b	v16, v16
	xtn.2s	v16, v16
	fmov	w15, s16
	tbnz	w15, #0, LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	mov.s	w15, v16[1]
	tbz	w15, #0, LBB0_12
	b	LBB0_11
LBB0_21:
	cmhi.2d	v4, v0, v3
	bif.16b	v0, v3, v4
	cmhi.2d	v3, v0, v2
	bif.16b	v0, v2, v3
	cmhi.2d	v2, v0, v1
	bif.16b	v0, v1, v2
	ext.16b	v1, v0, v0, #8
	cmhi	d2, d0, d1
	bif.8b	v0, v1, v2
	fmov	x11, d0
	cmp	x8, x10
	b.ne	LBB0_3
LBB0_22:
	add	x23, x11, #1
LBB0_23:
	mov	x0, x21
	mov	x1, x23
	bl	_hclge_dcb_common_validate
	cbz	w0, LBB0_25
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
LBB0_25:
Lloh3:
	adrp	x8, _HNAE3_MAX_TC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNAE3_MAX_TC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	cbz	x9, LBB0_38
; %bb.26:
	mov	x10, #0
	mov	x8, #0
	mov	w15, #0
	ldr	x11, [x22, #8]
Lloh6:
	adrp	x12, _HCLGE_SCH_MODE_DWRR@GOTPAGE
Lloh7:
	ldr	x12, [x12, _HCLGE_SCH_MODE_DWRR@GOTPAGEOFF]
	mov	w13, #1
Lloh8:
	adrp	x14, _HCLGE_SCH_MODE_SP@GOTPAGE
Lloh9:
	ldr	x14, [x14, _HCLGE_SCH_MODE_SP@GOTPAGEOFF]
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x15, [x22, #16]
	ldrsw	x15, [x15, x10, lsl #2]
	add	x8, x8, x15
	mov	w15, #1
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_35
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x11, x10, lsl #2]
	cmp	w16, #129
	b.eq	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	cmp	w16, #128
	b.ne	LBB0_37
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x16, [x21, #16]
	ldr	w16, [x16, x10, lsl #2]
	ldr	w17, [x14]
	cmp	w16, w17
	b.eq	LBB0_28
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=1
	str	w13, [x19]
	b	LBB0_28
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x15, [x21, #16]
	ldr	w15, [x15, x10, lsl #2]
	ldr	w16, [x12]
	cmp	w15, w16
	b.eq	LBB0_27
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=1
	str	w13, [x19]
	b	LBB0_27
LBB0_35:
	cbz	w15, LBB0_38
; %bb.36:
Lloh10:
	adrp	x9, _BW_PERCENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BW_PERCENT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_38
LBB0_37:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_38:
	str	x23, [x20]
	ldr	x8, [x21, #8]
	cmp	x23, x8
	b.ne	LBB0_40
; %bb.39:
	mov	w0, #0
	b	LBB0_24
LBB0_40:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_MAX_USER_PRIO,8,3        ; @HNAE3_MAX_USER_PRIO
	.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
	.comm	_BW_PERCENT,8,3                 ; @BW_PERCENT
	.no_dead_strip	_hclge_ets_validate
.subsections_via_symbols
