	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_perform_reset
_adm6996_perform_reset:                 ## @adm6996_perform_reset
	.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, %r14
	movq	_ADM_NUM_PORTS@GOTPCREL(%rip), %r12
	cmpl	$2, (%r12)
	jl	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_adm_portcfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %r15d
	movq	_ADM_PORTCFG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%edi, %edi
	callq	_ADM_PORTCFG_PVID
	orl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_w16
	incq	%rbx
	movslq	(%r12), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_adm_portcfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	20(%rax), %esi
	movq	_ADM_PORTCFG_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_w16
	movq	(%r14), %rax
	movq	_ADM6996M@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	sete	%cl
	movq	_ADM6996FC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	cmpb	$1, %al
	jne	LBB0_7
## %bb.4:
	movq	_ADM_PHY_PORTS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_ADM_PHYCFG_INIT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ADM_PHY_PORT
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_w16
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_6
LBB0_7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	_ADM_NUM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.8:
	movq	32(%r14), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_9:
	movq	_ADM_NUM_VLANS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.10:
	movq	8(%r14), %rcx
	movq	16(%r14), %rdx
	movq	24(%r14), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, (%rcx,%rdi,4)
	movq	$0, (%rsi,%rdi,8)
	movq	$0, (%rdx,%rdi,8)
	incq	%rdi
	movslq	(%rax), %rbx
	cmpq	%rbx, %rdi
	jl	LBB0_11
LBB0_12:
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.13:
	movq	_ADM_VLAN_PRIOMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_w16
	movq	%r14, %rdi
	callq	_adm6996_disable_vlan
	jmp	LBB0_16
LBB0_14:
	movq	_ADM6996L@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	movq	_ADM_VLAN_PRIOMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_w16
	movq	%r14, %rdi
	callq	_adm6996_disable_vlan_6996l
LBB0_16:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adm6996_apply_port_pvids       ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM_NUM_PORTS,4,2              ## @ADM_NUM_PORTS
	.comm	_adm_portcfg,8,3                ## @adm_portcfg
	.comm	_ADM_PORTCFG_INIT,4,2           ## @ADM_PORTCFG_INIT
	.comm	_ADM_PORTCFG_CPU,4,2            ## @ADM_PORTCFG_CPU
	.comm	_ADM6996M,8,3                   ## @ADM6996M
	.comm	_ADM6996FC,8,3                  ## @ADM6996FC
	.comm	_ADM_PHY_PORTS,4,2              ## @ADM_PHY_PORTS
	.comm	_ADM_PHYCFG_INIT,4,2            ## @ADM_PHYCFG_INIT
	.comm	_ADM_NUM_VLANS,4,2              ## @ADM_NUM_VLANS
	.comm	_ADM_VLAN_PRIOMAP,4,2           ## @ADM_VLAN_PRIOMAP
	.comm	_ADM6996L,8,3                   ## @ADM6996L
	.no_dead_strip	_adm6996_perform_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_perform_reset
_adm6996_perform_reset:                 ; @adm6996_perform_reset
	.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	x21, _ADM_NUM_PORTS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ADM_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _adm_portcfg@GOTPAGE
Lloh3:
	ldr	x22, [x22, _adm_portcfg@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
Lloh4:
	adrp	x24, _ADM_PORTCFG_INIT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ADM_PORTCFG_INIT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w20, [x8, x23, lsl #2]
	ldr	w25, [x24]
	mov	w0, #0
	bl	_ADM_PORTCFG_PVID
	orr	w2, w0, w25
	mov	x0, x19
	mov	x1, x20
	bl	_w16
	add	x23, x23, #1
	ldrsw	x8, [x21]
	sub	x8, x8, #1
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x22]
	ldr	w1, [x8, #20]
Lloh6:
	adrp	x8, _ADM_PORTCFG_CPU@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADM_PORTCFG_CPU@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_w16
	ldr	x8, [x19]
Lloh9:
	adrp	x22, _ADM6996M@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ADM6996M@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh11:
	adrp	x10, _ADM6996FC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ADM6996FC@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh14:
	adrp	x23, _ADM_PHY_PORTS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _ADM_PHY_PORTS@GOTPAGEOFF]
	ldr	w8, [x23]
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #0
Lloh16:
	adrp	x24, _ADM_PHYCFG_INIT@GOTPAGE
Lloh17:
	ldr	x24, [x24, _ADM_PHYCFG_INIT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ADM_PHY_PORT
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x19
	bl	_w16
	add	w20, w20, #1
	ldr	w8, [x23]
	cmp	w20, w8
	b.lt	LBB0_5
LBB0_6:
	stp	xzr, xzr, [x19, #40]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.7:
	ldr	x0, [x19, #32]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_8:
Lloh18:
	adrp	x8, _ADM_NUM_VLANS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADM_NUM_VLANS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x9, #0
	ldp	x12, x10, [x19, #16]
	ldr	x11, [x19, #8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w9, [x11, x9, lsl #2]
	lsl	x13, x9, #3
	str	xzr, [x10, x13]
	str	xzr, [x12, x13]
	add	x9, x9, #1
	ldrsw	x13, [x8]
	cmp	x9, x13
	b.lt	LBB0_10
LBB0_11:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
Lloh20:
	adrp	x8, _ADM_VLAN_PRIOMAP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADM_VLAN_PRIOMAP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_w16
	mov	x0, x19
	bl	_adm6996_disable_vlan
	b	LBB0_15
LBB0_13:
Lloh23:
	adrp	x9, _ADM6996L@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ADM6996L@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
Lloh26:
	adrp	x8, _ADM_VLAN_PRIOMAP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ADM_VLAN_PRIOMAP@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_w16
	mov	x0, x19
	bl	_adm6996_disable_vlan_6996l
LBB0_15:
	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	_adm6996_apply_port_pvids
LBB0_16:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM_NUM_PORTS,4,2              ; @ADM_NUM_PORTS
	.comm	_adm_portcfg,8,3                ; @adm_portcfg
	.comm	_ADM_PORTCFG_INIT,4,2           ; @ADM_PORTCFG_INIT
	.comm	_ADM_PORTCFG_CPU,4,2            ; @ADM_PORTCFG_CPU
	.comm	_ADM6996M,8,3                   ; @ADM6996M
	.comm	_ADM6996FC,8,3                  ; @ADM6996FC
	.comm	_ADM_PHY_PORTS,4,2              ; @ADM_PHY_PORTS
	.comm	_ADM_PHYCFG_INIT,4,2            ; @ADM_PHYCFG_INIT
	.comm	_ADM_NUM_VLANS,4,2              ; @ADM_NUM_VLANS
	.comm	_ADM_VLAN_PRIOMAP,4,2           ; @ADM_VLAN_PRIOMAP
	.comm	_ADM6996L,8,3                   ; @ADM6996L
	.no_dead_strip	_adm6996_perform_reset
.subsections_via_symbols
