	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8366_set_vlan
_rtl8366_set_vlan:                      ## @rtl8366_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	leaq	-72(%rbp), %rdx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r12, -56(%rbp)
	movq	%r15, -64(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -72(%rbp)
	movq	8(%rbx), %rax
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_2
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	leaq	-104(%rbp), %rdx
	callq	*16(%rax)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r13d, -104(%rbp)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	xorl	%eax, %eax
	cmpl	(%rbx), %r14d
	jl	LBB0_5
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	%r12, -80(%rbp)
	movq	%r15, -88(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -96(%rbp)
	movq	8(%rbx), %rax
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*24(%rax)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtl8366_set_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8366_set_vlan
_rtl8366_set_vlan:                      ; @rtl8366_set_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x2, sp, #40
	blr	x8
	cbnz	w0, LBB0_2
; %bb.1:
	stp	x21, x22, [sp, #48]
	str	x20, [sp, #40]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x1, sp, #40
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x24
	blr	x8
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, w23
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	add	w24, w24, #1
	ldr	w8, [x19]
	cmp	w24, w8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_2
LBB0_9:
	stp	x21, x22, [sp, #24]
	str	x20, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #24]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x24
	blr	x8
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtl8366_set_vlan
.subsections_via_symbols
