	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_set_vlan
_rtl_set_vlan:                          ## @rtl_set_vlan
	.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
	movq	%rdx, %r14
	movq	%rdi, %r12
	callq	_to_rtl
	movq	%rax, %rbx
	movl	4(%r14), %r15d
	movq	_RTL_REG_EN_TAG_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	cmpq	$0, (%rbx)
	setne	%dl
	movq	%r12, %rdi
	callq	_rtl_set
	movq	_RTL_REG_EN_TAG_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, (%rbx)
	setne	%dl
	movq	%r12, %rdi
	callq	_rtl_set
	movq	_RTL_REG_EN_TAG_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, (%rbx)
	setne	%dl
	movq	%r12, %rdi
	callq	_rtl_set
	movq	_RTL_REG_VLAN_FILTER@GOTPCREL(%rip), %r13
	movq	_RTL_REG_VLAN_TAG_AWARE@GOTPCREL(%rip), %rax
	movl	%r15d, %ebx
	jmp	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_rtl_set
	movq	_RTL_REG_EN_TAG_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_rtl_set
	movq	_RTL_REG_VLAN_TAG_AWARE@GOTPCREL(%rip), %r13
	movq	_RTL_REG_EN_TAG_CLR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rtl_set
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rtl_set
	movq	_RTL8306_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	movq	_RTL8306_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %ebx
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	leaq	-48(%rbp), %rdx
	callq	_rtl_phy_save
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_NULL_VID_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_RTL_PORT_REG
	movl	$1, %r13d
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_rtl_set
	movq	_VID_INSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_RTL_PORT_REG
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	cmpl	(%r12), %ebx
	setne	%r13b
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_rtl_set
	movq	_TAG_INSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_RTL_PORT_REG
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	cmpl	(%r12), %ebx
	sete	%dl
	incl	%edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$3, %edx
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_rtl_set
	cmpl	$4, %ebx
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	leaq	-48(%rbp), %rdx
	callq	_rtl_phy_restore
	jmp	LBB0_14
LBB0_15:
	movq	_RTL_REG_VLAN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_rtl_set
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_REG_EN_TAG_OUT,4,2         ## @RTL_REG_EN_TAG_OUT
	.comm	_RTL_REG_EN_TAG_IN,4,2          ## @RTL_REG_EN_TAG_IN
	.comm	_RTL_REG_EN_TAG_CLR,4,2         ## @RTL_REG_EN_TAG_CLR
	.comm	_RTL_REG_VLAN_TAG_AWARE,4,2     ## @RTL_REG_VLAN_TAG_AWARE
	.comm	_RTL_REG_VLAN_FILTER,4,2        ## @RTL_REG_VLAN_FILTER
	.comm	_RTL8306_NUM_PORTS,4,2          ## @RTL8306_NUM_PORTS
	.comm	_NULL_VID_REPLACE,4,2           ## @NULL_VID_REPLACE
	.comm	_VID_INSERT,4,2                 ## @VID_INSERT
	.comm	_TAG_INSERT,4,2                 ## @TAG_INSERT
	.comm	_RTL_REG_VLAN_ENABLE,4,2        ## @RTL_REG_VLAN_ENABLE
	.no_dead_strip	_rtl_set_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_set_vlan
_rtl_set_vlan:                          ; @rtl_set_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x0
	bl	_to_rtl
	ldr	w21, [x20, #4]
Lloh0:
	adrp	x8, _RTL_REG_EN_TAG_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL_REG_EN_TAG_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cbz	w21, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x19
	bl	_rtl_set
Lloh3:
	adrp	x8, _RTL_REG_EN_TAG_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL_REG_EN_TAG_IN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x19
	bl	_rtl_set
Lloh6:
	adrp	x8, _RTL_REG_EN_TAG_CLR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL_REG_EN_TAG_CLR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x19
	bl	_rtl_set
Lloh9:
	adrp	x23, _RTL_REG_VLAN_FILTER@GOTPAGE
Lloh10:
	ldr	x23, [x23, _RTL_REG_VLAN_FILTER@GOTPAGEOFF]
Lloh11:
	adrp	x8, _RTL_REG_VLAN_TAG_AWARE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTL_REG_VLAN_TAG_AWARE@GOTPAGEOFF]
	mov	x22, x21
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_set
Lloh13:
	adrp	x8, _RTL_REG_EN_TAG_IN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RTL_REG_EN_TAG_IN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_set
	mov	w22, #0
