	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_port_vlan_join
_mv88e6xxx_port_vlan_join:              ## @mv88e6xxx_port_vlan_join
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	-1(%rdx), %rax
	movq	%rax, -72(%rbp)
	movl	$0, -64(%rbp)
	leaq	-72(%rbp), %rsi
	callq	_mv88e6xxx_vtu_getnext
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	cmpq	%rbx, -72(%rbp)
	jne	LBB0_5
## %bb.4:
	cmpl	$0, -64(%rbp)
	je	LBB0_5
## %bb.12:
	movq	-56(%rbp), %rax
	movslq	%r12d, %rcx
	cmpq	%r13, (%rax,%rcx,8)
	jne	LBB0_13
## %bb.14:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	callq	_dev_info
	jmp	LBB0_15
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mv88e6xxx_atu_new
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movq	%r14, %rdi
	callq	_mv88e6xxx_num_ports
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	movq	%r13, %rdx
	movl	%r12d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, -80(%rbp)                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rax
	movq	%r15, %rcx
	cmoveq	%rdx, %rcx
	movq	%rcx, (%rax,%r13,8)
	incq	%r13
	movq	%r14, %rdi
	movq	%rdx, %r12
	callq	_mv88e6xxx_num_ports
	movq	%r12, %rdx
	cltq
	cmpq	%rax, %r13
	jl	LBB0_8
LBB0_9:
	movq	%rbx, -72(%rbp)
	movl	$1, -64(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mv88e6xxx_vtu_loadpurge
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mv88e6xxx_broadcast_setup
	jmp	LBB0_11
LBB0_13:
	movq	%r13, (%rax,%rcx,8)
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mv88e6xxx_vtu_loadpurge
LBB0_11:
	testl	%eax, %eax
	jne	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER,8,3 ## @MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p%d: already a member of VLAN %d\n"

	.no_dead_strip	_mv88e6xxx_port_vlan_join
.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_join
_mv88e6xxx_port_vlan_join:              ; @mv88e6xxx_port_vlan_join
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cbz	x2, LBB0_9
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	sub	x8, x2, #1
	str	x8, [sp]
	str	wzr, [sp, #8]
	mov	x1, sp
	bl	_mv88e6xxx_vtu_getnext
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	cmp	x8, x20
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_11
; %bb.3:
	mov	x24, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x1, x24, #24
	mov	x0, x19
	bl	_mv88e6xxx_atu_new
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x24, #0
	mov	w22, w22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	cmp	x22, x24
	csel	x9, x21, x23, eq
	str	x9, [x8, x24, lsl #3]
	add	x24, x24, #1
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	cmp	x24, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
	str	x20, [sp]
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_mv88e6xxx_vtu_loadpurge
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_mv88e6xxx_broadcast_setup
	cbnz	w0, LBB0_10
	b	LBB0_14
LBB0_9:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	x8, [sp, #16]
	ldr	x9, [x8, w22, sxtw #3]
	cmp	x9, x21
	b.ne	LBB0_13
; %bb.12:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	bl	_dev_info
	b	LBB0_14
LBB0_13:
	sxtw	x9, w22
	str	x21, [x8, x9, lsl #3]
	mov	x1, sp
	mov	x0, x19
	bl	_mv88e6xxx_vtu_loadpurge
	cbnz	w0, LBB0_10
LBB0_14:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER,8,3 ; @MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p%d: already a member of VLAN %d\n"

	.no_dead_strip	_mv88e6xxx_port_vlan_join
.subsections_via_symbols
