	.file	"extr_ntp_proto.c_root_distance.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	root_distance, @function
root_distance:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 4[rdi]
	add	eax, DWORD PTR [rdi]
	pxor	xmm0, xmm0
	mov	edx, eax
	shr	eax, 31
	movsd	xmm1, QWORD PTR sys_mindisp[rip]
	add	eax, edx
	sar	eax
	add	eax, DWORD PTR 8[rdi]
	mov	edx, eax
	mov	eax, DWORD PTR current_time[rip]
	sub	eax, DWORD PTR 12[rdi]
	imul	eax, DWORD PTR clock_phi[rip]
	add	eax, edx
	add	eax, DWORD PTR 16[rdi]
	add	eax, DWORD PTR 20[rdi]
	cvtsi2sd	xmm0, eax
	maxsd	xmm1, xmm0
	movapd	xmm0, xmm1
	ret
	.cfi_endproc
.LFE0:
	.size	root_distance, .-root_distance
	.comm	sys_mindisp,8,8
	.comm	current_time,4,4
	.comm	clock_phi,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ntp_proto.c_root_distance.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dcmpgt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	root_distance, %function
root_distance:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldm	r0, {r2, r3}
	ldr	r4, .L7
	ldr	ip, .L7+4
	ldr	lr, [r0, #12]
	ldr	r1, [r0, #8]
	add	r2, r2, r3
	ldr	r3, [r4]
	ldr	ip, [ip]
	add	r2, r2, r2, lsr #31
	sub	r3, r3, lr
	add	r2, r1, r2, asr #1
	mla	r3, ip, r3, r2
	ldr	r2, [r0, #16]
	ldr	r0, [r0, #20]
	add	r3, r3, r2
	add	r0, r3, r0
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r1, .L7+8
	mov	r2, r4
	ldmia	r1, {r6-r7}
	mov	r3, r5
	mov	r1, r7
	mov	r0, r6
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	movne	r4, r6
	movne	r5, r7
	mov	r0, r4
	mov	r1, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	current_time
	.word	clock_phi
	.word	sys_mindisp
	.size	root_distance, .-root_distance
	.comm	sys_mindisp,8,8
	.comm	current_time,4,4
	.comm	clock_phi,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
