	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_get_ports
_adm6996_get_ports:                     ## @adm6996_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_to_adm
	movq	(%r12), %rsi
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rcx,%rsi,4), %r14d
	movl	(%rax,%rsi,4), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_pr_devel
	movq	$0, 8(%r12)
	movq	_ADM_NUM_PORTS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_5
## %bb.1:
	xorl	%r10d, %r10d
	movq	_SWITCH_PORT_FLAG_TAGGED@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	cmpl	(%r9), %eax
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	btl	%eax, %r14d
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rdx
	leaq	1(%r10), %rsi
	movq	%rsi, 8(%r12)
	movl	%eax, (%rdx,%r10,8)
	andl	%r15d, %edi
	movzbl	(%r8), %ecx
	movl	$1, %ebx
	shll	%cl, %ebx
	testl	%edi, %edi
	cmovel	%edi, %ebx
	movl	%ebx, 4(%rdx,%r10,8)
	movq	%rsi, %r10
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_ports port_vlan %d\n"

	.comm	_ADM_NUM_PORTS,4,2              ## @ADM_NUM_PORTS
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ## @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_adm6996_get_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_get_ports
_adm6996_get_ports:                     ; @adm6996_get_ports
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	bl	_to_adm
	ldr	x1, [x19]
	lsl	x8, x1, #2
	ldp	x9, x10, [x0]
	ldr	w20, [x9, x8]
	ldr	w21, [x10, x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
	str	xzr, [x19, #8]
Lloh2:
	adrp	x8, _ADM_NUM_PORTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADM_NUM_PORTS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x12, #0
	mov	w9, #0
	mov	w10, #1
Lloh4:
	adrp	x11, _SWITCH_PORT_FLAG_TAGGED@GOTPAGE
Lloh5:
	ldr	x11, [x11, _SWITCH_PORT_FLAG_TAGGED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
	ldr	w13, [x8]
	cmp	w9, w13
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w13, w10, w9
	tst	w13, w20
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x19, #16]
	add	x14, x14, x12, lsl #3
	add	x12, x12, #1
	str	x12, [x19, #8]
	str	w9, [x14]
	ldr	w15, [x11]
	lsl	w15, w10, w15
	tst	w13, w21
	csel	w13, wzr, w15, eq
	str	w13, [x14, #4]
	b	LBB0_2
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_ports port_vlan %d\n"

	.comm	_ADM_NUM_PORTS,4,2              ; @ADM_NUM_PORTS
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ; @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_adm6996_get_ports
.subsections_via_symbols
