	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_dbcnl_validate_ets
_mlx5e_dbcnl_validate_ets:              ## @mlx5e_dbcnl_validate_ets
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.5:
	movq	(%rsi), %rbx
	movq	_MLX5E_MAX_PRIORITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rbx,%rcx,8)
	jge	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %r14
	jne	LBB0_6
## %bb.3:
	movq	8(%rsi), %r9
	movq	_IEEE_8021QAZ_TSA_ETS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, %r14d
	jne	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
LBB0_14:
	testb	$1, %r14b
	je	LBB0_17
## %bb.15:
	cmpq	%rax, (%r9,%rbx,8)
	jne	LBB0_17
## %bb.16:
	movq	16(%rsi), %rax
	addl	(%rax,%rbx,8), %r8d
	movl	$1, %r10d
LBB0_17:
	xorl	%ebx, %ebx
	testl	%r10d, %r10d
	je	LBB0_24
## %bb.18:
	cmpl	$100, %r8d
	je	LBB0_24
## %bb.19:
	testl	%edx, %edx
	je	LBB0_21
## %bb.20:
	testl	%r8d, %r8d
	je	LBB0_22
LBB0_21:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_23:
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	%r14d, %r11d
	andl	$-2, %r11d
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rbx
	cmpq	%rbx, %r11
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%r9,%rbx,8)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rsi), %rcx
	addl	(%rcx,%rbx,8), %r8d
	movl	$1, %r10d
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rax, 8(%r9,%rbx,8)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rsi), %rcx
	addl	8(%rcx,%rbx,8), %r8d
	movl	$1, %r10d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.comm	_MLX5E_MAX_PRIORITY,8,3         ## @MLX5E_MAX_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to validate ETS: priority value greater than max(%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE_8021QAZ_TSA_ETS,8,3       ## @IEEE_8021QAZ_TSA_ETS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to validate ETS: BW sum is illegal\n"

	.no_dead_strip	_mlx5e_dbcnl_validate_ets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_dbcnl_validate_ets
_mlx5e_dbcnl_validate_ets:              ; @mlx5e_dbcnl_validate_ets
	.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
Lloh0:
	adrp	x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x8]
	cmp	w13, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x9, [x1]
Lloh3:
	adrp	x8, _MLX5E_MAX_PRIORITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5E_MAX_PRIORITY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x10, x13
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x8
	b.ge	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x8, #0
	mov	w9, #0
	mov	w11, #0
	ldr	x10, [x1, #8]
Lloh6:
	adrp	x12, _IEEE_8021QAZ_TSA_ETS@GOTPAGE
Lloh7:
	ldr	x12, [x12, _IEEE_8021QAZ_TSA_ETS@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	lsl	x13, x13, #3
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #8
	cmp	x13, x8
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x10, x8]
	cmp	x14, x12
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x1, #16]
	ldr	w11, [x11, x8]
	add	w9, w9, w11
	mov	w11, #1
	b	LBB0_5
LBB0_8:
	mov	w8, #0
	b	LBB0_17
LBB0_9:
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_10:
	mov	w8, #0
	cbz	w11, LBB0_17
; %bb.11:
	cmp	w9, #100
	b.eq	LBB0_17
; %bb.12:
	cbz	w2, LBB0_14
; %bb.13:
	cbz	w9, LBB0_16
LBB0_14:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	bl	_netdev_err
LBB0_16:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_17:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.comm	_MLX5E_MAX_PRIORITY,8,3         ; @MLX5E_MAX_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to validate ETS: priority value greater than max(%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE_8021QAZ_TSA_ETS,8,3       ; @IEEE_8021QAZ_TSA_ETS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to validate ETS: BW sum is illegal\n"

	.no_dead_strip	_mlx5e_dbcnl_validate_ets
.subsections_via_symbols
