	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_port_check_hw_vlan
_mv88e6xxx_port_check_hw_vlan:          ## @mv88e6xxx_port_check_hw_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	callq	_dsa_is_dsa_port
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_20
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_dsa_is_cpu_port
	testq	%rax, %rax
	jne	LBB0_20
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	decq	%r14
	movq	%r14, -80(%rbp)
	movl	$0, -72(%rbp)
	movslq	%r15d, %rax
	shlq	$4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -80(%rbp)
	jge	LBB0_20
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	callq	_mv88e6xxx_vtu_getnext
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	cmpl	$0, -72(%rbp)
	je	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -80(%rbp)
	jg	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_mv88e6xxx_num_ports
	testl	%eax, %eax
	jle	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$8, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r14
	movq	%r12, %rdi
	callq	_mv88e6xxx_num_ports
	cltq
	addq	$16, %r15
	cmpq	%rax, %r14
	jge	LBB0_19
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsa_is_dsa_port
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsa_is_cpu_port
	testq	%rax, %rax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	8(%rbx), %rax
	cmpl	$0, (%rax,%r15)
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-64(%rbp), %rax
	movq	(%rax,%r14,8), %rax
	movq	_MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsa_to_port
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rcx,%rdx), %rax
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsa_to_port
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movl	(%rbx), %r15d
	movq	-80(%rbp), %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsa_to_port
	movq	(%rax), %rdi
	callq	_netdev_name
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_dev_err
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_6:
	movl	%eax, %r13d
LBB0_20:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER,8,3 ## @MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p%d: hw VLAN %d already used by port %d in %s\n"

	.no_dead_strip	_mv88e6xxx_port_check_hw_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_check_hw_vlan
_mv88e6xxx_port_check_hw_vlan:          ; @mv88e6xxx_port_check_hw_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #16]
	bl	_dsa_is_dsa_port
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_dsa_is_cpu_port
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	cbz	x23, LBB0_19
; %bb.5:
	sub	x8, x23, #1
	str	x8, [sp, #8]
	str	wzr, [sp, #16]
	sxtw	x8, w19
Lloh0:
	adrp	x24, _MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPAGEOFF]
	lsl	x25, x8, #4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	ldr	x8, [sp, #8]
	cmp	x8, x21
	b.ge	LBB0_3
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	x1, sp, #8
	mov	x0, x22
	bl	_mv88e6xxx_vtu_getnext
	cbnz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #16]
	ldr	x9, [sp, #8]
	cmp	w8, #0
	ccmp	x9, x21, #0, ne
	b.gt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, #0
	mov	w26, #8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x23, x23, #1
	mov	x0, x22
	bl	_mv88e6xxx_num_ports
	add	x26, x26, #16
	cmp	x23, w0, sxtw
	b.ge	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x23
	bl	_dsa_is_dsa_port
	cbnz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	x1, x23
	bl	_dsa_is_cpu_port
	cbnz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x26]
	cbz	w8, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [sp, #24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	x1, x23
	bl	_dsa_to_port
	ldr	x8, [x0]
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x25]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	x1, x23
	bl	_dsa_to_port
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.18:
	ldr	w21, [x20]
	ldr	x22, [sp, #8]
	mov	x0, x20
	mov	x1, x23
	bl	_dsa_to_port
	ldr	x0, [x0]
	bl	_netdev_name
	mov	x5, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	bl	_dev_err
LBB0_19:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER,8,3 ; @MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p%d: hw VLAN %d already used by port %d in %s\n"

	.no_dead_strip	_mv88e6xxx_port_check_hw_vlan
.subsections_via_symbols
