	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function compute_next_reconnect
LCPI0_0:
	.quad	0x3fc999999999999a              ## double 0.20000000000000001
LCPI0_1:
	.quad	0x3ff8000000000000              ## double 1.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_compute_next_reconnect
	.p2align	4, 0x90
_compute_next_reconnect:                ## @compute_next_reconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movsd	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	movsd	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero
	movq	24(%rdi), %rdx
	testq	%rdx, %rdx
	sete	%al
	ucomisd	%xmm1, %xmm0
	ja	LBB0_2
## %bb.1:
	movb	$1, %cl
	testq	%rdx, %rdx
	je	LBB0_3
LBB0_2:
	movsd	%xmm0, (%rbx)
	movl	%eax, %ecx
	movapd	%xmm0, %xmm1
LBB0_3:
	movq	_precise_now@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax), %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, 16(%rbx)
	testb	%cl, %cl
	je	LBB0_6
## %bb.4:
	movq	_MAX_RECONNECT_INTERVAL@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	callq	_drand48
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm1
	addsd	%xmm0, %xmm1
	movsd	%xmm1, (%rbx)
	movl	16(%rbx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_precise_now,4,2                ## @precise_now
	.comm	_MAX_RECONNECT_INTERVAL,8,3     ## @MAX_RECONNECT_INTERVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_next_reconnect         ; -- Begin function compute_next_reconnect
	.p2align	2
_compute_next_reconnect:                ; @compute_next_reconnect
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	ldp	d8, d0, [x0]
	ldr	x9, [x0, #24]
	cmp	x9, #0
	cset	w8, eq
	fcmp	d8, d0
	ccmp	x9, #0, #0, pl
	b.eq	LBB0_2
; %bb.1:
	str	d0, [x19]
	fmov	d8, d0
	b	LBB0_3
LBB0_2:
	mov	w8, #1
LBB0_3:
Lloh0:
	adrp	x9, _precise_now@GOTPAGE
Lloh1:
	ldr	x9, [x9, _precise_now@GOTPAGEOFF]
Lloh2:
	ldr	s0, [x9]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	fadd	d0, d8, d0
	fcvtzs	w0, d0
	str	w0, [x19, #16]
	cbz	w8, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _MAX_RECONNECT_INTERVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_RECONNECT_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	d0, [x8]
	fcmp	d8, d0
	b.pl	LBB0_6
; %bb.5:
	bl	_drand48
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16329, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fmov	d1, #1.50000000
	fmadd	d0, d8, d1, d0
	str	d0, [x19]
	ldr	w0, [x19, #16]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_precise_now,4,2                ; @precise_now
	.comm	_MAX_RECONNECT_INTERVAL,8,3     ; @MAX_RECONNECT_INTERVAL
.subsections_via_symbols
