	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_port_vlan_filtering
_gswip_port_vlan_filtering:             ## @gswip_port_vlan_filtering
	.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	%edx, %r13d
	movl	%esi, %r15d
	movq	(%rdi), %r14
	callq	_dsa_to_port
	movq	(%rax), %r12
	movl	(%r14), %ebx
	movl	%r15d, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	cmpl	%r13d, %ecx
	je	LBB0_3
## %bb.1:
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movq	_GSWIP_PCE_VCTRL_VSR@GOTPCREL(%rip), %rax
	movq	_GSWIP_PCE_VCTRL_UVR@GOTPCREL(%rip), %rcx
	movq	_GSWIP_PCE_VCTRL_VIMR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movl	(%rax), %r12d
	movq	_GSWIP_PCE_VCTRL_VEMR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_GSWIP_PCE_VCTRL
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_gswip_switch_mask
	movq	_GSWIP_PCE_PCTRL_0_TVM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_GSWIP_PCE_PCTRL_0p
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_5:
	movq	_GSWIP_PCE_VCTRL_UVR@GOTPCREL(%rip), %rax
	movq	_GSWIP_PCE_VCTRL_VIMR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_GSWIP_PCE_VCTRL_VEMR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_GSWIP_PCE_VCTRL_VSR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_GSWIP_PCE_VCTRL
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_gswip_switch_mask
	movq	_GSWIP_PCE_PCTRL_0_TVM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_GSWIP_PCE_PCTRL_0p
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
LBB0_6:
	movl	%eax, %ecx
	callq	_gswip_switch_mask
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GSWIP_PCE_VCTRL_VSR,4,2        ## @GSWIP_PCE_VCTRL_VSR
	.comm	_GSWIP_PCE_VCTRL_UVR,4,2        ## @GSWIP_PCE_VCTRL_UVR
	.comm	_GSWIP_PCE_VCTRL_VIMR,4,2       ## @GSWIP_PCE_VCTRL_VIMR
	.comm	_GSWIP_PCE_VCTRL_VEMR,4,2       ## @GSWIP_PCE_VCTRL_VEMR
	.comm	_GSWIP_PCE_PCTRL_0_TVM,4,2      ## @GSWIP_PCE_PCTRL_0_TVM
	.no_dead_strip	_gswip_port_vlan_filtering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_port_vlan_filtering
_gswip_port_vlan_filtering:             ; @gswip_port_vlan_filtering
	.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
	mov	x21, x2
	mov	x20, x1
	ldr	x19, [x0]
	bl	_dsa_to_port
	ldr	x22, [x0]
	ldr	w23, [x19]
	mov	x0, x20
	bl	_BIT
	tst	w0, w23
	cset	w8, ne
	cmp	w8, w21
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_3
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _GSWIP_PCE_VCTRL_VSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSWIP_PCE_VCTRL_VSR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _GSWIP_PCE_VCTRL_UVR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSWIP_PCE_VCTRL_UVR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GSWIP_PCE_VCTRL_VIMR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GSWIP_PCE_VCTRL_VIMR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _GSWIP_PCE_VCTRL_VEMR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GSWIP_PCE_VCTRL_VEMR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w22, w8, w9
	mov	x0, x20
	bl	_GSWIP_PCE_VCTRL
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_gswip_switch_mask
Lloh12:
	adrp	x8, _GSWIP_PCE_PCTRL_0_TVM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSWIP_PCE_PCTRL_0_TVM@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_GSWIP_PCE_PCTRL_0p
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh18:
	adrp	x8, _GSWIP_PCE_VCTRL_UVR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GSWIP_PCE_VCTRL_UVR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _GSWIP_PCE_VCTRL_VIMR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _GSWIP_PCE_VCTRL_VIMR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _GSWIP_PCE_VCTRL_VEMR@GOTPAGE
Lloh25:
	ldr	x10, [x10, _GSWIP_PCE_VCTRL_VEMR@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh26:
	ldr	w9, [x10]
	orr	w21, w8, w9
Lloh27:
	adrp	x8, _GSWIP_PCE_VCTRL_VSR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GSWIP_PCE_VCTRL_VSR@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_GSWIP_PCE_VCTRL
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_gswip_switch_mask
Lloh30:
	adrp	x8, _GSWIP_PCE_PCTRL_0_TVM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GSWIP_PCE_PCTRL_0_TVM@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_GSWIP_PCE_PCTRL_0p
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
LBB0_5:
	bl	_gswip_switch_mask
	mov	w0, #0
LBB0_6:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GSWIP_PCE_VCTRL_VSR,4,2        ; @GSWIP_PCE_VCTRL_VSR
	.comm	_GSWIP_PCE_VCTRL_UVR,4,2        ; @GSWIP_PCE_VCTRL_UVR
	.comm	_GSWIP_PCE_VCTRL_VIMR,4,2       ; @GSWIP_PCE_VCTRL_VIMR
	.comm	_GSWIP_PCE_VCTRL_VEMR,4,2       ; @GSWIP_PCE_VCTRL_VEMR
	.comm	_GSWIP_PCE_PCTRL_0_TVM,4,2      ; @GSWIP_PCE_PCTRL_0_TVM
	.no_dead_strip	_gswip_port_vlan_filtering
.subsections_via_symbols
