	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TLan_PhyReset
_TLan_PhyReset:                         ## @TLan_PhyReset
	.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, %r14
	callq	_netdev_priv
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rcx,%rax,4), %ebx
	movq	_TLAN_DEBUG_GNRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_TLAN_DBG
	movl	(%r14), %edi
	callq	_TLan_MiiSync
	movq	_MII_GC_LOOPBK@GOTPCREL(%rip), %rax
	movq	_MII_GC_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	_MII_GEN_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_TLan_MiiWriteReg
	movl	(%r13), %edx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_TLan_MiiReadReg
	movl	(%r12), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_TLan_MiiReadReg
	movl	(%r12), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_2
LBB0_3:
	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_START_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_TLan_SetTimer
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_DEBUG_GNRL,4,2            ## @TLAN_DEBUG_GNRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Reseting PHY.\n"

	.comm	_MII_GC_LOOPBK,4,2              ## @MII_GC_LOOPBK
	.comm	_MII_GC_RESET,4,2               ## @MII_GC_RESET
	.comm	_MII_GEN_CTL,4,2                ## @MII_GEN_CTL
	.comm	_HZ,4,2                         ## @HZ
	.comm	_TLAN_TIMER_PHY_START_LINK,4,2  ## @TLAN_TIMER_PHY_START_LINK
	.no_dead_strip	_TLan_PhyReset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TLan_PhyReset
_TLan_PhyReset:                         ; @TLan_PhyReset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_netdev_priv
	ldp	x8, x9, [x0]
	ldr	w20, [x8, x9, lsl #2]
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	w8, [x8]
Lloh8:
	adrp	x21, _MII_GC_RESET@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MII_GC_RESET@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w3, w9, w8
	str	w3, [sp, #12]
Lloh10:
	adrp	x22, _MII_GEN_CTL@GOTPAGE
Lloh11:
	ldr	x22, [x22, _MII_GEN_CTL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_TLan_MiiWriteReg
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_TLan_MiiReadReg
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.2:
Lloh12:
	adrp	x8, _HZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh14:
	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
Lloh15:
	adrp	x8, _TLAN_TIMER_PHY_START_LINK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TLAN_TIMER_PHY_START_LINK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_TLan_SetTimer
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_DEBUG_GNRL,4,2            ; @TLAN_DEBUG_GNRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Reseting PHY.\n"

	.comm	_MII_GC_LOOPBK,4,2              ; @MII_GC_LOOPBK
	.comm	_MII_GC_RESET,4,2               ; @MII_GC_RESET
	.comm	_MII_GEN_CTL,4,2                ; @MII_GEN_CTL
	.comm	_HZ,4,2                         ; @HZ
	.comm	_TLAN_TIMER_PHY_START_LINK,4,2  ; @TLAN_TIMER_PHY_START_LINK
	.no_dead_strip	_TLan_PhyReset
.subsections_via_symbols
