	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TLan_PhyPowerUp
_TLan_PhyPowerUp:                       ## @TLan_PhyPowerUp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_TLAN_DEBUG_GNRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_TLAN_DBG
	movl	(%rbx), %edi
	callq	_TLan_MiiSync
	movq	_MII_GC_LOOPBK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r14), %rax
	movq	8(%r14), %rdx
	movl	(%rdx,%rax,4), %esi
	movq	_MII_GEN_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_TLan_MiiWriteReg
	movl	(%rbx), %edi
	callq	_TLan_MiiSync
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$35, %rsi
	addl	%eax, %esi
	movq	_TLAN_TIMER_PHY_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_TLan_SetTimer                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_DEBUG_GNRL,4,2            ## @TLAN_DEBUG_GNRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Powering up PHY.\n"

	.comm	_MII_GC_LOOPBK,4,2              ## @MII_GC_LOOPBK
	.comm	_MII_GEN_CTL,4,2                ## @MII_GEN_CTL
	.comm	_HZ,4,2                         ## @HZ
	.comm	_TLAN_TIMER_PHY_RESET,4,2       ## @TLAN_TIMER_PHY_RESET
	.no_dead_strip	_TLan_PhyPowerUp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TLan_PhyPowerUp
_TLan_PhyPowerUp:                       ; @TLan_PhyPowerUp
	.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
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _TLAN_DEBUG_GNRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLAN_DEBUG_GNRL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_TLAN_DBG
	ldr	w0, [x19]
	bl	_TLan_MiiSync
Lloh5:
	adrp	x8, _MII_GC_LOOPBK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_GC_LOOPBK@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	ldp	x9, x8, [x20]
	ldr	w1, [x8, x9, lsl #2]
Lloh8:
	adrp	x8, _MII_GEN_CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_GEN_CTL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_TLan_MiiWriteReg
	ldr	w0, [x19]
	bl	_TLan_MiiSync
Lloh11:
	adrp	x8, _HZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w1, w8, w9
Lloh14:
	adrp	x8, _TLAN_TIMER_PHY_RESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TLAN_TIMER_PHY_RESET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_TLan_SetTimer
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_DEBUG_GNRL,4,2            ; @TLAN_DEBUG_GNRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Powering up PHY.\n"

	.comm	_MII_GC_LOOPBK,4,2              ; @MII_GC_LOOPBK
	.comm	_MII_GEN_CTL,4,2                ; @MII_GEN_CTL
	.comm	_HZ,4,2                         ; @HZ
	.comm	_TLAN_TIMER_PHY_RESET,4,2       ; @TLAN_TIMER_PHY_RESET
	.no_dead_strip	_TLan_PhyPowerUp
.subsections_via_symbols
