	.file	"extr_net-connections.c_compute_next_reconnect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	compute_next_reconnect
	.type	compute_next_reconnect, @function
compute_next_reconnect:
.LFB0:
	.cfi_startproc
	endbr64
	movsd	xmm2, QWORD PTR [rdi]
	movsd	xmm1, QWORD PTR 8[rdi]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR precise_now[rip]
	mov	rdx, QWORD PTR 24[rdi]
	comisd	xmm1, xmm2
	ja	.L2
	test	rdx, rdx
	je	.L13
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rdi], xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR 16[rdi], eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rdi], xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR 16[rdi], eax
	test	rdx, rdx
	jne	.L10
	movsd	xmm0, QWORD PTR MAX_RECONNECT_INTERVAL[rip]
	comisd	xmm0, xmm1
	ja	.L6
.L14:
	mov	eax, DWORD PTR 16[rdi]
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	addsd	xmm0, xmm2
	movapd	xmm1, xmm2
	cvttsd2si	eax, xmm0
	movsd	xmm0, QWORD PTR MAX_RECONNECT_INTERVAL[rip]
	comisd	xmm0, xmm1
	mov	DWORD PTR 16[rdi], eax
	jbe	.L14
.L6:
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rdi
	movsd	QWORD PTR [rsp], xmm1
	call	drand48@PLT
	movsd	xmm1, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mulsd	xmm1, QWORD PTR .LC0[rip]
	mulsd	xmm0, QWORD PTR .LC1[rip]
	mov	eax, DWORD PTR 16[rdi]
	addsd	xmm1, xmm0
	movsd	QWORD PTR [rdi], xmm1
	add	rsp, 24
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	compute_next_reconnect, .-compute_next_reconnect
	.comm	precise_now,4,4
	.comm	MAX_RECONNECT_INTERVAL,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1073217536
	.align 8
.LC1:
	.long	2576980378
	.long	1070176665
	.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_net-connections.c_compute_next_reconnect.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dcmplt
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.global	__aeabi_dcmpgt
	.global	__aeabi_dmul
	.align	2
	.global	compute_next_reconnect
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_next_reconnect, %function
compute_next_reconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L12
	mov	r10, r0
	ldr	r0, [r3]
	bl	__aeabi_i2d
	ldmia	r10, {r6-r7}
	add	r5, r10, #8
	ldmia	r5, {r4-r5}
	mov	r8, r0
	mov	r9, r1
	mov	r0, r6
	mov	r1, r7
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dcmplt
	cmp	r0, #0
	ldr	fp, [r10, #20]
	bne	.L2
	cmp	fp, #0
	beq	.L11
	mov	r2, r8
	mov	r3, r9
	mov	r0, r4
	mov	r1, r5
	stm	r10, {r4-r5}
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	str	r0, [r10, #16]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r2, r8
	mov	r3, r9
	mov	r0, r4
	mov	r1, r5
	stm	r10, {r4-r5}
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	cmp	fp, #0
	str	r0, [r10, #16]
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r1, .L12+4
	mov	r2, r4
	ldmia	r1, {r0-r1}
	mov	r3, r5
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	bne	.L6
	ldr	r0, [r10, #16]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r2, r8
	mov	r3, r9
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	mov	r4, r6
	mov	r5, r7
	str	r0, [r10, #16]
	b	.L7
.L6:
	bl	drand48
	mov	r2, #0
	mov	r6, r0
	mov	r7, r1
	mov	r0, r4
	mov	r1, r5
	ldr	r3, .L12+8
	bl	__aeabi_dmul
	ldr	r2, .L12+12
	mov	r4, r0
	mov	r5, r1
	mov	r0, r6
	mov	r1, r7
	ldr	r3, .L12+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [r10, #16]
	stm	r10, {r2-r3}
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	precise_now
	.word	MAX_RECONNECT_INTERVAL
	.word	1073217536
	.word	-1717986918
	.word	1070176665
	.size	compute_next_reconnect, .-compute_next_reconnect
	.comm	precise_now,4,4
	.comm	MAX_RECONNECT_INTERVAL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
