	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_apply_port_pvids
_adm6996_apply_port_pvids:              ## @adm6996_apply_port_pvids
	.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	%rdi, %r15
	movq	_ADM_NUM_PORTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	_adm_portcfg@GOTPCREL(%rip), %r12
	movq	_ADM6996L@GOTPCREL(%rip), %r14
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	andl	$-17, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_w16
	incq	%rbx
	movq	_ADM_NUM_PORTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_r16
	movq	_ADM_PORTCFG_PVID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	notl	%r13d
	andl	%eax, %r13d
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_ADM_PORTCFG_PVID
	orl	%r13d, %eax
	movq	(%r15), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %ecx
	btl	%ebx, %ecx
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	orl	$16, %eax
	jmp	LBB0_6
LBB0_7:
	movq	_ADM_P0_PVID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_ADM_P0_PVID_VAL
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_w16
	movq	_ADM_P1_PVID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	callq	_ADM_P1_PVID_VAL
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_w16
	movq	_ADM_OTBE_P2_PVID@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_r16
	movq	_ADM_P2_PVID_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	notl	%r14d
	andl	%eax, %r14d
	movq	16(%r15), %rax
	movl	8(%rax), %edi
	callq	_ADM_P2_PVID_VAL
	orl	%eax, %r14d
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_w16
	movq	16(%r15), %rax
	movl	12(%rax), %edi
	callq	_ADM_P3_PVID_VAL
	movl	%eax, %r14d
	movq	16(%r15), %rax
	movl	16(%rax), %edi
	callq	_ADM_P4_PVID_VAL
	orl	%eax, %r14d
	movq	_ADM_P3_P4_PVID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_w16
	movq	_ADM_P5_PVID@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_r16
	movl	(%r12), %r14d
	notl	%r14d
	andl	%eax, %r14d
	movq	16(%r15), %rax
	movl	20(%rax), %edi
	callq	_ADM_P5_PVID_VAL
	orl	%eax, %r14d
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_w16                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM_NUM_PORTS,4,2              ## @ADM_NUM_PORTS
	.comm	_adm_portcfg,8,3                ## @adm_portcfg
	.comm	_ADM_PORTCFG_PVID_MASK,4,2      ## @ADM_PORTCFG_PVID_MASK
	.comm	_ADM6996L,8,3                   ## @ADM6996L
	.comm	_ADM_P0_PVID,4,2                ## @ADM_P0_PVID
	.comm	_ADM_P1_PVID,4,2                ## @ADM_P1_PVID
	.comm	_ADM_OTBE_P2_PVID,4,2           ## @ADM_OTBE_P2_PVID
	.comm	_ADM_P2_PVID_MASK,4,2           ## @ADM_P2_PVID_MASK
	.comm	_ADM_P3_P4_PVID,4,2             ## @ADM_P3_P4_PVID
	.comm	_ADM_P5_PVID,4,2                ## @ADM_P5_PVID
	.no_dead_strip	_adm6996_apply_port_pvids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_apply_port_pvids
_adm6996_apply_port_pvids:              ; @adm6996_apply_port_pvids
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x20, _ADM_NUM_PORTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ADM_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, _adm_portcfg@GOTPAGE
Lloh3:
	ldr	x22, [x22, _adm_portcfg@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ADM_PORTCFG_PVID_MASK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ADM_PORTCFG_PVID_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x24, _ADM6996L@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ADM6996L@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_w16
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x25, x21, #2
	ldr	w1, [x8, x25]
	mov	x0, x19
	bl	_r16
	ldr	w8, [x23]
	bic	w26, w0, w8
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x25]
	bl	_ADM_PORTCFG_PVID
	orr	w2, w0, w26
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	lsr	w8, w8, w21
	and	w9, w2, #0xffffffef
	orr	w10, w2, #0x10
	tst	w8, #0x1
	csel	w2, w9, w10, eq
	b	LBB0_2
LBB0_5:
Lloh8:
	adrp	x8, _ADM_P0_PVID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADM_P0_PVID@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_ADM_P0_PVID_VAL
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_w16
Lloh11:
	adrp	x8, _ADM_P1_PVID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADM_P1_PVID@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_ADM_P1_PVID_VAL
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_w16
Lloh14:
	adrp	x20, _ADM_OTBE_P2_PVID@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ADM_OTBE_P2_PVID@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_r16
Lloh16:
	adrp	x21, _ADM_P2_PVID_MASK@GOTPAGE
Lloh17:
	ldr	x21, [x21, _ADM_P2_PVID_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	bic	w22, w0, w8
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_ADM_P2_PVID_VAL
	orr	w2, w0, w22
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w16
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #12]
	bl	_ADM_P3_PVID_VAL
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #16]
	bl	_ADM_P4_PVID_VAL
	orr	w2, w0, w20
Lloh18:
	adrp	x8, _ADM_P3_P4_PVID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADM_P3_P4_PVID@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w16
Lloh21:
	adrp	x20, _ADM_P5_PVID@GOTPAGE
Lloh22:
	ldr	x20, [x20, _ADM_P5_PVID@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_r16
	ldr	w8, [x21]
	bic	w21, w0, w8
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #20]
	bl	_ADM_P5_PVID_VAL
	orr	w2, w0, w21
	ldr	w1, [x20]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_w16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM_NUM_PORTS,4,2              ; @ADM_NUM_PORTS
	.comm	_adm_portcfg,8,3                ; @adm_portcfg
	.comm	_ADM_PORTCFG_PVID_MASK,4,2      ; @ADM_PORTCFG_PVID_MASK
	.comm	_ADM6996L,8,3                   ; @ADM6996L
	.comm	_ADM_P0_PVID,4,2                ; @ADM_P0_PVID
	.comm	_ADM_P1_PVID,4,2                ; @ADM_P1_PVID
	.comm	_ADM_OTBE_P2_PVID,4,2           ; @ADM_OTBE_P2_PVID
	.comm	_ADM_P2_PVID_MASK,4,2           ; @ADM_P2_PVID_MASK
	.comm	_ADM_P3_P4_PVID,4,2             ; @ADM_P3_P4_PVID
	.comm	_ADM_P5_PVID,4,2                ; @ADM_P5_PVID
	.no_dead_strip	_adm6996_apply_port_pvids
.subsections_via_symbols
