	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_dcb_common_validate
_hclge_dcb_common_validate:             ## @hclge_dcb_common_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %r8d
	movl	16(%rdi), %ecx
	cmpl	%esi, %ecx
	jge	LBB0_1
## %bb.11:
	movq	8(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	movq	_HNAE3_MAX_USER_PRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rax,4), %ecx
	cmpl	%r8d, %ecx
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_3
LBB0_6:
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	%r8d, %ecx
	jge	LBB0_10
## %bb.7:
	movq	8(%rdi), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	xorl	%ebx, %ebx
	movl	%r8d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_4:
	movq	8(%rdi), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tc num checking failed, %u > tc_max(%u)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HNAE3_MAX_USER_PRIO,4,2        ## @HNAE3_MAX_USER_PRIO
L_.str.1:                               ## @.str.1
	.asciz	"prio_tc[%u] checking failed, %u >= num_tc(%u)\n"

L_.str.2:                               ## @.str.2
	.asciz	"allocated tqp checking failed, %u > tqp(%u)\n"

	.no_dead_strip	_hclge_dcb_common_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_dcb_common_validate
_hclge_dcb_common_validate:             ; @hclge_dcb_common_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
	ldr	w3, [x0, #16]
	cmp	w3, w1
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x9, _HNAE3_MAX_USER_PRIO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HNAE3_MAX_USER_PRIO@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x9, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x2, x9, lsl #2]
	cmp	w3, w8
	b.ge	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_4
LBB0_6:
	ldr	x9, [x0]
	ldr	w3, [x9]
	cmp	w3, w8
	b.ge	LBB0_12
; %bb.7:
	ldr	x0, [x0, #8]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x2, x8
	b	LBB0_10
LBB0_9:
	ldr	x0, [x0, #8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x9
LBB0_10:
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tc num checking failed, %u > tc_max(%u)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HNAE3_MAX_USER_PRIO,4,2        ; @HNAE3_MAX_USER_PRIO
l_.str.1:                               ; @.str.1
	.asciz	"prio_tc[%u] checking failed, %u >= num_tc(%u)\n"

l_.str.2:                               ; @.str.2
	.asciz	"allocated tqp checking failed, %u > tqp(%u)\n"

	.no_dead_strip	_hclge_dcb_common_validate
.subsections_via_symbols
