	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1e_phy_commit               ## -- Begin function atl1e_phy_commit
	.p2align	4, 0x90
_atl1e_phy_commit:                      ## @atl1e_phy_commit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_MII_CR_RESET@GOTPCREL(%rip), %rax
	movq	_MII_CR_AUTO_NEG_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MII_CR_RESTART_AUTO_NEG@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atl1e_write_phy_reg
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_REG_MDIO_CTRL@GOTPCREL(%rip), %r13
	movq	_MDIO_START@GOTPCREL(%rip), %r14
	movq	_MDIO_BUSY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_AT_READ_REG
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	$25, %ebx
	jne	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_REG_MDIO_CTRL,4,2              ## @REG_MDIO_CTRL
	.comm	_MDIO_START,4,2                 ## @MDIO_START
	.comm	_MDIO_BUSY,4,2                  ## @MDIO_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcie linkdown at least for 25ms\n"

L_.str.1:                               ## @.str.1
	.asciz	"pcie linkup after %d ms\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1e_phy_commit               ; -- Begin function atl1e_phy_commit
	.p2align	2
_atl1e_phy_commit:                      ; @atl1e_phy_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _MII_CR_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_CR_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MII_CR_AUTO_NEG_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MII_CR_AUTO_NEG_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MII_CR_RESTART_AUTO_NEG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MII_CR_RESTART_AUTO_NEG@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh9:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_atl1e_write_phy_reg
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.1:
	mov	w22, #0
Lloh12:
	adrp	x23, _REG_MDIO_CTRL@GOTPAGE
Lloh13:
	ldr	x23, [x23, _REG_MDIO_CTRL@GOTPAGEOFF]
Lloh14:
	adrp	x24, _MDIO_START@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MDIO_START@GOTPAGEOFF]
Lloh16:
	adrp	x25, _MDIO_BUSY@GOTPAGE
Lloh17:
	ldr	x25, [x25, _MDIO_BUSY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x23]
	mov	x0, x20
	bl	_AT_READ_REG
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	cmp	w22, #25
	b.ne	LBB0_2
; %bb.4:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_5:
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_REG_MDIO_CTRL,4,2              ; @REG_MDIO_CTRL
	.comm	_MDIO_START,4,2                 ; @MDIO_START
	.comm	_MDIO_BUSY,4,2                  ; @MDIO_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcie linkdown at least for 25ms\n"

l_.str.1:                               ; @.str.1
	.asciz	"pcie linkup after %d ms\n"

.subsections_via_symbols
