	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_set_ports
_adm6996_set_ports:                     ## @adm6996_set_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, %r15
	callq	_to_adm
	movq	%rax, %r14
	movq	(%rax), %r12
	movq	8(%rax), %rbx
	movq	(%r15), %r13
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_pr_devel
	movl	$0, (%r12,%r13,4)
	movl	$0, (%rbx,%r13,4)
	cmpl	$0, 8(%r15)
	jle	LBB0_5
## %bb.1:
	movq	%rbx, %r9
	movq	16(%r15), %rax
	xorl	%edx, %edx
	movq	_SWITCH_PORT_FLAG_TAGGED@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%edi, (%r12,%r13,4)
	incq	%rdx
	movslq	8(%r15), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rdx,8), %esi
	movl	(%r8), %ebx
	movzbl	(%rax,%rdx,8), %ecx
	movl	$1, %edi
	shll	%cl, %edi
	btl	%ebx, %esi
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	orl	%edi, (%r9,%r13,4)
	movzbl	(%rax,%rdx,8), %ecx
	movl	$1, %edi
	shll	%cl, %edi
	orl	%edi, 16(%r14)
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %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	"set_ports port_vlan %d ports"

	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ## @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_adm6996_set_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_set_ports
_adm6996_set_ports:                     ; @adm6996_set_ports
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_to_adm
	mov	x20, x0
	ldr	x1, [x19]
	lsl	x21, x1, #2
	ldp	x22, x23, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
	str	wzr, [x22, x21]
	str	wzr, [x23, x21]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
	ldr	x9, [x19, #16]
Lloh2:
	adrp	x10, _SWITCH_PORT_FLAG_TAGGED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SWITCH_PORT_FLAG_TAGGED@GOTPAGEOFF]
	mov	w11, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x22, x21]
	orr	w12, w13, w12
	str	w12, [x22, x21]
	add	x8, x8, #1
	ldrsw	x12, [x19, #8]
	add	x9, x9, #8
	cmp	x8, x12
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10]
	ldp	w12, w14, [x9]
	lsl	w12, w11, w12
	lsr	w13, w14, w13
	tbz	w13, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x23, x21]
	orr	w12, w13, w12
	str	w12, [x23, x21]
	ldr	w12, [x9]
	lsl	w12, w11, w12
	ldr	w13, [x20, #16]
	orr	w13, w13, w12
	str	w13, [x20, #16]
	b	LBB0_2
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_ports port_vlan %d ports"

	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ; @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_adm6996_set_ports
.subsections_via_symbols
