	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366_sw_get_vlan_ports      ## -- Begin function rtl8366_sw_get_vlan_ports
	.p2align	4, 0x90
_rtl8366_sw_get_vlan_ports:             ## @rtl8366_sw_get_vlan_ports
	.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	%rsi, %r14
	callq	_sw_to_rtl8366_smi
	movq	%rax, %r15
	movq	8(%rax), %rax
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rax
	movl	16(%r14), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%rax)
	movq	8(%r14), %r12
	movq	$0, (%r14)
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 4(%r12)
	incq	(%r14)
	addq	$8, %r12
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %r13d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, (%r12)
	movl	-44(%rbp), %r13d
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%r13d, %ecx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_SWITCH_PORT_FLAG_TAGGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ## @SWITCH_PORT_FLAG_TAGGED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366_sw_get_vlan_ports      ; -- Begin function rtl8366_sw_get_vlan_ports
	.p2align	2
_rtl8366_sw_get_vlan_ports:             ; @rtl8366_sw_get_vlan_ports
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	bl	_sw_to_rtl8366_smi
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	ldr	w1, [x19, #16]
	blr	x8
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w1, [x19, #16]
	add	x2, sp, #8
	mov	x0, x20
	blr	x8
	ldr	x22, [x19, #8]
	str	xzr, [x19]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	w21, #0
Lloh0:
	adrp	x23, _SWITCH_PORT_FLAG_TAGGED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SWITCH_PORT_FLAG_TAGGED@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x22, #4]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	add	x22, x22, #8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [sp, #8]
	mov	x0, x21
	bl	_BIT
	tst	w0, w24
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w21, [x22]
	ldr	w24, [sp, #12]
	mov	x0, x21
	bl	_BIT
	tst	w0, w24
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23]
	bl	_BIT
	b	LBB0_4
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ; @SWITCH_PORT_FLAG_TAGGED
.subsections_via_symbols
