	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7530_port_set_vlan_unaware
_mt7530_port_set_vlan_unaware:          ## @mt7530_port_set_vlan_unaware
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	%esi, %edi
	callq	_MT7530_PCR_P
	movq	_PCR_PORT_VLAN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MT7530_PORT_MATRIX_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt7530_rmw
	movl	%ebx, %edi
	callq	_MT7530_PVC_P
	movl	%eax, %r12d
	movq	_VLAN_ATTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MT7530_VLAN_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VLAN_ATTR
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_mt7530_rmw
	movq	_MT7530_NUM_PORTS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dsa_is_user_port
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	addq	%r13, %rdi
	callq	_dsa_port_is_vlan_filtering
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MT7530_CPU_PORT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_MT7530_PCR_P
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_dsa_user_ports
	movl	%eax, %edi
	callq	_PCR_MATRIX
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mt7530_write
	movl	(%r15), %edi
	callq	_MT7530_PVC_P
	movq	_PORT_SPEC_TAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7530_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCR_PORT_VLAN_MASK,4,2         ## @PCR_PORT_VLAN_MASK
	.comm	_MT7530_PORT_MATRIX_MODE,4,2    ## @MT7530_PORT_MATRIX_MODE
	.comm	_VLAN_ATTR_MASK,4,2             ## @VLAN_ATTR_MASK
	.comm	_MT7530_VLAN_TRANSPARENT,4,2    ## @MT7530_VLAN_TRANSPARENT
	.comm	_MT7530_NUM_PORTS,4,2           ## @MT7530_NUM_PORTS
	.comm	_MT7530_CPU_PORT,4,2            ## @MT7530_CPU_PORT
	.comm	_PORT_SPEC_TAG,4,2              ## @PORT_SPEC_TAG
	.no_dead_strip	_mt7530_port_set_vlan_unaware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7530_port_set_vlan_unaware
_mt7530_port_set_vlan_unaware:          ; @mt7530_port_set_vlan_unaware
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x1
	bl	_MT7530_PCR_P
	mov	x1, x0
Lloh0:
	adrp	x8, _PCR_PORT_VLAN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCR_PORT_VLAN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _MT7530_PORT_MATRIX_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT7530_PORT_MATRIX_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_mt7530_rmw
	mov	x0, x21
	bl	_MT7530_PVC_P
	mov	x21, x0
Lloh6:
	adrp	x8, _VLAN_ATTR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VLAN_ATTR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _MT7530_VLAN_TRANSPARENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT7530_VLAN_TRANSPARENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_VLAN_ATTR
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_mt7530_rmw
Lloh12:
	adrp	x22, _MT7530_NUM_PORTS@GOTPAGE
Lloh13:
	ldr	x22, [x22, _MT7530_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x23, #0
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_dsa_is_user_port
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	add	x0, x8, x23
	bl	_dsa_port_is_vlan_filtering
	cbz	x0, LBB0_2
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh14:
	adrp	x21, _MT7530_CPU_PORT@GOTPAGE
Lloh15:
	ldr	x21, [x21, _MT7530_CPU_PORT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_MT7530_PCR_P
	mov	x20, x0
	ldr	w0, [x19]
	bl	_dsa_user_ports
	bl	_PCR_MATRIX
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mt7530_write
	ldr	w0, [x21]
	bl	_MT7530_PVC_P
	mov	x1, x0
Lloh16:
	adrp	x8, _PORT_SPEC_TAG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PORT_SPEC_TAG@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mt7530_write
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PCR_PORT_VLAN_MASK,4,2         ; @PCR_PORT_VLAN_MASK
	.comm	_MT7530_PORT_MATRIX_MODE,4,2    ; @MT7530_PORT_MATRIX_MODE
	.comm	_VLAN_ATTR_MASK,4,2             ; @VLAN_ATTR_MASK
	.comm	_MT7530_VLAN_TRANSPARENT,4,2    ; @MT7530_VLAN_TRANSPARENT
	.comm	_MT7530_NUM_PORTS,4,2           ; @MT7530_NUM_PORTS
	.comm	_MT7530_CPU_PORT,4,2            ; @MT7530_CPU_PORT
	.comm	_PORT_SPEC_TAG,4,2              ; @PORT_SPEC_TAG
	.no_dead_strip	_mt7530_port_set_vlan_unaware
.subsections_via_symbols
