	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7530_port_vlan_add
_mt7530_port_vlan_add:                  ## @mt7530_port_vlan_add
	.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
	movq	%rdx, %r14
	movl	%esi, %r12d
	movl	(%rdx), %r13d
	movq	_BRIDGE_VLAN_INFO_UNTAGGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_BRIDGE_VLAN_INFO_PVID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %r15
	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:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rbx
	cmpq	16(%r14), %rbx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jg	LBB0_4
## %bb.2:
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_mt7530_hw_vlan_entry_init
	movq	_mt7530_hw_vlan_add@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mt7530_hw_vlan_update
	leaq	1(%rbx), %rax
	cmpq	16(%r14), %rbx
	movq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	%r14, %rbx
	movl	%r12d, %edi
	callq	_MT7530_PPBV1_P
	movl	%eax, %r14d
	movq	_G0_PORT_VID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	16(%rbx), %rdi
	callq	_G0_PORT_VID
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_mt7530_rmw
	movq	16(%rbx), %rax
	movq	8(%r13), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
LBB0_6:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIDGE_VLAN_INFO_UNTAGGED,4,2  ## @BRIDGE_VLAN_INFO_UNTAGGED
	.comm	_BRIDGE_VLAN_INFO_PVID,4,2      ## @BRIDGE_VLAN_INFO_PVID
	.comm	_mt7530_hw_vlan_add,4,2         ## @mt7530_hw_vlan_add
	.comm	_G0_PORT_VID_MASK,4,2           ## @G0_PORT_VID_MASK
	.no_dead_strip	_mt7530_port_vlan_add
.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_add
_mt7530_port_vlan_add:                  ; @mt7530_port_vlan_add
	.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	x19, x2
	mov	x21, x1
	ldr	w23, [x2]
Lloh0:
	adrp	x8, _BRIDGE_VLAN_INFO_UNTAGGED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRIDGE_VLAN_INFO_UNTAGGED@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _BRIDGE_VLAN_INFO_PVID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRIDGE_VLAN_INFO_PVID@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldp	x8, x20, [x0]
	add	x0, x8, w1, sxtw #2
	bl	_dsa_port_is_vlan_filtering
	cbz	w0, LBB0_7
; %bb.1:
	and	w24, w22, w23
	mov	x0, x20
	bl	_mutex_lock
	ldp	x22, x8, [x19, #8]
	cmp	x22, x8
	b.gt	LBB0_4
; %bb.2:
	and	w23, w25, w23
Lloh6:
	adrp	x25, _mt7530_hw_vlan_add@GOTPAGE
Lloh7:
	ldr	x25, [x25, _mt7530_hw_vlan_add@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x23
	bl	_mt7530_hw_vlan_entry_init
	ldr	w3, [x25]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_mt7530_hw_vlan_update
	add	x8, x22, #1
	ldr	x9, [x19, #16]
	cmp	x22, x9
	mov	x22, x8
	b.lt	LBB0_3
LBB0_4:
	cbz	w24, LBB0_6
; %bb.5:
	sxtw	x23, w21
	mov	x0, x21
	bl	_MT7530_PPBV1_P
	mov	x21, x0
Lloh8:
	adrp	x8, _G0_PORT_VID_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _G0_PORT_VID_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	x0, [x19, #16]
	bl	_G0_PORT_VID
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_mt7530_rmw
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #8]
	str	x8, [x9, x23, lsl #3]
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIDGE_VLAN_INFO_UNTAGGED,4,2  ; @BRIDGE_VLAN_INFO_UNTAGGED
	.comm	_BRIDGE_VLAN_INFO_PVID,4,2      ; @BRIDGE_VLAN_INFO_PVID
	.comm	_mt7530_hw_vlan_add,4,2         ; @mt7530_hw_vlan_add
	.comm	_G0_PORT_VID_MASK,4,2           ; @G0_PORT_VID_MASK
	.no_dead_strip	_mt7530_port_vlan_add
.subsections_via_symbols
