	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7530_port_vlan_del
_mt7530_port_vlan_del:                  ## @mt7530_port_vlan_del
	.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, %r12
	movq	8(%rdi), %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rbx
	leaq	(,%rbx,4), %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	callq	_dsa_port_is_vlan_filtering
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %r15
	movq	8(%r14), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %r13
	movq	(%r12), %rbx
	cmpq	8(%r12), %rbx
	jle	LBB0_2
LBB0_6:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MT7530_PPBV1_P
	movq	_G0_PORT_VID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r13, %rcx
	callq	_mt7530_rmw
	movq	8(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%rax,%rcx,8)
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_7:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-64(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %rax
	cmpq	8(%r12), %rbx
	movq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_mt7530_hw_vlan_entry_init
	movq	_mt7530_hw_vlan_del@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_mt7530_hw_vlan_update
	cmpq	%r13, %rbx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_G0_PORT_VID_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_mt7530_hw_vlan_del,4,2         ## @mt7530_hw_vlan_del
	.comm	_G0_PORT_VID_DEF,8,3            ## @G0_PORT_VID_DEF
	.comm	_G0_PORT_VID_MASK,4,2           ## @G0_PORT_VID_MASK
	.no_dead_strip	_mt7530_port_vlan_del
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7530_port_vlan_del
_mt7530_port_vlan_del:                  ; @mt7530_port_vlan_del
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	ldp	x8, x19, [x0]
	add	x0, x8, w1, sxtw #2
	bl	_dsa_port_is_vlan_filtering
	cbz	w0, LBB0_5
; %bb.1:
	sxtw	x24, w20
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x24, lsl #3]
	ldp	x23, x8, [x21]
	cmp	x23, x8
	b.gt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x25, _mt7530_hw_vlan_del@GOTPAGE
Lloh1:
	ldr	x25, [x25, _mt7530_hw_vlan_del@GOTPAGEOFF]
Lloh2:
	adrp	x26, _G0_PORT_VID_DEF@GOTPAGE
Lloh3:
	ldr	x26, [x26, _G0_PORT_VID_DEF@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #0
	bl	_mt7530_hw_vlan_entry_init
	ldr	w3, [x25]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x23
	bl	_mt7530_hw_vlan_update
	ldr	x8, [x26]
	cmp	x23, x22
	csel	x22, x8, x22, eq
	add	x8, x23, #1
	ldr	x9, [x21, #8]
	cmp	x23, x9
	mov	x23, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_MT7530_PPBV1_P
	mov	x1, x0
Lloh4:
	adrp	x8, _G0_PORT_VID_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _G0_PORT_VID_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	_mt7530_rmw
	ldr	x8, [x19, #8]
	str	x22, [x8, x24, lsl #3]
	mov	x0, x19
	bl	_mutex_unlock
LBB0_5:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_mt7530_hw_vlan_del,4,2         ; @mt7530_hw_vlan_del
	.comm	_G0_PORT_VID_DEF,8,3            ; @G0_PORT_VID_DEF
	.comm	_G0_PORT_VID_MASK,4,2           ; @G0_PORT_VID_MASK
	.no_dead_strip	_mt7530_port_vlan_del
.subsections_via_symbols
