	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8366_set_pvid
_rtl8366_set_pvid:                      ## @rtl8366_set_pvid
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	cmpl	$0, (%rdi)
	jle	LBB0_21
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, -64(%rbp)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.7:
	testl	%eax, %eax
	jle	LBB0_21
## %bb.8:
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r12d
	movl	(%r13), %eax
	cmpl	%eax, %r12d
	jge	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, -64(%rbp)
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, -56(%rbp)
	jne	LBB0_15
LBB0_12:
	movq	8(%r13), %rax
	leaq	-88(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	*24(%rax)
	testl	%eax, %eax
	jne	LBB0_22
## %bb.13:
	movl	%r15d, -64(%rbp)
	movups	-88(%rbp), %xmm0
	movups	%xmm0, -56(%rbp)
	movq	8(%r13), %rax
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_22
## %bb.14:
	movq	8(%r13), %rax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	*16(%rax)
	jmp	LBB0_22
LBB0_4:
	movq	8(%r13), %rax
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_22
## %bb.5:
	movq	8(%r13), %rax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	*16(%rax)
	jmp	LBB0_22
LBB0_16:
	testl	%eax, %eax
	jle	LBB0_21
## %bb.17:
	xorl	%r12d, %r12d
	leaq	-68(%rbp), %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_rtl8366_mc_is_used
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$0, -68(%rbp)
	je	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	incl	%r12d
	cmpl	(%r13), %r12d
	jl	LBB0_18
LBB0_21:
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"all VLAN member configurations are in use\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_rtl8366_set_pvid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8366_set_pvid
_rtl8366_set_pvid:                      ; @rtl8366_set_pvid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x22
	blr	x8
	cbnz	w0, LBB0_20
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #24]
	cmp	w8, w21
	b.eq	LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20]
	cmp	w22, w8
	b.lt	LBB0_2
; %bb.5:
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:
	mov	w22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x22
	blr	x8
	cbnz	w0, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #24]
	ldr	x9, [sp, #32]
	cmp	w8, #0
	ccmp	x9, #0, #0, eq
	b.eq	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20]
	cmp	w22, w8
	b.lt	LBB0_7
; %bb.10:
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	w22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #4
	mov	x0, x20
	mov	x1, x22
	bl	_rtl8366_mc_is_used
	cbnz	w0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20]
	cmp	w22, w8
	b.lt	LBB0_12
LBB0_15:
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_16:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #24]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	blr	x8
	cbnz	w0, LBB0_20
; %bb.17:
	str	w21, [sp, #24]
	ldr	x8, [sp, #8]
	str	x8, [sp, #32]
	ldr	d0, [sp, #16]
	str	d0, [sp, #40]
LBB0_18:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x22
	blr	x8
	cbnz	w0, LBB0_20
; %bb.19:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	blr	x8
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"all VLAN member configurations are in use\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_rtl8366_set_pvid
.subsections_via_symbols
