	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_post_phy_linkchg         ## -- Begin function atl1c_post_phy_linkchg
	.p2align	4, 0x90
_atl1c_post_phy_linkchg:                ## @atl1c_post_phy_linkchg
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_athr_l2c_b@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_athr_l2c_b2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%cl, %dl
	movq	_athr_l1d@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%bl
	orb	%dl, %bl
	movq	_athr_l1d_2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	sete	%r12b
	orb	%bl, %r12b
	movq	_SPEED_0@GOTPCREL(%rip), %rdx
	cmpq	%rsi, (%rdx)
	jne	LBB0_1
## %bb.9:
	testb	%r12b, %r12b
	je	LBB0_11
## %bb.10:
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.12:
	movq	_MIIDBG_SYSMODCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SYSMODCTRL_IECHOADJ_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_atl1c_write_phy_dbg
	movq	_MIIDBG_MSE16DB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L1D_MSE16DB_DOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atl1c_write_phy_dbg            ## TAILCALL
LBB0_1:
	movq	%rsi, %r15
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.2:
	movq	_MIIEXT_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MIIEXT_CLDCTRL6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	callq	_atl1c_read_phy_ext
	movq	-40(%rbp), %rdi
	movq	_CLDCTRL6_CAB_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FIELD_GETX
	movq	_CLDCTRL6_CAB_LEN_SHORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.4:
	movq	_AZ_ANADECT_LONG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_AZ_ANADECT_DEF@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rdx
	movq	%rdx, -40(%rbp)
	movq	_MIIDBG_AZ_ANADECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atl1c_write_phy_dbg
LBB0_6:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	sete	%al
	andb	%al, %r12b
	cmpb	$1, %r12b
	jne	LBB0_11
## %bb.7:
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.8:
	movq	_MIIDBG_MSE16DB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L1D_MSE16DB_UP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_atl1c_write_phy_dbg
	movq	_MIIDBG_SYSMODCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L1D_SYSMODCTRL_IECHOADJ_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_atl1c_write_phy_dbg
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_athr_l2c_b,8,3                 ## @athr_l2c_b
	.comm	_athr_l2c_b2,8,3                ## @athr_l2c_b2
	.comm	_athr_l1d,8,3                   ## @athr_l1d
	.comm	_athr_l1d_2,8,3                 ## @athr_l1d_2
	.comm	_SPEED_0,8,3                    ## @SPEED_0
	.comm	_MIIEXT_PCS,4,2                 ## @MIIEXT_PCS
	.comm	_MIIEXT_CLDCTRL6,4,2            ## @MIIEXT_CLDCTRL6
	.comm	_CLDCTRL6_CAB_LEN,4,2           ## @CLDCTRL6_CAB_LEN
	.comm	_CLDCTRL6_CAB_LEN_SHORT,8,3     ## @CLDCTRL6_CAB_LEN_SHORT
	.comm	_AZ_ANADECT_LONG,8,3            ## @AZ_ANADECT_LONG
	.comm	_AZ_ANADECT_DEF,8,3             ## @AZ_ANADECT_DEF
	.comm	_MIIDBG_AZ_ANADECT,4,2          ## @MIIDBG_AZ_ANADECT
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_MIIDBG_MSE16DB,4,2             ## @MIIDBG_MSE16DB
	.comm	_L1D_MSE16DB_UP,8,3             ## @L1D_MSE16DB_UP
	.comm	_MIIDBG_SYSMODCTRL,4,2          ## @MIIDBG_SYSMODCTRL
	.comm	_L1D_SYSMODCTRL_IECHOADJ_DEF,8,3 ## @L1D_SYSMODCTRL_IECHOADJ_DEF
	.comm	_SYSMODCTRL_IECHOADJ_DEF,8,3    ## @SYSMODCTRL_IECHOADJ_DEF
	.comm	_L1D_MSE16DB_DOWN,8,3           ## @L1D_MSE16DB_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_post_phy_linkchg         ; -- Begin function atl1c_post_phy_linkchg
	.p2align	2
_atl1c_post_phy_linkchg:                ; @atl1c_post_phy_linkchg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _athr_l2c_b@GOTPAGE
Lloh1:
	ldr	x9, [x9, _athr_l2c_b@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _athr_l2c_b2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _athr_l2c_b2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _athr_l1d@GOTPAGE
Lloh7:
	ldr	x10, [x10, _athr_l1d@GOTPAGEOFF]
	ccmp	x8, x9, #4, ne
Lloh8:
	ldr	x9, [x10]
	ccmp	x8, x9, #4, ne
Lloh9:
	adrp	x9, _athr_l1d_2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _athr_l1d_2@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w21, eq
Lloh12:
	adrp	x10, _SPEED_0@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SPEED_0@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x10, x1
	b.ne	LBB0_4
; %bb.1:
	cbz	w21, LBB0_9
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.3:
Lloh15:
	adrp	x8, _MIIDBG_SYSMODCTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIIDBG_SYSMODCTRL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _SYSMODCTRL_IECHOADJ_DEF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SYSMODCTRL_IECHOADJ_DEF@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_atl1c_write_phy_dbg
Lloh21:
	adrp	x8, _MIIDBG_MSE16DB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MIIDBG_MSE16DB@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _L1D_MSE16DB_DOWN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _L1D_MSE16DB_DOWN@GOTPAGEOFF]
