	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WalSndComputeSleeptime
_WalSndComputeSleeptime:                ## @WalSndComputeSleeptime
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_wal_sender_timeout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$10000, %eax                    ## imm = 0x2710
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	movl	%edi, %r14d
	movq	_last_reply_timestamp@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jle	LBB0_5
## %bb.2:
	callq	_TimestampTzPlusMilliseconds
	movq	_waiting_for_ping_response@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	movl	(%rbx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	callq	_TimestampTzPlusMilliseconds
LBB0_4:
	leaq	-40(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_TimestampDifference
	imulq	$1000, -40(%rbp), %rcx          ## imm = 0x3E8
	movslq	-28(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	cltq
	addq	%rcx, %rax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wal_sender_timeout,4,2         ## @wal_sender_timeout
	.comm	_last_reply_timestamp,8,3       ## @last_reply_timestamp
	.comm	_waiting_for_ping_response,4,2  ## @waiting_for_ping_response
	.no_dead_strip	_WalSndComputeSleeptime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WalSndComputeSleeptime
_WalSndComputeSleeptime:                ; @WalSndComputeSleeptime
	.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
Lloh0:
	adrp	x20, _wal_sender_timeout@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wal_sender_timeout@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _last_reply_timestamp@GOTPAGE
Lloh3:
	ldr	x21, [x21, _last_reply_timestamp@GOTPAGEOFF]
	ldr	x0, [x21]
	cmp	w1, #1
	ccmp	x0, #1, #8, ge
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #10000
	b	LBB0_5
LBB0_2:
	bl	_TimestampTzPlusMilliseconds
Lloh4:
	adrp	x8, _waiting_for_ping_response@GOTPAGE
Lloh5:
	ldr	x8, [x8, _waiting_for_ping_response@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	x0, [x21]
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	bl	_TimestampTzPlusMilliseconds
LBB0_4:
	mov	x1, x0
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	bl	_TimestampDifference
	ldr	x8, [sp, #8]
	mov	w9, #1000
	mul	x8, x8, x9
	ldrsw	x9, [sp, #4]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	x0, x8, w9, sxtw
LBB0_5:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_wal_sender_timeout,4,2         ; @wal_sender_timeout
	.comm	_last_reply_timestamp,8,3       ; @last_reply_timestamp
	.comm	_waiting_for_ping_response,4,2  ; @waiting_for_ping_response
	.no_dead_strip	_WalSndComputeSleeptime
.subsections_via_symbols
