	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_vlan_port_apply
_ocelot_vlan_port_apply:                ## @ocelot_vlan_port_apply
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	24(%rsi), %edi
	callq	_ANA_PORT_VLAN_CFG_VLAN_VID
	movl	%eax, %ebx
	cmpq	$0, 16(%r15)
	je	LBB0_2
## %bb.1:
	movq	_ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$1, %edi
	callq	_ANA_PORT_VLAN_CFG_VLAN_POP_CNT
	orl	%eax, %ebx
LBB0_2:
	movq	_ANA_PORT_VLAN_CFG_VLAN_VID_M@GOTPCREL(%rip), %rax
	movq	_ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ANA_PORT_VLAN_CFG_VLAN_POP_CNT_M@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ANA_PORT_VLAN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ocelot_rmw_gix
	movq	_ANA_PORT_DROP_CFG_DROP_MC_SMAC_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%r15)
	jne	LBB0_5
## %bb.4:
	movq	_ANA_PORT_DROP_CFG_DROP_UNTAGGED_ENA@GOTPCREL(%rip), %rax
	movq	_ANA_PORT_DROP_CFG_DROP_PRIO_S_TAGGED_ENA@GOTPCREL(%rip), %rcx
	movq	_ANA_PORT_DROP_CFG_DROP_PRIO_C_TAGGED_ENA@GOTPCREL(%rip), %rdx
	orl	(%rax), %esi
	orl	(%rcx), %esi
	orl	(%rdx), %esi
LBB0_5:
	movq	_ANA_PORT_DROP_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_ocelot_write_gix
	xorl	%edi, %edi
	callq	_REW_TAG_CFG_TAG_TPID_CFG
	movl	%eax, %ebx
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	cmpq	$0, 8(%r15)
	sete	%al
	leal	(%rax,%rax), %edi
	incl	%edi
	callq	_REW_TAG_CFG_TAG_CFG
	orl	%eax, %ebx
LBB0_7:
	movq	_REW_TAG_CFG_TAG_TPID_CFG_M@GOTPCREL(%rip), %rax
	movq	_REW_TAG_CFG_TAG_CFG_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_REW_TAG_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ocelot_rmw_gix
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REW_PORT_VLAN_CFG_PORT_TPID
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	callq	_REW_PORT_VLAN_CFG_PORT_VID
	movq	_REW_PORT_VLAN_CFG_PORT_TPID_M@GOTPCREL(%rip), %rcx
	movq	_REW_PORT_VLAN_CFG_PORT_VID_M@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%eax, %ebx
	movq	_REW_PORT_VLAN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocelot_rmw_gix                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA,4,2 ## @ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA
	.comm	_ANA_PORT_VLAN_CFG_VLAN_VID_M,4,2 ## @ANA_PORT_VLAN_CFG_VLAN_VID_M
	.comm	_ANA_PORT_VLAN_CFG_VLAN_POP_CNT_M,4,2 ## @ANA_PORT_VLAN_CFG_VLAN_POP_CNT_M
	.comm	_ANA_PORT_VLAN_CFG,4,2          ## @ANA_PORT_VLAN_CFG
	.comm	_ANA_PORT_DROP_CFG_DROP_MC_SMAC_ENA,4,2 ## @ANA_PORT_DROP_CFG_DROP_MC_SMAC_ENA
	.comm	_ANA_PORT_DROP_CFG_DROP_UNTAGGED_ENA,4,2 ## @ANA_PORT_DROP_CFG_DROP_UNTAGGED_ENA
	.comm	_ANA_PORT_DROP_CFG_DROP_PRIO_S_TAGGED_ENA,4,2 ## @ANA_PORT_DROP_CFG_DROP_PRIO_S_TAGGED_ENA
	.comm	_ANA_PORT_DROP_CFG_DROP_PRIO_C_TAGGED_ENA,4,2 ## @ANA_PORT_DROP_CFG_DROP_PRIO_C_TAGGED_ENA
	.comm	_ANA_PORT_DROP_CFG,4,2          ## @ANA_PORT_DROP_CFG
	.comm	_REW_TAG_CFG_TAG_TPID_CFG_M,4,2 ## @REW_TAG_CFG_TAG_TPID_CFG_M
	.comm	_REW_TAG_CFG_TAG_CFG_M,4,2      ## @REW_TAG_CFG_TAG_CFG_M
	.comm	_REW_TAG_CFG,4,2                ## @REW_TAG_CFG
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_REW_PORT_VLAN_CFG_PORT_TPID_M,4,2 ## @REW_PORT_VLAN_CFG_PORT_TPID_M
	.comm	_REW_PORT_VLAN_CFG_PORT_VID_M,4,2 ## @REW_PORT_VLAN_CFG_PORT_VID_M
	.comm	_REW_PORT_VLAN_CFG,4,2          ## @REW_PORT_VLAN_CFG
	.no_dead_strip	_ocelot_vlan_port_apply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_vlan_port_apply
_ocelot_vlan_port_apply:                ; @ocelot_vlan_port_apply
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #24]
	bl	_ANA_PORT_VLAN_CFG_VLAN_VID
	mov	x21, x0
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x22, _ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w23, [x22]
	mov	w0, #1
	bl	_ANA_PORT_VLAN_CFG_VLAN_POP_CNT
	orr	w8, w23, w21
	orr	w21, w8, w0
