	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_port_vlan
_mv88e6xxx_port_vlan:                   ## @mv88e6xxx_port_vlan
	.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	_DSA_MAX_SWITCHES@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	%esi, (%rax)
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.2:
	movl	%edx, %r12d
	cmpl	%edx, (%rbx)
	jle	LBB0_13
## %bb.3:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_dsa_is_cpu_port
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_dsa_is_dsa_port
	testq	%rax, %rax
	je	LBB0_5
LBB0_14:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mv88e6xxx_port_mask            ## TAILCALL
LBB0_5:
	movq	8(%rbx), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r15, %rdi
	callq	_mv88e6xxx_num_ports
	testl	%eax, %eax
	jle	LBB0_13
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	movq	%r15, %rdi
	callq	_mv88e6xxx_num_ports
	cmpl	%eax, %ebx
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_dsa_is_cpu_port
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_dsa_is_dsa_port
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%r12, %r12
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_dsa_to_port
	cmpq	%r12, (%rax)
	jne	LBB0_12
	jmp	LBB0_11
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSA_MAX_SWITCHES,4,2           ## @DSA_MAX_SWITCHES
	.no_dead_strip	_mv88e6xxx_port_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_port_vlan
_mv88e6xxx_port_vlan:                   ; @mv88e6xxx_port_vlan
	.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
Lloh0:
	adrp	x8, _DSA_MAX_SWITCHES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSA_MAX_SWITCHES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x21, [x8, w1, sxtw #3]
	cbz	x21, LBB0_8
; %bb.2:
	mov	x20, x2
	ldr	w8, [x21]
	cmp	w8, w2
	b.le	LBB0_8
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_dsa_is_cpu_port
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	bl	_dsa_is_dsa_port
	cbz	x0, LBB0_6
LBB0_5:
	mov	x0, x19
	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
	b	_mv88e6xxx_port_mask
LBB0_6:
	ldr	x8, [x21, #8]
	ldr	x22, [x8, w20, sxtw #3]
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.7:
	mov	w21, #0
	mov	w20, #0
	b	LBB0_12
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	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
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_BIT
	orr	w20, w0, w20
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w21, w21, #1
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	cmp	w21, w0
	b.ge	LBB0_9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	mov	x1, x21
	bl	_dsa_is_cpu_port
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x19]
	mov	x1, x21
	bl	_dsa_is_dsa_port
	cbnz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	x22, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x19]
	mov	x1, x21
	bl	_dsa_to_port
	ldr	x8, [x0]
	cmp	x8, x22
	b.ne	LBB0_11
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DSA_MAX_SWITCHES,4,2           ; @DSA_MAX_SWITCHES
	.no_dead_strip	_mv88e6xxx_port_vlan
.subsections_via_symbols
