	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvsw61xx_vlan_port_config
_mvsw61xx_vlan_port_config:             ## @mvsw61xx_vlan_port_config
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_get_state
	movl	(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_9
## %bb.1:
	movq	8(%rax), %rcx
	movslq	%r15d, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	movl	(%rcx,%rdi,8), %r11d
	leaq	(%rcx,%rdi,8), %rdi
	addq	$4, %rdi
	shlq	$2, %r10
	xorl	%ebx, %ebx
	movq	_MV_VTUCTL_EGRESS_TAGGED@GOTPCREL(%rip), %r8
	movq	_MV_8021Q_MODE_SECURE@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r9), %edx
	movq	(%rax), %rsi
	movl	%edx, 8(%rsi,%rcx,4)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rcx
	incl	%ebx
	cmpq	%rcx, %r10
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r11d
	jae	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %edx
	sarl	%cl, %edx
	andl	$15, %edx
	cmpl	(%r8), %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rdi), %edx
	movq	(%rax), %rsi
	movl	%edx, 12(%rsi,%rcx,4)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 4(%rdi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rdx
	orl	%r11d, (%rdx,%rcx,4)
	movl	%r15d, 4(%rdx,%rcx,4)
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV_VTUCTL_EGRESS_TAGGED,4,2    ## @MV_VTUCTL_EGRESS_TAGGED
	.comm	_MV_8021Q_MODE_SECURE,4,2       ## @MV_8021Q_MODE_SECURE
	.no_dead_strip	_mvsw61xx_vlan_port_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvsw61xx_vlan_port_config
_mvsw61xx_vlan_port_config:             ; @mvsw61xx_vlan_port_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_get_state
	ldr	w14, [x20]
	cmp	w14, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, #0
	mov	x9, #0
	ldr	x10, [x0, #8]
	mov	w11, #24
	smaddl	x13, w19, w11, x10
	add	x10, x13, #4
	mov	x11, x13
	ldr	w12, [x11], #8
	add	x13, x13, #16
	lsl	x14, x14, #2
Lloh0:
	adrp	x15, _MV_VTUCTL_EGRESS_TAGGED@GOTPAGE
Lloh1:
	ldr	x15, [x15, _MV_VTUCTL_EGRESS_TAGGED@GOTPAGEOFF]
Lloh2:
	adrp	x16, _MV_8021Q_MODE_SECURE@GOTPAGE
Lloh3:
	ldr	x16, [x16, _MV_8021Q_MODE_SECURE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w17, [x16]
	ldr	x1, [x0]
	add	x1, x1, x9, lsl #2
	str	w17, [x1, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #4
	add	w8, w8, #1
	cmp	x14, x9
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w17, w12, w8
	tbz	w17, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w17, [x10]
	asr	w17, w17, w9
	and	w17, w17, #0xf
	ldr	w1, [x15]
	cmp	w17, w1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w17, [x13]
	ldr	x1, [x0]
	add	x1, x1, x9, lsl #2
	str	w17, [x1, #12]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x11]
	cbz	x17, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x0]
	add	x17, x17, x9, lsl #2
	ldr	w1, [x17]
	orr	w1, w1, w12
	stp	w1, w19, [x17]
	b	LBB0_3
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MV_VTUCTL_EGRESS_TAGGED,4,2    ; @MV_VTUCTL_EGRESS_TAGGED
	.comm	_MV_8021Q_MODE_SECURE,4,2       ; @MV_8021Q_MODE_SECURE
	.no_dead_strip	_mvsw61xx_vlan_port_config
.subsections_via_symbols
