	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_port_vlan_leave
_mv88e6xxx_port_vlan_leave:             ## @mv88e6xxx_port_vlan_leave
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-1(%rdx), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -56(%rbp)
	leaq	-64(%rbp), %rsi
	callq	_mv88e6xxx_vtu_getnext
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	cmpq	%rbx, -64(%rbp)
	jne	LBB0_1
## %bb.4:
	cmpl	$0, -56(%rbp)
	je	LBB0_1
## %bb.5:
	movq	-48(%rbp), %rax
	movslq	%r14d, %rcx
	movq	_MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	cmpq	%rdx, (%rax,%rcx,8)
	jne	LBB0_6
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rdx, (%rax,%rcx,8)
	movl	$0, -56(%rbp)
	movq	%r15, %rdi
	callq	_mv88e6xxx_num_ports
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movq	(%rax,%rbx,8), %rax
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_mv88e6xxx_num_ports
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
	jmp	LBB0_11
LBB0_10:
	movl	$1, -56(%rbp)
LBB0_11:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mv88e6xxx_vtu_loadpurge
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	-40(%rbp), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_mv88e6xxx_g1_atu_remove
	jmp	LBB0_13
	.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
	.no_dead_strip	_mv88e6xxx_port_vlan_leave
.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_leave
_mv88e6xxx_port_vlan_leave:             ; @mv88e6xxx_port_vlan_leave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x2, LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	sub	x8, x2, #1
	str	x8, [sp]
	str	wzr, [sp, #8]
	mov	x1, sp
	bl	_mv88e6xxx_vtu_getnext
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	cmp	x8, x21
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [sp, #16]
	ldr	x10, [x8, w19, sxtw #3]
Lloh0:
	adrp	x21, _MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_NON_MEMBER@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x10, x9
	b.ne	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	sxtw	x10, w19
	str	x9, [x8, x10, lsl #3]
	str	wzr, [sp, #8]
	mov	x0, x20
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_mv88e6xxx_num_ports
	cmp	x22, w0, sxtw
	b.lt	LBB0_8
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [sp, #8]
LBB0_11:
	mov	x1, sp
	mov	x0, x20
	bl	_mv88e6xxx_vtu_loadpurge
	cbnz	w0, LBB0_5
; %bb.12:
	ldr	w1, [sp, #24]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #0
	bl	_mv88e6xxx_g1_atu_remove
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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
	.no_dead_strip	_mv88e6xxx_port_vlan_leave
.subsections_via_symbols