Lloh16:
	adrp	x23, _RTL_REG_VLAN_TAG_AWARE@GOTPAGE
Lloh17:
	ldr	x23, [x23, _RTL_REG_VLAN_TAG_AWARE@GOTPAGEOFF]
Lloh18:
	adrp	x8, _RTL_REG_EN_TAG_CLR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RTL_REG_EN_TAG_CLR@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_rtl_set
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_rtl_set
Lloh20:
	adrp	x24, _RTL8306_NUM_PORTS@GOTPAGE
Lloh21:
	ldr	x24, [x24, _RTL8306_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.4:
	mov	w22, #0
Lloh22:
	adrp	x25, _NULL_VID_REPLACE@GOTPAGE
Lloh23:
	ldr	x25, [x25, _NULL_VID_REPLACE@GOTPAGEOFF]
Lloh24:
	adrp	x26, _VID_INSERT@GOTPAGE
Lloh25:
	ldr	x26, [x26, _VID_INSERT@GOTPAGEOFF]
	mov	w27, #1
Lloh26:
	adrp	x28, _TAG_INSERT@GOTPAGE
Lloh27:
	ldr	x28, [x28, _TAG_INSERT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ge	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #4
	b.lo	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_rtl_phy_save
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25]
	mov	x0, x22
	bl	_RTL_PORT_REG
	mov	x1, x0
	mov	w23, #1
	mov	x0, x19
	mov	w2, #1
	bl	_rtl_set
	ldr	w1, [x26]
	mov	x0, x22
	bl	_RTL_PORT_REG
	mov	x1, x0
	cbz	w21, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	cmp	w22, w8
	cset	w23, ne
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x2, x23
	bl	_rtl_set
	ldr	w1, [x28]
	mov	x0, x22
	bl	_RTL_PORT_REG
	mov	x1, x0
	cbz	w21, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	cmp	w22, w8
	cinc	w2, w27, eq
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w2, #3
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_rtl_set
	cmp	w22, #4
	b.lo	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_rtl_phy_restore
	b	LBB0_5
LBB0_15:
Lloh28:
	adrp	x8, _RTL_REG_VLAN_ENABLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RTL_REG_VLAN_ENABLE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_rtl_set
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_REG_EN_TAG_OUT,4,2         ; @RTL_REG_EN_TAG_OUT
	.comm	_RTL_REG_EN_TAG_IN,4,2          ; @RTL_REG_EN_TAG_IN
	.comm	_RTL_REG_EN_TAG_CLR,4,2         ; @RTL_REG_EN_TAG_CLR
	.comm	_RTL_REG_VLAN_TAG_AWARE,4,2     ; @RTL_REG_VLAN_TAG_AWARE
	.comm	_RTL_REG_VLAN_FILTER,4,2        ; @RTL_REG_VLAN_FILTER
	.comm	_RTL8306_NUM_PORTS,4,2          ; @RTL8306_NUM_PORTS
	.comm	_NULL_VID_REPLACE,4,2           ; @NULL_VID_REPLACE
	.comm	_VID_INSERT,4,2                 ; @VID_INSERT
	.comm	_TAG_INSERT,4,2                 ; @TAG_INSERT
	.comm	_RTL_REG_VLAN_ENABLE,4,2        ; @RTL_REG_VLAN_ENABLE
	.no_dead_strip	_rtl_set_vlan
.subsections_via_symbols
