	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm6996_switch_init
_adm6996_switch_init:                   ## @adm6996_switch_init
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_ADM_VID_CHECK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_r16
	movl	%eax, %r12d
	movl	%eax, %r13d
	xorl	$4096, %r13d                    ## imm = 0x1000
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_w16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_r16
	xorl	%r13d, %eax
	testl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_2
## %bb.3:
	movq	_ADM6996M@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_w16
	movq	(%rbx), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_ADM6996FC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_4:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_5:
	movq	_adm6996_model_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movl	%edx, 24(%rbx)
	movq	_ADM_CPU_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rbx)
	movq	_ADM_NUM_PORTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rbx)
	movq	_ADM_NUM_VLANS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	movq	_adm6996_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%rbx)
	movq	%r15, 16(%rbx)
	movq	_ADM6996L@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_pr_info
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_adm6996_perform_reset
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	(%rbx), %rax
	movq	_ADM6996M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	cmpq	(%r14), %rax
	je	LBB0_10
## %bb.9:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	addq	$16, %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_register_switch                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM_VID_CHECK,4,2              ## @ADM_VID_CHECK
	.comm	_ADM6996FC,8,3                  ## @ADM6996FC
	.comm	_ADM6996M,8,3                   ## @ADM6996M
	.comm	_adm6996_model_name,8,3         ## @adm6996_model_name
	.comm	_ADM_CPU_PORT,4,2               ## @ADM_CPU_PORT
	.comm	_ADM_NUM_PORTS,4,2              ## @ADM_NUM_PORTS
	.comm	_ADM_NUM_VLANS,4,2              ## @ADM_NUM_VLANS
	.comm	_adm6996_ops,16,3               ## @adm6996_ops
	.comm	_ADM6996L,8,3                   ## @ADM6996L
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s model PHY found.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_adm6996_switch_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm6996_switch_init
_adm6996_switch_init:                   ; @adm6996_switch_init
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _ADM6996M@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ADM6996M@GOTPAGEOFF]
	cbnz	x8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x25, _ADM_VID_CHECK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ADM_VID_CHECK@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_r16
	mov	x22, x0
	eor	w23, w0, #0x1000
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x23
	bl	_w16
	ldr	w1, [x25]
	mov	x0, x20
	bl	_r16
	eor	w8, w0, w23
	tbnz	w8, #12, LBB0_3
; %bb.2:
	ldr	x8, [x24]
	str	x8, [x20]
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x22
	bl	_w16
	ldr	x8, [x20]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _ADM6996FC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ADM6996FC@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_4:
	mov	x22, x20
	str	x21, [x22, #16]!
Lloh7:
	adrp	x9, _adm6996_model_name@GOTPAGE
Lloh8:
	ldr	x9, [x9, _adm6996_model_name@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w2, [x9, x8, lsl #2]
Lloh10:
	adrp	x9, _ADM_CPU_PORT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADM_CPU_PORT@GOTPAGEOFF]
	str	w2, [x22, #8]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x22, #32]
Lloh13:
	adrp	x9, _ADM_NUM_PORTS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ADM_NUM_PORTS@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x9]
Lloh16:
	adrp	x9, _ADM_NUM_VLANS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ADM_NUM_VLANS@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x9]
Lloh19:
	adrp	x9, _adm6996_ops@GOTPAGE
Lloh20:
	ldr	x9, [x9, _adm6996_ops@GOTPAGEOFF]
	stp	w11, w10, [x22, #24]
	str	x9, [x22, #16]
Lloh21:
	adrp	x23, _ADM6996L@GOTPAGE
Lloh22:
	ldr	x23, [x23, _ADM6996L@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.5:
	stp	xzr, xzr, [x9]
LBB0_6:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_info
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	bl	_adm6996_perform_reset
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.7:
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_9:
	mov	x0, x22
	mov	x1, 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	_register_switch
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM_VID_CHECK,4,2              ; @ADM_VID_CHECK
	.comm	_ADM6996FC,8,3                  ; @ADM6996FC
	.comm	_ADM6996M,8,3                   ; @ADM6996M
	.comm	_adm6996_model_name,8,3         ; @adm6996_model_name
	.comm	_ADM_CPU_PORT,4,2               ; @ADM_CPU_PORT
	.comm	_ADM_NUM_PORTS,4,2              ; @ADM_NUM_PORTS
	.comm	_ADM_NUM_VLANS,4,2              ; @ADM_NUM_VLANS
	.comm	_adm6996_ops,16,3               ; @adm6996_ops
	.comm	_ADM6996L,8,3                   ; @ADM6996L
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s model PHY found.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_adm6996_switch_init
.subsections_via_symbols
