	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_dcbnl_app_validate
_mlxsw_sp_dcbnl_app_validate:           ## @mlxsw_sp_dcbnl_app_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rdx
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movl	8(%rsi), %edx
	cmpl	$128, %edx
	je	LBB0_12
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_15
## %bb.4:
	movl	12(%rbx), %edx
	cmpl	$64, %edx
	jl	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_17
LBB0_12:
	cmpl	$0, 12(%rbx)
	je	LBB0_13
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
LBB0_16:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dcb_ieee_getapp_mask
	movl	%eax, %edi
	callq	_fls
	xorl	%r15d, %r15d
	subl	$1, %eax
	jb	LBB0_18
## %bb.7:
	movslq	%eax, %rcx
	movq	(%rbx), %rdx
	cmpq	%rcx, %rdx
	jle	LBB0_10
## %bb.8:
	movslq	12(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_10:
	jge	LBB0_18
## %bb.11:
	movslq	12(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, %r8d
	callq	_netdev_warn
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE_8021QAZ_MAX_TCS,8,3       ## @IEEE_8021QAZ_MAX_TCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"APP entry with priority value %u is invalid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"DSCP APP entry with protocol value %u is invalid\n"

L_.str.2:                               ## @.str.2
	.asciz	"Choosing priority %d for DSCP %d in favor of previously-active value of %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Ignoring new priority %d for DSCP %d in favor of current value of %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"EtherType APP entries with protocol value != 0 not supported\n"

L_.str.5:                               ## @.str.5
	.asciz	"APP entries with selector %u not supported\n"

	.no_dead_strip	_mlxsw_sp_dcbnl_app_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_dcbnl_app_validate
_mlxsw_sp_dcbnl_app_validate:           ; @mlxsw_sp_dcbnl_app_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #8]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x20, #12]
	cmp	w8, #64
	b.lt	LBB0_11
; %bb.4:
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_17
; %bb.7:
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_netdev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_dcb_ieee_getapp_mask
	bl	_fls
	cbz	w0, LBB0_10
; %bb.12:
	sub	w4, w0, #1
	sxtw	x8, w4
	ldr	x2, [x20]
	cmp	x2, x8
	b.le	LBB0_14
; %bb.13:
	ldrsw	x3, [x20, #12]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_14:
	b.ge	LBB0_17
; %bb.15:
	ldrsw	x3, [x20, #12]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_netdev_warn
LBB0_17:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE_8021QAZ_MAX_TCS,8,3       ; @IEEE_8021QAZ_MAX_TCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"APP entry with priority value %u is invalid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"DSCP APP entry with protocol value %u is invalid\n"

l_.str.2:                               ; @.str.2
	.asciz	"Choosing priority %d for DSCP %d in favor of previously-active value of %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Ignoring new priority %d for DSCP %d in favor of current value of %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"EtherType APP entries with protocol value != 0 not supported\n"

l_.str.5:                               ; @.str.5
	.asciz	"APP entries with selector %u not supported\n"

	.no_dead_strip	_mlxsw_sp_dcbnl_app_validate
.subsections_via_symbols
