	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_vlan_get_ports
_b53_vlan_get_ports:                    ## @b53_vlan_get_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_sw_to_b53
	movq	(%rbx), %rcx
	movq	16(%rbx), %r13
	movq	(%rax), %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%rbx)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14,%rcx,8), %r12d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.2:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r15), %ebx
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%r14,%rax,8), %r12d
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%r12d, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SWITCH_PORT_FLAG_TAGGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, (%r13)
	movl	%ebx, 4(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	8(%rax)
	addq	$8, %r13
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r15d
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%r14,%rax,8), %r12d
	incl	%r15d
	jmp	LBB0_3
LBB0_9:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ## @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_b53_vlan_get_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_vlan_get_ports
_b53_vlan_get_ports:                    ; @b53_vlan_get_ports
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_sw_to_b53
	ldr	x22, [x19, #16]
	ldr	x8, [x0]
	ldr	x9, [x19]
	str	xzr, [x19, #8]
	add	x23, x8, x9, lsl #3
	ldr	w27, [x23]
	cbz	w27, LBB0_10
; %bb.1:
	ldr	w10, [x20]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.2:
	add	x8, x8, x9, lsl #3
	add	x24, x8, #4
	mov	w25, #1
Lloh0:
	adrp	x26, _SWITCH_PORT_FLAG_TAGGED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SWITCH_PORT_FLAG_TAGGED@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w25, #1
	mov	x0, x21
	bl	_BIT
	tst	w0, w27
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w27, [x24]
	mov	x0, x21
	bl	_BIT
	tst	w0, w27
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	bl	_BIT
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	w0, w21, [x22], #8
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cmp	w25, w8
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w27, [x23]
	add	w25, w25, #1
	b	LBB0_3
LBB0_10:
	mov	w0, #0
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ; @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_b53_vlan_get_ports
.subsections_via_symbols
