	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8366_init_vlan
_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_rtl8366_reset_vlan
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	cmpl	%ecx, %r15d
	jge	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %eax
	cmpl	%eax, %r15d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	notl	%edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	btsl	%r15d, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r15), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%edx, %ecx
	xorl	%r8d, %r8d
	callq	_rtl8366_set_vlan
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_rtl8366_set_pvid
	movl	%ebx, %r15d
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8366_enable_vlan            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtl8366_init_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8366_init_vlan
_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	w20, #0
	mov	w22, #1
	mov	w23, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #4]
	cmp	w20, w9
	lsl	w10, w22, w20
	lsl	w9, w22, w9
	orr	w9, w9, w10
	lsl	w8, w23, w8
	csinv	w2, w9, w8, ne
	add	w21, w20, #1
	mov	x0, x19
	mov	x1, x21
	mov	x3, x2
	mov	w4, #0
	bl	_rtl8366_set_vlan
	cbnz	w0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_rtl8366_set_pvid
	mov	x20, x21
	cbz	w0, LBB0_3
	b	LBB0_1
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtl8366_init_vlan
.subsections_via_symbols
