	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcam_user_ip_class_set
_tcam_user_ip_class_set:                ## @tcam_user_ip_class_set
	.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
	movl	%r8d, %eax
	orl	%ecx, %eax
	orl	%r9d, %eax
	cmpl	$255, %eax
	ja	LBB0_3
## %bb.1:
	movq	_CLASS_CODE_USER_PROG1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	ja	LBB0_3
## %bb.2:
	movl	%ecx, %r15d
	movq	_CLASS_CODE_USER_PROG4@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jb	LBB0_3
## %bb.4:
	movl	%r9d, %r14d
	movl	%r8d, %ebx
	movl	%edx, %r12d
	subq	%rax, %rsi
	movq	%rsi, %rdi
	callq	_L3_CLS
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_nr64
	movq	_L3_CLS_IPVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_L3_CLS_PID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%esi, %edx
	movq	_L3_CLS_TOSMASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_L3_CLS_TOS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	testl	%r12d, %r12d
	cmovel	%r12d, %esi
	movq	_L3_CLS_PID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	orl	%esi, %r15d
	movq	_L3_CLS_TOSMASK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r15d, %ebx
	orl	%edx, %ebx
	movq	_L3_CLS_TOS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	orl	%ebx, %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_nw64
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLASS_CODE_USER_PROG1,8,3      ## @CLASS_CODE_USER_PROG1
	.comm	_CLASS_CODE_USER_PROG4,8,3      ## @CLASS_CODE_USER_PROG4
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_L3_CLS_IPVER,4,2               ## @L3_CLS_IPVER
	.comm	_L3_CLS_PID,4,2                 ## @L3_CLS_PID
	.comm	_L3_CLS_TOSMASK,4,2             ## @L3_CLS_TOSMASK
	.comm	_L3_CLS_TOS,4,2                 ## @L3_CLS_TOS
	.comm	_L3_CLS_PID_SHIFT,4,2           ## @L3_CLS_PID_SHIFT
	.comm	_L3_CLS_TOSMASK_SHIFT,4,2       ## @L3_CLS_TOSMASK_SHIFT
	.comm	_L3_CLS_TOS_SHIFT,4,2           ## @L3_CLS_TOS_SHIFT
	.no_dead_strip	_tcam_user_ip_class_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcam_user_ip_class_set
_tcam_user_ip_class_set:                ; @tcam_user_ip_class_set
	.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
	orr	w9, w4, w3
Lloh0:
	adrp	x8, _CLASS_CODE_USER_PROG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLASS_CODE_USER_PROG1@GOTPAGEOFF]
Lloh2:
	adrp	x10, _CLASS_CODE_USER_PROG4@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CLASS_CODE_USER_PROG4@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x10, [x10]
	orr	w9, w9, w5
	cmp	w9, #255
	ccmp	x8, x1, #2, ls
	ccmp	x10, x1, #0, ls
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	sub	x0, x1, x8
	bl	_L3_CLS
	mov	x23, x0
	bl	_nr64
Lloh9:
	adrp	x8, _L3_CLS_IPVER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _L3_CLS_IPVER@GOTPAGEOFF]
Lloh11:
	adrp	x9, _L3_CLS_PID@GOTPAGE
Lloh12:
	ldr	x9, [x9, _L3_CLS_PID@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh15:
	adrp	x10, _L3_CLS_TOSMASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _L3_CLS_TOSMASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh18:
	adrp	x10, _L3_CLS_TOS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _L3_CLS_TOS@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w9, w0, w9
	cmp	w22, #0
	csel	w8, wzr, w8, eq
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _L3_CLS_PID_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _L3_CLS_PID_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _L3_CLS_TOSMASK_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _L3_CLS_TOSMASK_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _L3_CLS_TOS_SHIFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _L3_CLS_TOS_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w1, w8, w9
	mov	x0, x23
	bl	_nw64
	mov	w0, #0
LBB0_3:
	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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CLASS_CODE_USER_PROG1,8,3      ; @CLASS_CODE_USER_PROG1
	.comm	_CLASS_CODE_USER_PROG4,8,3      ; @CLASS_CODE_USER_PROG4
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_L3_CLS_IPVER,4,2               ; @L3_CLS_IPVER
	.comm	_L3_CLS_PID,4,2                 ; @L3_CLS_PID
	.comm	_L3_CLS_TOSMASK,4,2             ; @L3_CLS_TOSMASK
	.comm	_L3_CLS_TOS,4,2                 ; @L3_CLS_TOS
	.comm	_L3_CLS_PID_SHIFT,4,2           ; @L3_CLS_PID_SHIFT
	.comm	_L3_CLS_TOSMASK_SHIFT,4,2       ; @L3_CLS_TOSMASK_SHIFT
	.comm	_L3_CLS_TOS_SHIFT,4,2           ; @L3_CLS_TOS_SHIFT
	.no_dead_strip	_tcam_user_ip_class_set
.subsections_via_symbols
