	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_phy_config
_atl1_phy_config:                       ## @atl1_phy_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_phy_config_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	leaq	8(%rax), %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$0, (%rbx)
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	callq	_atl1_write_phy_reg
	movq	_MII_ATLX_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	callq	_atl1_write_phy_reg
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_CR_RESET@GOTPCREL(%rip), %rax
	movq	_MII_CR_AUTO_NEG_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_atl1_write_phy_reg
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_config_timer,4,2           ## @phy_config_timer
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_ATLX_CR,4,2                ## @MII_ATLX_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	_adapter,8,3                    ## @adapter
	.no_dead_strip	_atl1_phy_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_phy_config
_atl1_phy_config:                       ; @atl1_phy_config
	.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
Lloh0:
	adrp	x8, _phy_config_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phy_config_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	wzr, [x19]
Lloh3:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x21, x19
	ldr	w2, [x21, #8]!
	mov	x0, x21
	bl	_atl1_write_phy_reg
Lloh6:
	adrp	x8, _MII_ATLX_CR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_ATLX_CR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	mov	x0, x21
	bl	_atl1_write_phy_reg
Lloh9:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MII_CR_RESET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MII_CR_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _MII_CR_AUTO_NEG_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MII_CR_AUTO_NEG_EN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_atl1_write_phy_reg
	mov	x0, x20
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_config_timer,4,2           ; @phy_config_timer
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_ATLX_CR,4,2                ; @MII_ATLX_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	_adapter,8,3                    ; @adapter
	.no_dead_strip	_atl1_phy_config
.subsections_via_symbols