Lloh26:
	ldr	x2, [x8]
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_atl1c_write_phy_dbg
LBB0_4:
	mov	x20, x1
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh27:
	adrp	x8, _MIIEXT_PCS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MIIEXT_PCS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _MIIEXT_CLDCTRL6@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MIIEXT_CLDCTRL6@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_atl1c_read_phy_ext
	ldr	x0, [sp, #8]
Lloh33:
	adrp	x8, _CLDCTRL6_CAB_LEN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CLDCTRL6_CAB_LEN@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_FIELD_GETX
Lloh36:
	adrp	x8, _CLDCTRL6_CAB_LEN_SHORT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CLDCTRL6_CAB_LEN_SHORT@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
Lloh39:
	adrp	x9, _AZ_ANADECT_LONG@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AZ_ANADECT_LONG@GOTPAGEOFF]
Lloh41:
	adrp	x10, _AZ_ANADECT_DEF@GOTPAGE
Lloh42:
	ldr	x10, [x10, _AZ_ANADECT_DEF@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, gt
	ldr	x2, [x8]
	str	x2, [sp, #8]
Lloh43:
	adrp	x8, _MIIDBG_AZ_ANADECT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MIIDBG_AZ_ANADECT@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atl1c_write_phy_dbg
LBB0_6:
Lloh46:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w8, eq
	and	w8, w21, w8
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh49:
	adrp	x8, _MIIDBG_MSE16DB@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MIIDBG_MSE16DB@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _L1D_MSE16DB_UP@GOTPAGE
Lloh53:
	ldr	x8, [x8, _L1D_MSE16DB_UP@GOTPAGEOFF]
Lloh54:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_atl1c_write_phy_dbg
Lloh55:
	adrp	x8, _MIIDBG_SYSMODCTRL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MIIDBG_SYSMODCTRL@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x8, _L1D_SYSMODCTRL_IECHOADJ_DEF@GOTPAGE
Lloh59:
	ldr	x8, [x8, _L1D_SYSMODCTRL_IECHOADJ_DEF@GOTPAGEOFF]
Lloh60:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_atl1c_write_phy_dbg
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_athr_l2c_b,8,3                 ; @athr_l2c_b
	.comm	_athr_l2c_b2,8,3                ; @athr_l2c_b2
	.comm	_athr_l1d,8,3                   ; @athr_l1d
	.comm	_athr_l1d_2,8,3                 ; @athr_l1d_2
	.comm	_SPEED_0,8,3                    ; @SPEED_0
	.comm	_MIIEXT_PCS,4,2                 ; @MIIEXT_PCS
	.comm	_MIIEXT_CLDCTRL6,4,2            ; @MIIEXT_CLDCTRL6
	.comm	_CLDCTRL6_CAB_LEN,4,2           ; @CLDCTRL6_CAB_LEN
	.comm	_CLDCTRL6_CAB_LEN_SHORT,8,3     ; @CLDCTRL6_CAB_LEN_SHORT
	.comm	_AZ_ANADECT_LONG,8,3            ; @AZ_ANADECT_LONG
	.comm	_AZ_ANADECT_DEF,8,3             ; @AZ_ANADECT_DEF
	.comm	_MIIDBG_AZ_ANADECT,4,2          ; @MIIDBG_AZ_ANADECT
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_MIIDBG_MSE16DB,4,2             ; @MIIDBG_MSE16DB
	.comm	_L1D_MSE16DB_UP,8,3             ; @L1D_MSE16DB_UP
	.comm	_MIIDBG_SYSMODCTRL,4,2          ; @MIIDBG_SYSMODCTRL
	.comm	_L1D_SYSMODCTRL_IECHOADJ_DEF,8,3 ; @L1D_SYSMODCTRL_IECHOADJ_DEF
	.comm	_SYSMODCTRL_IECHOADJ_DEF,8,3    ; @SYSMODCTRL_IECHOADJ_DEF
	.comm	_L1D_MSE16DB_DOWN,8,3           ; @L1D_MSE16DB_DOWN
.subsections_via_symbols
