	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvsw61xx_update_state
_mvsw61xx_update_state:                 ## @mvsw61xx_update_state
	.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
	movq	%rdi, %r14
	callq	_get_state
	cmpl	$0, 32(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_SDET_POLARITY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MV_GLOBAL2REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_8021Q_VLAN_ONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%eax, %ecx
	notl	%ebx
	andl	%eax, %ebx
	cmpq	$0, 24(%r15)
	cmovnel	%ecx, %ebx
	movl	(%r12), %edi
	callq	_MV_GLOBAL2REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	16(%r15), %r8
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_22:
	movl	%eax, %esi
	andl	$-2, %esi
	leaq	20(%r8), %rdi
	xorl	%edx, %edx
	movq	_MV_8021Q_MODE_DISABLE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -20(%rdi)
	movl	(%rbx), %ecx
	movl	%ecx, -16(%rdi)
	movl	$0, -4(%rdi)
	movl	(%rbx), %ecx
	movl	%ecx, (%rdi)
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_23
LBB0_5:
	testb	$1, %al
	je	LBB0_7
## %bb.6:
	shlq	$4, %rdx
	movl	$0, (%r8,%rdx)
	movq	_MV_8021Q_MODE_DISABLE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 4(%r8,%rdx)
LBB0_7:
	cmpl	$0, 4(%r14)
	jle	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mvsw61xx_vlan_port_config
	incl	%ebx
	cmpl	4(%r14), %ebx
	jl	LBB0_9
## %bb.10:
	movl	(%r14), %eax
LBB0_11:
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_VLANID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_PVID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	16(%r15), %rax
	orl	8(%rax,%r13), %ebx
	movq	_VLANID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	movl	$-2, %eax
	movl	%r12d, %ecx
	roll	%cl, %eax
	movq	16(%r15), %rcx
	andl	%eax, (%rcx,%r13)
	movq	_CONTROL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	16(%r15), %rcx
	movl	12(%rcx,%r13), %ebx
	movq	_MV_FDB_HI_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %ebx
	xorl	%eax, %ebx
	movq	_MV_FDB_HI_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	xorl	%eax, %ebx
	movq	_CONTROL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	movq	16(%r15), %rax
	movl	12(%rax,%r13), %ebx
	andl	$15, %ebx
	movq	_MV_FDB_LO_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %ebx
	orl	(%rax,%r13), %ebx
	movq	_VLANMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	movq	_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_8021Q_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	16(%r15), %rcx
	movl	4(%rcx,%r13), %ebx
	movq	_MV_8021Q_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	movq	_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	incq	%r12
	movslq	(%r14), %rax
	addq	$16, %r13
	cmpq	%rax, %r12
	jl	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	callq	_mvsw61xx_vtu_program
	cmpl	$0, (%r14)
	jle	LBB0_17
## %bb.15:
	xorl	%r12d, %r12d
	movq	_CONTROL2@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_MIRROR_TX_SRC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_MV_MIRROR_RX_SRC_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	incl	%r12d
	cmpl	(%r14), %r12d
	jl	LBB0_16
LBB0_17:
	movq	_MONITOR_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_MV_GLOBALREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movl	%eax, %ebx
	movq	_MV_MIRROR_RX_DEST_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MV_MIRROR_TX_DEST_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r13), %edi
	callq	_MV_GLOBALREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	cmpl	$0, (%r15)
	je	LBB0_19
## %bb.18:
	movq	_CONTROL2@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	4(%r15), %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_MIRROR_RX_SRC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movq	_MV_MIRROR_RX_SRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%r15), %ebx
	shll	%cl, %ebx
	andl	%eax, %edx
	movl	4(%r15), %esi
	orl	%edx, %ebx
	movl	(%r12), %edi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	movl	(%r13), %edi
	callq	_MV_GLOBALREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_MIRROR_RX_DEST_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MV_MIRROR_RX_DEST_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	8(%r15), %ebx
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	movl	(%r13), %edi
	callq	_MV_GLOBALREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
LBB0_19:
	xorl	%r12d, %r12d
	cmpl	$0, 12(%r15)
	je	LBB0_21
