	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1e_restart_autoneg          ## -- Begin function atl1e_restart_autoneg
	.p2align	4, 0x90
_atl1e_restart_autoneg:                 ## @atl1e_restart_autoneg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %edx
	callq	_atl1e_write_phy_reg
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rbx), %rax
	movq	_athr_l1e@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_athr_l2e_revA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_3:
	movq	_MII_AT001_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_atl1e_write_phy_reg
	testl	%eax, %eax
	jne	LBB0_4
LBB0_5:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movq	_MII_CR_RESET@GOTPCREL(%rip), %rcx
	movq	_MII_CR_AUTO_NEG_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_MII_CR_RESTART_AUTO_NEG@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_atl1e_write_phy_reg            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_athr_l1e,8,3                   ## @athr_l1e
	.comm	_athr_l2e_revA,8,3              ## @athr_l2e_revA
	.comm	_MII_AT001_CR,4,2               ## @MII_AT001_CR
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_MII_CR_RESET,4,2               ## @MII_CR_RESET
	.comm	_MII_CR_AUTO_NEG_EN,4,2         ## @MII_CR_AUTO_NEG_EN
	.comm	_MII_CR_RESTART_AUTO_NEG,4,2    ## @MII_CR_RESTART_AUTO_NEG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1e_restart_autoneg          ; -- Begin function atl1e_restart_autoneg
	.p2align	2
_atl1e_restart_autoneg:                 ; @atl1e_restart_autoneg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0]
	bl	_atl1e_write_phy_reg
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _athr_l1e@GOTPAGE
Lloh4:
	ldr	x9, [x9, _athr_l1e@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _athr_l2e_revA@GOTPAGE
Lloh7:
	ldr	x10, [x10, _athr_l2e_revA@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _MII_AT001_CR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_AT001_CR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_1
LBB0_4:
Lloh12:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MII_CR_RESET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_CR_RESET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MII_CR_AUTO_NEG_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MII_CR_AUTO_NEG_EN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _MII_CR_RESTART_AUTO_NEG@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MII_CR_RESTART_AUTO_NEG@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh23:
	ldr	w9, [x10]
	orr	w2, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atl1e_write_phy_reg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_athr_l1e,8,3                   ; @athr_l1e
	.comm	_athr_l2e_revA,8,3              ; @athr_l2e_revA
	.comm	_MII_AT001_CR,4,2               ; @MII_AT001_CR
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_MII_CR_RESET,4,2               ; @MII_CR_RESET
	.comm	_MII_CR_AUTO_NEG_EN,4,2         ; @MII_CR_AUTO_NEG_EN
	.comm	_MII_CR_RESTART_AUTO_NEG,4,2    ; @MII_CR_RESTART_AUTO_NEG
.subsections_via_symbols
