	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1e_phy_init                 ## -- Begin function atl1e_phy_init
	.p2align	4, 0x90
_atl1e_phy_init:                        ## @atl1e_phy_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	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 4(%rbx)
	je	LBB0_21
## %bb.2:
	movl	$0, 4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atl1e_restart_autoneg          ## TAILCALL
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	movq	_REG_GPHY_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_GPHY_CTRL_DEFAULT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_AT_WRITE_REGW
	movl	$2, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	_GPHY_CTRL_EXT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_AT_WRITE_REGW
	movl	$2, %edi
	callq	_msleep
	movq	_MII_DBG_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$11, %edx
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.4:
	movq	_MII_DBG_DATA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$48128, %edx                    ## imm = 0xBC00
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.5:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.6:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$751, %edx                      ## imm = 0x2EF
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.7:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$18, %edx
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.8:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$19460, %edx                    ## imm = 0x4C04
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.9:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.10:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$35771, %edx                    ## imm = 0x8BBB
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.11:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.12:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$11334, %edx                    ## imm = 0x2C46
	callq	_atl1e_write_phy_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.13:
	movl	$1, %edi
	callq	_msleep
	movq	_MII_INT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3072, %edx                     ## imm = 0xC00
	callq	_atl1e_write_phy_reg
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_16:
	movq	%rbx, %rdi
	callq	_atl1e_phy_setup_autoneg_adv
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_18:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_atl1e_phy_commit
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_22
LBB0_20:
	movl	$1, (%rbx)
LBB0_21:
	xorl	%r15d, %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GPHY_CTRL,4,2              ## @REG_GPHY_CTRL
	.comm	_GPHY_CTRL_DEFAULT,4,2          ## @GPHY_CTRL_DEFAULT
	.comm	_GPHY_CTRL_EXT_RESET,4,2        ## @GPHY_CTRL_EXT_RESET
	.comm	_MII_DBG_ADDR,4,2               ## @MII_DBG_ADDR
	.comm	_MII_DBG_DATA,4,2               ## @MII_DBG_DATA
	.comm	_MII_INT_CTRL,4,2               ## @MII_INT_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error enable PHY linkChange Interrupt\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error Setting up Auto-Negotiation\n"

L_.str.2:                               ## @.str.2
	.asciz	"Restarting Auto-Neg"

L_.str.3:                               ## @.str.3
	.asciz	"Error Resetting the phy"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1e_phy_init                 ; -- Begin function atl1e_phy_init
	.p2align	2
_atl1e_phy_init:                        ; @atl1e_phy_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_15
; %bb.2:
	str	wzr, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_atl1e_restart_autoneg
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x21, _REG_GPHY_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_GPHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _GPHY_CTRL_DEFAULT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GPHY_CTRL_DEFAULT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_AT_WRITE_REGW
	mov	w0, #2
	bl	_msleep
	ldr	w1, [x21]
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _GPHY_CTRL_EXT_RESET@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GPHY_CTRL_EXT_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_AT_WRITE_REGW
	mov	w0, #2
	bl	_msleep
Lloh7:
	adrp	x21, _MII_DBG_ADDR@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MII_DBG_ADDR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #11
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.4:
Lloh9:
	adrp	x22, _MII_DBG_DATA@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MII_DBG_DATA@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #48128
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.5:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.6:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #751
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.7:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #18
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.8:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #19460
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #4
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.10:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #35771
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.11:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #5
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #11334
	bl	_atl1e_write_phy_reg
	cbnz	w0, LBB0_16
; %bb.13:
	mov	w0, #1
	bl	_msleep
Lloh11:
	adrp	x8, _MII_INT_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_INT_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3072
	bl	_atl1e_write_phy_reg
	cbz	w0, LBB0_17
; %bb.14:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_21
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x0, x19
	bl	_atl1e_phy_setup_autoneg_adv
	cbz	w0, LBB0_19
; %bb.18:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_19:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x19
	bl	_atl1e_phy_commit
	cbz	w0, LBB0_22
; %bb.20:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_21:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	b	LBB0_16
LBB0_22:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GPHY_CTRL,4,2              ; @REG_GPHY_CTRL
	.comm	_GPHY_CTRL_DEFAULT,4,2          ; @GPHY_CTRL_DEFAULT
	.comm	_GPHY_CTRL_EXT_RESET,4,2        ; @GPHY_CTRL_EXT_RESET
	.comm	_MII_DBG_ADDR,4,2               ; @MII_DBG_ADDR
	.comm	_MII_DBG_DATA,4,2               ; @MII_DBG_DATA
	.comm	_MII_INT_CTRL,4,2               ; @MII_INT_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error enable PHY linkChange Interrupt\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error Setting up Auto-Negotiation\n"

l_.str.2:                               ; @.str.2
	.asciz	"Restarting Auto-Neg"

l_.str.3:                               ; @.str.3
	.asciz	"Error Resetting the phy"

.subsections_via_symbols
