	.file	"extr_ikcp.c_ikcp_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ikcp_update
	.type	ikcp_update, @function
ikcp_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rdi, rsi
	mov	eax, DWORD PTR 0[rbp]
	mov	QWORD PTR 16[rbp], rsi
	test	eax, eax
	je	.L2
	mov	rsi, QWORD PTR 24[rbp]
.L3:
	call	_itimediff@PLT
	lea	edx, 10000[rax]
	cmp	edx, 19999
	jbe	.L4
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, rdi
.L5:
	add	rsi, QWORD PTR 8[rbp]
	mov	QWORD PTR 24[rbp], rsi
	call	_itimediff@PLT
	test	rax, rax
	js	.L7
	mov	rax, QWORD PTR 8[rbp]
	add	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 24[rbp], rax
.L7:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	ikcp_flush@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	test	eax, eax
	js	.L1
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 24[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	DWORD PTR 0[rbp], 1
	mov	QWORD PTR 24[rbp], rsi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ikcp_update, .-ikcp_update
	.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_ikcp.c_ikcp_update.c"
	.text
	.align	2
	.global	ikcp_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	ikcp_update, %function
ikcp_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, [r4]
	mov	r0, r1
	cmp	r3, #0
	moveq	r3, #1
	str	r1, [r4, #8]
	streq	r3, [r4]
	moveq	r1, r0
	ldrne	r1, [r4, #12]
	streq	r0, [r4, #12]
	bl	_itimediff
	ldr	r2, .L10
	add	r3, r0, #9984
	add	r3, r3, #16
	cmp	r3, r2
	bls	.L4
	ldr	r0, [r4, #8]
	mov	r1, r0
.L5:
	ldr	r3, [r4, #4]
	add	r1, r1, r3
	str	r1, [r4, #12]
	bl	_itimediff
	cmp	r0, #0
	ldmibge	r4, {r2, r3}
	addge	r3, r3, r2
	mov	r0, r4
	strge	r3, [r4, #12]
	pop	{r4, lr}
	b	ikcp_flush
.L4:
	cmp	r0, #0
	poplt	{r4, pc}
	ldr	r0, [r4, #8]
	ldr	r1, [r4, #12]
	b	.L5
.L11:
	.align	2
.L10:
	.word	19999
	.size	ikcp_update, .-ikcp_update
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
