	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_cls_c2_build_match
_mvpp2_cls_c2_build_match:              ## @mvpp2_cls_c2_build_match
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	_FLOW_DISSECTOR_KEY_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_flow_rule_match_key
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_flow_rule_match_vlan
	movq	-40(%rbp), %rax
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	_MVPP22_CLS_HEK_OPT_VLAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 8(%r15)
	movq	-32(%rbp), %rdx
	movl	8(%rdx), %edx
	orl	%edx, (%r15)
	orl	%ecx, 4(%r15)
LBB0_4:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	_MVPP22_CLS_HEK_OPT_VLAN_PRI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 8(%r15)
	movq	-32(%rbp), %rdx
	movl	(%rdx), %edx
	shll	$13, %edx
	orl	%edx, (%r15)
	shll	$13, %ecx
	orl	%ecx, 4(%r15)
LBB0_6:
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.7:
	movl	$16, %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
LBB0_8:
	movq	_FLOW_DISSECTOR_KEY_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_flow_rule_match_key
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_flow_rule_match_ports
	movq	-40(%rbp), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_11
## %bb.10:
	movq	_MVPP22_CLS_HEK_OPT_L4SIP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	%eax, 8(%r15)
	movq	-32(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_ntohs
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, (%r15)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_ntohs
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, 4(%r15)
	movl	(%rbx), %edi
	callq	_mvpp2_cls_hek_field_size
	addl	%r14d, %eax
	movq	-40(%rbp), %rcx
	movl	%eax, %r14d
LBB0_11:
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_MVPP22_CLS_HEK_OPT_L4DIP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	%eax, 8(%r15)
	movq	-32(%rbp), %rax
	movq	(%rax), %rdi
	callq	_ntohs
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, (%r15)
	movq	-40(%rbp), %rax
	movq	(%rax), %rdi
	callq	_ntohs
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, 4(%r15)
	movl	(%rbx), %edi
	callq	_mvpp2_cls_hek_field_size
LBB0_13:
	movl	8(%r15), %edi
	callq	_hweight16
	movq	%rax, %rcx
	movq	_MVPP2_FLOW_N_FIELDS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jle	LBB0_15
LBB0_14:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLOW_DISSECTOR_KEY_VLAN,4,2    ## @FLOW_DISSECTOR_KEY_VLAN
	.comm	_MVPP22_CLS_HEK_OPT_VLAN,4,2    ## @MVPP22_CLS_HEK_OPT_VLAN
	.comm	_MVPP22_CLS_HEK_OPT_VLAN_PRI,4,2 ## @MVPP22_CLS_HEK_OPT_VLAN_PRI
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_FLOW_DISSECTOR_KEY_PORTS,4,2   ## @FLOW_DISSECTOR_KEY_PORTS
	.comm	_MVPP22_CLS_HEK_OPT_L4SIP,4,2   ## @MVPP22_CLS_HEK_OPT_L4SIP
	.comm	_MVPP22_CLS_HEK_OPT_L4DIP,4,2   ## @MVPP22_CLS_HEK_OPT_L4DIP
	.comm	_MVPP2_FLOW_N_FIELDS,8,3        ## @MVPP2_FLOW_N_FIELDS
	.no_dead_strip	_mvpp2_cls_c2_build_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_cls_c2_build_match
_mvpp2_cls_c2_build_match:              ; @mvpp2_cls_c2_build_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x8, _FLOW_DISSECTOR_KEY_VLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_flow_rule_match_key
	cbz	x0, LBB0_7
; %bb.1:
	mov	x1, sp
	mov	x0, x20
	bl	_flow_rule_match_vlan
	ldr	x8, [sp]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_3
; %bb.2:
Lloh3:
	adrp	x10, _MVPP22_CLS_HEK_OPT_VLAN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MVPP22_CLS_HEK_OPT_VLAN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ldp	w12, w11, [x19, #4]
	orr	w10, w11, w10
	str	w10, [x19, #8]
	ldr	x10, [sp, #8]
	ldr	w10, [x10, #8]
	ldr	w11, [x19]
	orr	w10, w11, w10
	orr	w9, w12, w9
	stp	w10, w9, [x19]
LBB0_3:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
Lloh6:
	adrp	x10, _MVPP22_CLS_HEK_OPT_VLAN_PRI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MVPP22_CLS_HEK_OPT_VLAN_PRI@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	ldr	w11, [x19, #8]
	orr	w10, w11, w10
	str	w10, [x19, #8]
	ldr	x10, [sp, #8]
	ldr	s0, [x10]
	mov.s	v0[1], w9
	shl.2s	v0, v0, #13
	ldr	d1, [x19]
	orr.8b	v0, v0, v1
	str	d0, [x19]
LBB0_5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_14
; %bb.6:
	mov	w21, #16
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
Lloh9:
	adrp	x8, _FLOW_DISSECTOR_KEY_PORTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_PORTS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_flow_rule_match_key
	cbz	x0, LBB0_13
; %bb.9:
	mov	x1, sp
	mov	x0, x20
	bl	_flow_rule_match_ports
	ldr	x8, [sp]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_11
; %bb.10:
Lloh12:
	adrp	x20, _MVPP22_CLS_HEK_OPT_L4SIP@GOTPAGE
Lloh13:
	ldr	x20, [x20, _MVPP22_CLS_HEK_OPT_L4SIP@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	bl	_ntohs
	lsl	w8, w0, w21
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [sp]
	ldr	x0, [x8, #8]
	bl	_ntohs
	lsl	w8, w0, w21
	ldr	w9, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	ldr	w0, [x20]
	bl	_mvpp2_cls_hek_field_size
	add	w21, w21, w0
	ldr	x8, [sp]
LBB0_11:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
Lloh14:
	adrp	x20, _MVPP22_CLS_HEK_OPT_L4DIP@GOTPAGE
Lloh15:
	ldr	x20, [x20, _MVPP22_CLS_HEK_OPT_L4DIP@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	bl	_ntohs
	lsl	w8, w0, w21
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [sp]
	ldr	x0, [x8]
	bl	_ntohs
	lsl	w8, w0, w21
	ldr	w9, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	ldr	w0, [x20]
	bl	_mvpp2_cls_hek_field_size
LBB0_13:
	ldr	w0, [x19, #8]
	bl	_hweight16
Lloh16:
	adrp	x8, _MVPP2_FLOW_N_FIELDS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MVPP2_FLOW_N_FIELDS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_15
LBB0_14:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FLOW_DISSECTOR_KEY_VLAN,4,2    ; @FLOW_DISSECTOR_KEY_VLAN
	.comm	_MVPP22_CLS_HEK_OPT_VLAN,4,2    ; @MVPP22_CLS_HEK_OPT_VLAN
	.comm	_MVPP22_CLS_HEK_OPT_VLAN_PRI,4,2 ; @MVPP22_CLS_HEK_OPT_VLAN_PRI
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_FLOW_DISSECTOR_KEY_PORTS,4,2   ; @FLOW_DISSECTOR_KEY_PORTS
	.comm	_MVPP22_CLS_HEK_OPT_L4SIP,4,2   ; @MVPP22_CLS_HEK_OPT_L4SIP
	.comm	_MVPP22_CLS_HEK_OPT_L4DIP,4,2   ; @MVPP22_CLS_HEK_OPT_L4DIP
	.comm	_MVPP2_FLOW_N_FIELDS,8,3        ; @MVPP2_FLOW_N_FIELDS
	.no_dead_strip	_mvpp2_cls_c2_build_match
.subsections_via_symbols
