	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_prs_ip6_proto
_mvpp2_prs_ip6_proto:                   ## @mvpp2_prs_ip6_proto
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	cmpw	%bx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	cmpw	%bx, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_IPPROTO_ICMPV6@GOTPCREL(%rip), %rax
	cmpw	%bx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_IPPROTO_IPIP@GOTPCREL(%rip), %rax
	cmpw	%bx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_5:
	movq	_MVPP2_PE_FIRST_FREE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MVPP2_PE_LAST_FREE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mvpp2_prs_tcam_first_free
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MVPP2_PRS_LU_IP6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mvpp2_prs_tcam_lu_set
	movl	%r12d, -48(%rbp)
	movq	_MVPP2_PRS_LU_FLOWS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mvpp2_prs_sram_next_lu_set
	movq	_MVPP2_PRS_SRAM_LU_GEN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_mvpp2_prs_sram_bits_set
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_mvpp2_prs_sram_ri_update
	movq	_MVPP2_PRS_SRAM_UDF_TYPE_L4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MVPP2_PRS_SRAM_OP_SEL_UDF_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$-2, %edx
	callq	_mvpp2_prs_sram_offset_set
	movq	_MVPP2_PRS_TCAM_PROTO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movzwl	%bx, %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mvpp2_prs_tcam_data_byte_set
	movq	_MVPP2_PRS_IPV6_NO_EXT_AI_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_mvpp2_prs_tcam_ai_update
	movq	_MVPP2_PRS_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mvpp2_prs_tcam_port_map_set
	movl	-48(%rbp), %esi
	movq	_MVPP2_PRS_LU_IP6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mvpp2_prs_shadow_set
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_prs_hw_write
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_TCP,2,1                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,2,1                ## @IPPROTO_UDP
	.comm	_IPPROTO_ICMPV6,2,1             ## @IPPROTO_ICMPV6
	.comm	_IPPROTO_IPIP,2,1               ## @IPPROTO_IPIP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MVPP2_PE_FIRST_FREE_TID,4,2    ## @MVPP2_PE_FIRST_FREE_TID
	.comm	_MVPP2_PE_LAST_FREE_TID,4,2     ## @MVPP2_PE_LAST_FREE_TID
	.comm	_MVPP2_PRS_LU_IP6,4,2           ## @MVPP2_PRS_LU_IP6
	.comm	_MVPP2_PRS_LU_FLOWS,4,2         ## @MVPP2_PRS_LU_FLOWS
	.comm	_MVPP2_PRS_SRAM_LU_GEN_BIT,4,2  ## @MVPP2_PRS_SRAM_LU_GEN_BIT
	.comm	_MVPP2_PRS_SRAM_UDF_TYPE_L4,4,2 ## @MVPP2_PRS_SRAM_UDF_TYPE_L4
	.comm	_MVPP2_PRS_SRAM_OP_SEL_UDF_ADD,4,2 ## @MVPP2_PRS_SRAM_OP_SEL_UDF_ADD
	.comm	_MVPP2_PRS_TCAM_PROTO_MASK,4,2  ## @MVPP2_PRS_TCAM_PROTO_MASK
	.comm	_MVPP2_PRS_IPV6_NO_EXT_AI_BIT,4,2 ## @MVPP2_PRS_IPV6_NO_EXT_AI_BIT
	.comm	_MVPP2_PRS_PORT_MASK,4,2        ## @MVPP2_PRS_PORT_MASK
	.no_dead_strip	_mvpp2_prs_ip6_proto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_prs_ip6_proto
_mvpp2_prs_ip6_proto:                   ; @mvpp2_prs_ip6_proto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
	ldrh	w8, [x8]
	ldrh	w9, [x9]
Lloh4:
	adrp	x10, _IPPROTO_ICMPV6@GOTPAGE
Lloh5:
	ldr	x10, [x10, _IPPROTO_ICMPV6@GOTPAGEOFF]
