	.file	"extr_timer.c_rpc_update_rtt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rpc_update_rtt
	.type	rpc_update_rtt, @function
rpc_update_rtt:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	js	.L1
	test	esi, esi
	je	.L1
	test	rdx, rdx
	mov	r9, QWORD PTR 8[rdi]
	mov	eax, 1
	lea	ecx, -1[rsi]
	cmove	rdx, rax
	sal	rcx, 2
	add	r9, rcx
	mov	r8, QWORD PTR [r9]
	mov	rax, rdx
	mov	rsi, r8
	sar	rsi, 3
	sub	rax, rsi
	sub	rsi, rdx
	add	r8, rax
	test	rax, rax
	cmovs	rax, rsi
	add	rcx, QWORD PTR [rdi]
	mov	QWORD PTR [r9], r8
	mov	rdx, rcx
	mov	rcx, QWORD PTR [rcx]
	mov	rsi, rcx
	sar	rsi, 2
	sub	rax, rsi
	add	rax, rcx
	mov	QWORD PTR [rdx], rax
	mov	rcx, QWORD PTR RPC_RTO_MIN[rip]
	cmp	rax, rcx
	cmovl	rax, rcx
	mov	QWORD PTR [rdx], rax
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	rpc_update_rtt, .-rpc_update_rtt
	.comm	RPC_RTO_MIN,8,8
	.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_timer.c_rpc_update_rtt.c"
	.text
	.align	2
	.global	rpc_update_rtt
	.syntax unified
	.arm
	.fpu softvfp
	.type	rpc_update_rtt, %function
rpc_update_rtt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	lsr	r3, r3, #5
	orrs	r3, r3, r2, lsr #31
	bxne	lr
	cmp	r2, #0
	moveq	r2, #1
	push	{r4, lr}
	ldr	lr, [r0, #4]
	sub	r1, r1, #1
	ldr	ip, [lr, r1, lsl #2]
	ldr	r0, [r0]
	sub	r3, r2, ip, asr #3
	add	r4, ip, r3
	str	r4, [lr, r1, lsl #2]
	cmp	r3, #0
	asr	ip, ip, #3
	sublt	r3, ip, r2
	ldr	r2, [r0, r1, lsl #2]
	ldr	ip, .L12
	sub	r3, r3, r2, asr #2
	add	r3, r3, r2
	str	r3, [r0, r1, lsl #2]
	ldr	r2, [ip]
	cmp	r2, r3
	movge	r3, r2
	str	r3, [r0, r1, lsl #2]
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	RPC_RTO_MIN
	.size	rpc_update_rtt, .-rpc_update_rtt
	.comm	RPC_RTO_MIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
