	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvsw61xx_get_port_mask
_mvsw61xx_get_port_mask:                ## @mvsw61xx_get_port_mask
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	callq	_get_state
	movq	(%rax), %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	_VLANMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_MV_PORTREG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sr16
	movl	%eax, %r13d
	movq	_MV_PORTS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_sprintf
	movq	_MV_PORTS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rdi
	addq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_sprintf
	addl	%eax, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	(%r15), %r14d
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r14d, %r13d
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%r14d, %edx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rdi
	addq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, 8(%rax)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLANMAP,4,2                    ## @VLANMAP
	.comm	_MV_PORTS_MASK,4,2              ## @MV_PORTS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%04x: "

	.comm	_MV_PORTS,4,2                   ## @MV_PORTS
L_.str.1:                               ## @.str.1
	.asciz	"%d "

L_.str.2:                               ## @.str.2
	.asciz	"(%d) "

	.no_dead_strip	_mvsw61xx_get_port_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvsw61xx_get_port_mask
_mvsw61xx_get_port_mask:                ; @mvsw61xx_get_port_mask
	.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, x2
	mov	x22, x0
	bl	_get_state
	ldr	x20, [x0]
	ldr	w21, [x19]
Lloh0:
	adrp	x8, _VLANMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLANMAP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x22
	bl	_sr16
Lloh3:
	adrp	x8, _MV_PORTS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MV_PORTS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w22, w8, w0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_sprintf
Lloh8:
	adrp	x27, _MV_PORTS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MV_PORTS@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, x0
	mov	w24, #0
Lloh10:
	adrp	x25, l_.str.2@PAGE
Lloh11:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh12:
	adrp	x26, l_.str.1@PAGE
Lloh13:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x20, w23, sxtw
	mov	x1, x26
	mov	x2, x24
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_sprintf
	add	w23, w0, w23
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	ldr	w8, [x27]
	cmp	w24, w8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w22, w24
	tbnz	w8, #0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w21, w24
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x20, w23, sxtw
	mov	x1, x25
	mov	x2, x21
	b	LBB0_3
LBB0_8:
	str	x20, [x19, #8]
	mov	w0, #0
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VLANMAP,4,2                    ; @VLANMAP
	.comm	_MV_PORTS_MASK,4,2              ; @MV_PORTS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%04x: "

	.comm	_MV_PORTS,4,2                   ; @MV_PORTS
l_.str.1:                               ; @.str.1
	.asciz	"%d "

l_.str.2:                               ; @.str.2
	.asciz	"(%d) "

	.no_dead_strip	_mvsw61xx_get_port_mask
.subsections_via_symbols