## %bb.20:
	movq	_CONTROL2@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	4(%r15), %esi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_MIRROR_TX_SRC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	12(%r15), %ebx
	movq	_MV_MIRROR_TX_SRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	andl	%eax, %edx
	movl	4(%r15), %esi
	orl	%edx, %ebx
	movl	(%r13), %edi
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	movq	_MONITOR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MV_GLOBALREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_MIRROR_TX_DEST_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_MV_MIRROR_TX_DEST_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	8(%r15), %ebx
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	movq	_MONITOR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MV_GLOBALREG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SDET_POLARITY,4,2              ## @SDET_POLARITY
	.comm	_MV_8021Q_VLAN_ONLY,4,2         ## @MV_8021Q_VLAN_ONLY
	.comm	_MV_8021Q_MODE_DISABLE,4,2      ## @MV_8021Q_MODE_DISABLE
	.comm	_VLANID,4,2                     ## @VLANID
	.comm	_MV_PVID_MASK,4,2               ## @MV_PVID_MASK
	.comm	_CONTROL1,4,2                   ## @CONTROL1
	.comm	_MV_FDB_HI_MASK,4,2             ## @MV_FDB_HI_MASK
	.comm	_MV_FDB_HI_SHIFT,4,2            ## @MV_FDB_HI_SHIFT
	.comm	_MV_FDB_LO_SHIFT,4,2            ## @MV_FDB_LO_SHIFT
	.comm	_VLANMAP,4,2                    ## @VLANMAP
	.comm	_CONTROL2,4,2                   ## @CONTROL2
	.comm	_MV_8021Q_MODE_MASK,4,2         ## @MV_8021Q_MODE_MASK
	.comm	_MV_8021Q_MODE_SHIFT,4,2        ## @MV_8021Q_MODE_SHIFT
	.comm	_MV_MIRROR_RX_SRC_MASK,4,2      ## @MV_MIRROR_RX_SRC_MASK
	.comm	_MV_MIRROR_TX_SRC_MASK,4,2      ## @MV_MIRROR_TX_SRC_MASK
	.comm	_MONITOR_CTRL,4,2               ## @MONITOR_CTRL
	.comm	_MV_MIRROR_RX_DEST_MASK,4,2     ## @MV_MIRROR_RX_DEST_MASK
	.comm	_MV_MIRROR_TX_DEST_MASK,4,2     ## @MV_MIRROR_TX_DEST_MASK
	.comm	_MV_MIRROR_RX_SRC_SHIFT,4,2     ## @MV_MIRROR_RX_SRC_SHIFT
	.comm	_MV_MIRROR_RX_DEST_SHIFT,4,2    ## @MV_MIRROR_RX_DEST_SHIFT
	.comm	_MV_MIRROR_TX_SRC_SHIFT,4,2     ## @MV_MIRROR_TX_SRC_SHIFT
	.comm	_MV_MIRROR_TX_DEST_SHIFT,4,2    ## @MV_MIRROR_TX_DEST_SHIFT
	.no_dead_strip	_mvsw61xx_update_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvsw61xx_update_state
