	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_vlan_init
_ocelot_vlan_init:                      ## @ocelot_vlan_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ANA_TABLES_VLANACCESS_CMD_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ANA_TABLES_VLANACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ocelot_write
	movq	%r14, %rdi
	callq	_ocelot_vlant_wait_for_completion
	movq	_VLAN_N_VID@GOTPCREL(%rip), %r15
	cmpq	$2, (%r15)
	jb	LBB0_3
## %bb.1:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ocelot_vlant_set_mask
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_2
LBB0_3:
	movl	(%r14), %edi
	decl	%edi
	xorl	%esi, %esi
	callq	_GENMASK
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_ocelot_vlant_set_mask
	xorl	%edi, %edi
	callq	_ANA_PORT_VLAN_CFG_VLAN_VID
	movl	%eax, %ebx
	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
	movq	_ANA_PORT_VLAN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movslq	(%r14), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ocelot_write_gix
	movl	$9, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movq	_ANA_VLANMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ocelot_write
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_REW_PORT_VLAN_CFG@GOTPCREL(%rip), %r15
	movq	_REW_TAG_CFG@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_ocelot_write_gix
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_ocelot_write_gix
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANA_TABLES_VLANACCESS_CMD_INIT,8,3 ## @ANA_TABLES_VLANACCESS_CMD_INIT
	.comm	_ANA_TABLES_VLANACCESS,4,2      ## @ANA_TABLES_VLANACCESS
	.comm	_VLAN_N_VID,8,3                 ## @VLAN_N_VID
	.comm	_ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA,4,2 ## @ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA
	.comm	_ANA_PORT_VLAN_CFG,4,2          ## @ANA_PORT_VLAN_CFG
	.comm	_ANA_VLANMASK,4,2               ## @ANA_VLANMASK
	.comm	_REW_PORT_VLAN_CFG,4,2          ## @REW_PORT_VLAN_CFG
	.comm	_REW_TAG_CFG,4,2                ## @REW_TAG_CFG
	.no_dead_strip	_ocelot_vlan_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_vlan_init
_ocelot_vlan_init:                      ; @ocelot_vlan_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _ANA_TABLES_VLANACCESS_CMD_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANA_TABLES_VLANACCESS_CMD_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _ANA_TABLES_VLANACCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ANA_TABLES_VLANACCESS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_ocelot_write
	mov	x0, x19
	bl	_ocelot_vlant_wait_for_completion
Lloh6:
	adrp	x21, _VLAN_N_VID@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VLAN_N_VID@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #2
	b.lo	LBB0_3
; %bb.1:
	mov	w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	str	xzr, [x8, x20, lsl #3]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_ocelot_vlant_set_mask
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	ldr	w8, [x19]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_GENMASK
	mov	x2, x0
	ldr	x8, [x19, #8]
	str	x0, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_ocelot_vlant_set_mask
	mov	w0, #0
	bl	_ANA_PORT_VLAN_CFG_VLAN_VID
Lloh8:
	adrp	x8, _ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	w0, #1
	bl	_ANA_PORT_VLAN_CFG_VLAN_POP_CNT
	orr	w1, w20, w0
Lloh11:
	adrp	x8, _ANA_PORT_VLAN_CFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ANA_PORT_VLAN_CFG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldrsw	x3, [x19]
	mov	x0, x19
	bl	_ocelot_write_gix
	mov	w0, #9
	mov	w1, #0
	bl	_GENMASK
	mov	x1, x0
Lloh14:
	adrp	x8, _ANA_VLANMASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ANA_VLANMASK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ocelot_write
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x20, #0
Lloh17:
	adrp	x21, _REW_PORT_VLAN_CFG@GOTPAGE
Lloh18:
	ldr	x21, [x21, _REW_PORT_VLAN_CFG@GOTPAGEOFF]
Lloh19:
	adrp	x22, _REW_TAG_CFG@GOTPAGE
Lloh20:
	ldr	x22, [x22, _REW_TAG_CFG@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x20
	bl	_ocelot_write_gix
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x20
	bl	_ocelot_write_gix
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ANA_TABLES_VLANACCESS_CMD_INIT,8,3 ; @ANA_TABLES_VLANACCESS_CMD_INIT
	.comm	_ANA_TABLES_VLANACCESS,4,2      ; @ANA_TABLES_VLANACCESS
	.comm	_VLAN_N_VID,8,3                 ; @VLAN_N_VID
	.comm	_ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA,4,2 ; @ANA_PORT_VLAN_CFG_VLAN_AWARE_ENA
	.comm	_ANA_PORT_VLAN_CFG,4,2          ; @ANA_PORT_VLAN_CFG
	.comm	_ANA_VLANMASK,4,2               ; @ANA_VLANMASK
	.comm	_REW_PORT_VLAN_CFG,4,2          ; @REW_PORT_VLAN_CFG
	.comm	_REW_TAG_CFG,4,2                ; @REW_TAG_CFG
	.no_dead_strip	_ocelot_vlan_init
.subsections_via_symbols