Lloh6:
	adrp	x11, _IPPROTO_IPIP@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IPPROTO_IPIP@GOTPAGEOFF]
	ldrh	w10, [x10]
	ldrh	w11, [x11]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	ccmp	w10, w1, #4, ne
	ccmp	w11, w1, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh8:
	adrp	x8, _MVPP2_PE_FIRST_FREE_TID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MVPP2_PE_FIRST_FREE_TID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _MVPP2_PE_LAST_FREE_TID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MVPP2_PE_LAST_FREE_TID@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_mvpp2_prs_tcam_first_free
	mov	x23, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh14:
	adrp	x24, _MVPP2_PRS_LU_IP6@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MVPP2_PRS_LU_IP6@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x0, sp, #8
	bl	_mvpp2_prs_tcam_lu_set
	str	w23, [sp, #8]
Lloh16:
	adrp	x8, _MVPP2_PRS_LU_FLOWS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MVPP2_PRS_LU_FLOWS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_mvpp2_prs_sram_next_lu_set
Lloh19:
	adrp	x8, _MVPP2_PRS_SRAM_LU_GEN_BIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MVPP2_PRS_SRAM_LU_GEN_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_mvpp2_prs_sram_bits_set
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x21
	bl	_mvpp2_prs_sram_ri_update
Lloh22:
	adrp	x8, _MVPP2_PRS_SRAM_UDF_TYPE_L4@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MVPP2_PRS_SRAM_UDF_TYPE_L4@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _MVPP2_PRS_SRAM_OP_SEL_UDF_ADD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MVPP2_PRS_SRAM_OP_SEL_UDF_ADD@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	w2, #-2
	bl	_mvpp2_prs_sram_offset_set
Lloh28:
	adrp	x8, _MVPP2_PRS_TCAM_PROTO_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MVPP2_PRS_TCAM_PROTO_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x20
	bl	_mvpp2_prs_tcam_data_byte_set
Lloh31:
	adrp	x8, _MVPP2_PRS_IPV6_NO_EXT_AI_BIT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MVPP2_PRS_IPV6_NO_EXT_AI_BIT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x1
	bl	_mvpp2_prs_tcam_ai_update
Lloh34:
	adrp	x8, _MVPP2_PRS_PORT_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MVPP2_PRS_PORT_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_mvpp2_prs_tcam_port_map_set
	ldr	w1, [sp, #8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_mvpp2_prs_shadow_set
	add	x1, sp, #8
	mov	x0, x19
	bl	_mvpp2_prs_hw_write
	mov	w23, #0
	b	LBB0_4
LBB0_3:
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_TCP,2,1                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,2,1                ; @IPPROTO_UDP
	.comm	_IPPROTO_ICMPV6,2,1             ; @IPPROTO_ICMPV6
	.comm	_IPPROTO_IPIP,2,1               ; @IPPROTO_IPIP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MVPP2_PE_FIRST_FREE_TID,4,2    ; @MVPP2_PE_FIRST_FREE_TID
	.comm	_MVPP2_PE_LAST_FREE_TID,4,2     ; @MVPP2_PE_LAST_FREE_TID
	.comm	_MVPP2_PRS_LU_IP6,4,2           ; @MVPP2_PRS_LU_IP6
	.comm	_MVPP2_PRS_LU_FLOWS,4,2         ; @MVPP2_PRS_LU_FLOWS
	.comm	_MVPP2_PRS_SRAM_LU_GEN_BIT,4,2  ; @MVPP2_PRS_SRAM_LU_GEN_BIT
	.comm	_MVPP2_PRS_SRAM_UDF_TYPE_L4,4,2 ; @MVPP2_PRS_SRAM_UDF_TYPE_L4
	.comm	_MVPP2_PRS_SRAM_OP_SEL_UDF_ADD,4,2 ; @MVPP2_PRS_SRAM_OP_SEL_UDF_ADD
	.comm	_MVPP2_PRS_TCAM_PROTO_MASK,4,2  ; @MVPP2_PRS_TCAM_PROTO_MASK
	.comm	_MVPP2_PRS_IPV6_NO_EXT_AI_BIT,4,2 ; @MVPP2_PRS_IPV6_NO_EXT_AI_BIT
	.comm	_MVPP2_PRS_PORT_MASK,4,2        ; @MVPP2_PRS_PORT_MASK
	.no_dead_strip	_mvpp2_prs_ip6_proto
.subsections_via_symbols
