	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366_init_vlan              ## -- Begin function rtl8366_init_vlan
	.p2align	4, 0x90
_rtl8366_init_vlan:                     ## @rtl8366_init_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	%rdi, %r12
	callq	_rtl8366_reset_vlan
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	cmpl	%edi, %r13d
	jge	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	4(%r12), %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	4(%r12), %edi
	callq	_BIT
	movl	%eax, %r15d
	orl	%ebx, %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	leal	1(%r13), %ebx
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	callq	_dev_info
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_rtl8366_set_vlan
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	callq	_dev_info
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_rtl8366_set_pvid
	movl	%ebx, %r13d
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_8
LBB0_9:
	movq	%r12, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8366_enable_vlan            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VLAN%d port mask for port %d, %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"VLAN%d port %d, PVID set to %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366_init_vlan              ; -- Begin function rtl8366_init_vlan
	.p2align	2
_rtl8366_init_vlan:                     ; @rtl8366_init_vlan
	.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	x19, x0
	bl	_rtl8366_reset_vlan
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
	mov	w22, #0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w22, w8
	b.ge	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #4]
	cmp	w22, w9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w0, w8, #1
	mov	w1, #0
	bl	_GENMASK
	mov	x24, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_BIT
	mov	x23, x0
	ldr	w0, [x19, #4]
	bl	_BIT
	orr	w24, w0, w23
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	add	w23, w22, #1
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	bl	_dev_info
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x24
	mov	w4, #0
	bl	_rtl8366_set_vlan
	cbnz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x23
	bl	_dev_info
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_rtl8366_set_pvid
	mov	x22, x23
	cbz	w0, LBB0_3
	b	LBB0_1
LBB0_9:
	mov	x0, x19
	mov	w1, #1
	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	_rtl8366_enable_vlan
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VLAN%d port mask for port %d, %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"VLAN%d port %d, PVID set to %d\n"

.subsections_via_symbols
