	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvsw61xx_get_vlan_ports
_mvsw61xx_get_vlan_ports:               ## @mvsw61xx_get_vlan_ports
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_get_state
	movl	(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_9
## %bb.1:
	cmpl	(%rbx), %r10d
	jge	LBB0_9
## %bb.2:
	movq	%rax, %rcx
	movl	4(%rbx), %r12d
	xorl	%eax, %eax
	movl	$0, %esi
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.3:
	movq	(%rcx), %r8
	movl	(%r8,%r10,8), %r13d
	movq	_SWITCH_PORT_FLAG_TAGGED@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%edi
	addl	$4, %edx
	cmpl	%edi, %r12d
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	btl	%edi, %r13d
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rbx
	movslq	%esi, %rsi
	movl	%edi, (%rbx,%rsi,8)
	movl	4(%r8,%r10,8), %r9d
	movl	%edx, %ecx
	sarl	%cl, %r9d
	movzbl	(%r15), %ecx
	movl	$1, %r11d
	shll	%cl, %r11d
	andl	$15, %r9d
	movq	_MV_VTUCTL_EGRESS_TAGGED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r9d
	movl	$0, %ecx
	cmovnel	%ecx, %r11d
	movl	%r11d, 4(%rbx,%rsi,8)
	incl	%esi
	jmp	LBB0_6
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movl	%esi, 4(%r14)
LBB0_8:
	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	_MV_VTUCTL_EGRESS_TAGGED,4,2    ## @MV_VTUCTL_EGRESS_TAGGED
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ## @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_mvsw61xx_get_vlan_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvsw61xx_get_vlan_ports
_mvsw61xx_get_vlan_ports:               ; @mvsw61xx_get_vlan_ports
	.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	w12, [x19]
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	w8, [x20]
	cmp	w12, w8
	b.ge	LBB0_7
; %bb.2:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w10, #0
	mov	w11, #0
	mov	w9, #0
	ldr	x13, [x0]
	add	x12, x13, x12, lsl #3
	ldr	w13, [x12], #4
Lloh0:
	adrp	x14, _MV_VTUCTL_EGRESS_TAGGED@GOTPAGE
Lloh1:
	ldr	x14, [x14, _MV_VTUCTL_EGRESS_TAGGED@GOTPAGEOFF]
Lloh2:
	adrp	x15, _SWITCH_PORT_FLAG_TAGGED@GOTPAGE
Lloh3:
	ldr	x15, [x15, _SWITCH_PORT_FLAG_TAGGED@GOTPAGEOFF]
	mov	w16, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w11, w11, #1
	add	w10, w10, #4
	cmp	w8, w11
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w17, w13, w11
	tbz	w17, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x17, [x19, #8]
	add	x17, x17, w9, sxtw #3
	str	w11, [x17]
	ldr	w0, [x12]
	asr	w0, w0, w10
	and	w0, w0, #0xf
	ldr	w1, [x14]
	ldr	w2, [x15]
	lsl	w2, w16, w2
	cmp	w0, w1
	csel	w0, w2, wzr, eq
	str	w0, [x17, #4]
	add	w9, w9, #1
	b	LBB0_4
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	mov	w9, #0
LBB0_9:
	mov	w0, #0
	str	w9, [x19, #4]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MV_VTUCTL_EGRESS_TAGGED,4,2    ; @MV_VTUCTL_EGRESS_TAGGED
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ; @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_mvsw61xx_get_vlan_ports
.subsections_via_symbols