LBB0_2:
Lloh2:
	adrp	x8, _ANA_PORT_VLAN_CFG_VLAN_VID_M@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ANA_PORT_VLAN_CFG_VLAN_VID_M@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _ANA_PORT_VLAN_CFG_VLAN_POP_CNT_M@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ANA_PORT_VLAN_CFG_VLAN_POP_CNT_M@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh8:
	adrp	x8, _ANA_PORT_VLAN_CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ANA_PORT_VLAN_CFG@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	ldr	w4, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_ocelot_rmw_gix
Lloh11:
	adrp	x8, _ANA_PORT_DROP_CFG_DROP_MC_SMAC_ENA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ANA_PORT_DROP_CFG_DROP_MC_SMAC_ENA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _ANA_PORT_DROP_CFG_DROP_UNTAGGED_ENA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ANA_PORT_DROP_CFG_DROP_UNTAGGED_ENA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ANA_PORT_DROP_CFG_DROP_PRIO_S_TAGGED_ENA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ANA_PORT_DROP_CFG_DROP_PRIO_S_TAGGED_ENA@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _ANA_PORT_DROP_CFG_DROP_PRIO_C_TAGGED_ENA@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ANA_PORT_DROP_CFG_DROP_PRIO_C_TAGGED_ENA@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w8, w8, w1
	orr	w8, w8, w9
	orr	w1, w8, w10
LBB0_5:
Lloh23:
	adrp	x8, _ANA_PORT_DROP_CFG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ANA_PORT_DROP_CFG@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_ocelot_write_gix
	mov	w0, #0
	bl	_REW_TAG_CFG_TAG_TPID_CFG
	mov	x21, x0
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	mov	w8, #3
	csinc	w0, w8, wzr, eq
	bl	_REW_TAG_CFG_TAG_CFG
	orr	w21, w0, w21
LBB0_7:
Lloh26:
	adrp	x8, _REW_TAG_CFG_TAG_TPID_CFG_M@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REW_TAG_CFG_TAG_TPID_CFG_M@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _REW_TAG_CFG_TAG_CFG_M@GOTPAGE
Lloh30:
	ldr	x9, [x9, _REW_TAG_CFG_TAG_CFG_M@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh32:
	adrp	x8, _REW_TAG_CFG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REW_TAG_CFG@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	ldr	w4, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_ocelot_rmw_gix
Lloh35:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_REW_PORT_VLAN_CFG_PORT_TPID
	mov	x21, x0
	ldr	x0, [x20, #8]
	bl	_REW_PORT_VLAN_CFG_PORT_VID
	orr	w1, w0, w21
Lloh38:
	adrp	x8, _REW_PORT_VLAN_CFG_PORT_TPID_M@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REW_PORT_VLAN_CFG_PORT_TPID_M@GOTPAGEOFF]
Lloh40:
	adrp	x9, _REW_PORT_VLAN_CFG_PORT_VID_M@GOTPAGE
Lloh41:
	ldr	x9, [x9, _REW_PORT_VLAN_CFG_PORT_VID_M@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh44:
	adrp	x8, _REW_PORT_VLAN_CFG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _REW_PORT_VLAN_CFG@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	ldr	w4, [x20]
	mov	x0, x19
	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
	b	_ocelot_rmw_gix
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA,4,2 ; @ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA
	.comm	_ANA_PORT_VLAN_CFG_VLAN_VID_M,4,2 ; @ANA_PORT_VLAN_CFG_VLAN_VID_M
	.comm	_ANA_PORT_VLAN_CFG_VLAN_POP_CNT_M,4,2 ; @ANA_PORT_VLAN_CFG_VLAN_POP_CNT_M
	.comm	_ANA_PORT_VLAN_CFG,4,2          ; @ANA_PORT_VLAN_CFG
	.comm	_ANA_PORT_DROP_CFG_DROP_MC_SMAC_ENA,4,2 ; @ANA_PORT_DROP_CFG_DROP_MC_SMAC_ENA
	.comm	_ANA_PORT_DROP_CFG_DROP_UNTAGGED_ENA,4,2 ; @ANA_PORT_DROP_CFG_DROP_UNTAGGED_ENA
	.comm	_ANA_PORT_DROP_CFG_DROP_PRIO_S_TAGGED_ENA,4,2 ; @ANA_PORT_DROP_CFG_DROP_PRIO_S_TAGGED_ENA
	.comm	_ANA_PORT_DROP_CFG_DROP_PRIO_C_TAGGED_ENA,4,2 ; @ANA_PORT_DROP_CFG_DROP_PRIO_C_TAGGED_ENA
	.comm	_ANA_PORT_DROP_CFG,4,2          ; @ANA_PORT_DROP_CFG
	.comm	_REW_TAG_CFG_TAG_TPID_CFG_M,4,2 ; @REW_TAG_CFG_TAG_TPID_CFG_M
	.comm	_REW_TAG_CFG_TAG_CFG_M,4,2      ; @REW_TAG_CFG_TAG_CFG_M
	.comm	_REW_TAG_CFG,4,2                ; @REW_TAG_CFG
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_REW_PORT_VLAN_CFG_PORT_TPID_M,4,2 ; @REW_PORT_VLAN_CFG_PORT_TPID_M
	.comm	_REW_PORT_VLAN_CFG_PORT_VID_M,4,2 ; @REW_PORT_VLAN_CFG_PORT_VID_M
	.comm	_REW_PORT_VLAN_CFG,4,2          ; @REW_PORT_VLAN_CFG
	.no_dead_strip	_ocelot_vlan_port_apply
.subsections_via_symbols