_mvsw61xx_update_state:                 ; @mvsw61xx_update_state
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_get_state
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_19
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x22, _SDET_POLARITY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDET_POLARITY@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_MV_GLOBAL2REG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	x8, [x20, #24]
Lloh2:
	adrp	x9, _MV_8021Q_VLAN_ONLY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MV_8021Q_VLAN_ONLY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w10, w9, w0
	bic	w9, w0, w9
	cmp	x8, #0
	csel	w21, w9, w10, eq
	ldr	w0, [x22]
	bl	_MV_GLOBAL2REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sw16
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x9, [x20, #16]
	add	x9, x9, #4
Lloh5:
	adrp	x10, _MV_8021Q_MODE_DISABLE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MV_8021Q_MODE_DISABLE@GOTPAGEOFF]
	mov	x11, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x9, #-4]
	ldr	w12, [x10]
	str	w12, [x9], #16
	subs	x11, x11, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_mvsw61xx_vlan_port_config
	add	w21, w21, #1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.lt	LBB0_6
; %bb.7:
	ldr	w8, [x19]
LBB0_8:
Lloh7:
	adrp	x23, _CONTROL2@GOTPAGE
Lloh8:
	ldr	x23, [x23, _CONTROL2@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
	mov	x21, #0
Lloh9:
	adrp	x25, _VLANID@GOTPAGE
Lloh10:
	ldr	x25, [x25, _VLANID@GOTPAGEOFF]
Lloh11:
	adrp	x28, _CONTROL1@GOTPAGE
Lloh12:
	ldr	x28, [x28, _CONTROL1@GOTPAGEOFF]
Lloh13:
	adrp	x26, _MV_8021Q_MODE_MASK@GOTPAGE
Lloh14:
	ldr	x26, [x26, _MV_8021Q_MODE_MASK@GOTPAGEOFF]
Lloh15:
	adrp	x27, _MV_8021Q_MODE_SHIFT@GOTPAGE
Lloh16:
	ldr	x27, [x27, _MV_8021Q_MODE_SHIFT@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
Lloh17:
	adrp	x8, _MV_PVID_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MV_PVID_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x20, #16]
	add	x9, x9, x24
	ldr	w9, [x9, #8]
	orr	w22, w9, w8
	ldr	w0, [x25]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_sw16
	mov	w8, #1
	lsl	w8, w8, w21
	ldr	x9, [x20, #16]
	ldr	w10, [x9, x24]
	bic	w8, w10, w8
	str	w8, [x9, x24]
	ldr	w0, [x28]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
Lloh20:
	adrp	x8, _MV_FDB_HI_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MV_FDB_HI_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	bic	w9, w0, w8
	ldr	x10, [x20, #16]
	add	x10, x10, x24
	ldr	w10, [x10, #12]
Lloh23:
	adrp	x11, _MV_FDB_HI_SHIFT@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MV_FDB_HI_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	asr	w10, w10, w11
	and	w8, w10, w8
	orr	w22, w8, w9
	ldr	w0, [x28]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_sw16
	ldr	x8, [x20, #16]
	add	x8, x8, x24
	ldr	w9, [x8, #12]
	and	w9, w9, #0xf
Lloh26:
	adrp	x10, _MV_FDB_LO_SHIFT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MV_FDB_LO_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	ldr	w8, [x8]
	orr	w22, w9, w8
Lloh29:
	adrp	x8, _VLANMAP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VLANMAP@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_sw16
	ldr	w0, [x23]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	w8, [x26]
	bic	w8, w0, w8
	ldr	x9, [x20, #16]
	add	x9, x9, x24
	ldr	w9, [x9, #4]
	ldr	w10, [x27]
	lsl	w9, w9, w10
	orr	w22, w9, w8
	ldr	w0, [x23]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_sw16
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x24, x24, #16
	cmp	x21, x8
	b.lt	LBB0_10
LBB0_11:
	mov	x0, x19
	bl	_mvsw61xx_vtu_program
	ldr	w8, [x19]
Lloh32:
	adrp	x26, _MV_MIRROR_RX_SRC_MASK@GOTPAGE
Lloh33:
	ldr	x26, [x26, _MV_MIRROR_RX_SRC_MASK@GOTPAGEOFF]
Lloh34:
	adrp	x24, _MV_MIRROR_TX_SRC_MASK@GOTPAGE
Lloh35:
	ldr	x24, [x24, _MV_MIRROR_TX_SRC_MASK@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w21, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	w8, [x26]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w22, w0, w8
	ldr	w0, [x23]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_sw16
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_13
LBB0_14:
Lloh36:
	adrp	x22, _MONITOR_CTRL@GOTPAGE
Lloh37:
	ldr	x22, [x22, _MONITOR_CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_MV_GLOBALREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
Lloh38:
	adrp	x27, _MV_MIRROR_RX_DEST_MASK@GOTPAGE
Lloh39:
	ldr	x27, [x27, _MV_MIRROR_RX_DEST_MASK@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh40:
	adrp	x25, _MV_MIRROR_TX_DEST_MASK@GOTPAGE
Lloh41:
	ldr	x25, [x25, _MV_MIRROR_TX_DEST_MASK@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w0
	orr	w21, w8, w9
	ldr	w0, [x22]
	bl	_MV_GLOBALREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sw16
	ldr	w8, [x20]
	cbz	w8, LBB0_16
; %bb.15:
	ldr	w0, [x23]
	ldr	w1, [x20, #4]
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	w8, [x26]
	bic	w8, w0, w8
Lloh42:
	adrp	x9, _MV_MIRROR_RX_SRC_SHIFT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MV_MIRROR_RX_SRC_SHIFT@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	ldp	w10, w1, [x20]
	lsl	w9, w10, w9
	orr	w21, w9, w8
	ldr	w0, [x23]
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sw16
	ldr	w0, [x22]
	bl	_MV_GLOBALREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	w8, [x27]
	bic	w8, w0, w8
	ldr	w9, [x20, #8]
Lloh45:
	adrp	x10, _MV_MIRROR_RX_DEST_SHIFT@GOTPAGE
Lloh46:
	ldr	x10, [x10, _MV_MIRROR_RX_DEST_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w21, w9, w8
	ldr	w0, [x22]
	bl	_MV_GLOBALREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sw16
LBB0_16:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_18
; %bb.17:
	ldr	w0, [x23]
	ldr	w1, [x20, #4]
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	w8, [x24]
	bic	w8, w0, w8
Lloh48:
	adrp	x9, _MV_MIRROR_TX_SRC_SHIFT@GOTPAGE
Lloh49:
	ldr	x9, [x9, _MV_MIRROR_TX_SRC_SHIFT@GOTPAGEOFF]
	ldr	w10, [x20, #12]
Lloh50:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w21, w9, w8
	ldr	w0, [x23]
	ldr	w1, [x20, #4]
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sw16
	ldr	w0, [x22]
	bl	_MV_GLOBALREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	w8, [x25]
	bic	w8, w0, w8
	ldr	w9, [x20, #8]
Lloh51:
	adrp	x10, _MV_MIRROR_TX_DEST_SHIFT@GOTPAGE
Lloh52:
	ldr	x10, [x10, _MV_MIRROR_TX_DEST_SHIFT@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w20, w9, w8
	ldr	w0, [x22]
	bl	_MV_GLOBALREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_sw16
LBB0_18:
	mov	w0, #0
	b	LBB0_20
LBB0_19:
Lloh54:
	adrp	x8, _EINVAL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SDET_POLARITY,4,2              ; @SDET_POLARITY
	.comm	_MV_8021Q_VLAN_ONLY,4,2         ; @MV_8021Q_VLAN_ONLY
	.comm	_MV_8021Q_MODE_DISABLE,4,2      ; @MV_8021Q_MODE_DISABLE
	.comm	_VLANID,4,2                     ; @VLANID
	.comm	_MV_PVID_MASK,4,2               ; @MV_PVID_MASK
	.comm	_CONTROL1,4,2                   ; @CONTROL1
	.comm	_MV_FDB_HI_MASK,4,2             ; @MV_FDB_HI_MASK
	.comm	_MV_FDB_HI_SHIFT,4,2            ; @MV_FDB_HI_SHIFT
	.comm	_MV_FDB_LO_SHIFT,4,2            ; @MV_FDB_LO_SHIFT
	.comm	_VLANMAP,4,2                    ; @VLANMAP
	.comm	_CONTROL2,4,2                   ; @CONTROL2
	.comm	_MV_8021Q_MODE_MASK,4,2         ; @MV_8021Q_MODE_MASK
	.comm	_MV_8021Q_MODE_SHIFT,4,2        ; @MV_8021Q_MODE_SHIFT
	.comm	_MV_MIRROR_RX_SRC_MASK,4,2      ; @MV_MIRROR_RX_SRC_MASK
	.comm	_MV_MIRROR_TX_SRC_MASK,4,2      ; @MV_MIRROR_TX_SRC_MASK
	.comm	_MONITOR_CTRL,4,2               ; @MONITOR_CTRL
	.comm	_MV_MIRROR_RX_DEST_MASK,4,2     ; @MV_MIRROR_RX_DEST_MASK
	.comm	_MV_MIRROR_TX_DEST_MASK,4,2     ; @MV_MIRROR_TX_DEST_MASK
	.comm	_MV_MIRROR_RX_SRC_SHIFT,4,2     ; @MV_MIRROR_RX_SRC_SHIFT
	.comm	_MV_MIRROR_RX_DEST_SHIFT,4,2    ; @MV_MIRROR_RX_DEST_SHIFT
	.comm	_MV_MIRROR_TX_SRC_SHIFT,4,2     ; @MV_MIRROR_TX_SRC_SHIFT
	.comm	_MV_MIRROR_TX_DEST_SHIFT,4,2    ; @MV_MIRROR_TX_DEST_SHIFT
	.no_dead_strip	_mvsw61xx_update_state
.subsections_via_symbols
