	.file	"extr_proto-tcp.c_handle_ack.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%u.%u.%u.%u - %u-sending, %u-reciving\n"
	.align 8
.LC1:
	.string	"%u.%u.%u.%u - tcb: ackno from past: old ackno = 0x%08x, this ackno = 0x%08x\n"
	.align 8
.LC2:
	.string	"%u.%u.%u.%u - tcb: ackno from future: my seqno = 0x%08x, their ackno = 0x%08x\n"
	.text
	.p2align 4
	.type	handle_ack, @function
handle_ack:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdx, rbp
	sub	rdx, QWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	eax, DWORD PTR [rdi]
	push	rdx
	.cfi_def_cfa_offset 40
	mov	rdx, QWORD PTR 8[rdi]
	mov	edi, 4
	mov	ecx, eax
	mov	r10d, eax
	movzx	esi, ah
	movzx	r9d, al
	shr	r10d, 24
	sub	rdx, rbp
	sar	ecx, 16
	mov	r8d, esi
	push	rdx
	.cfi_def_cfa_offset 48
	movzx	ecx, cl
	mov	edx, r10d
	lea	rsi, .LC0[rip]
	call	LOG@PLT
	mov	rax, QWORD PTR 16[rbx]
	pop	rdi
	.cfi_def_cfa_offset 40
	pop	r8
	.cfi_def_cfa_offset 32
	cmp	rax, rbp
	je	.L1
	mov	rdi, rbp
	sub	rdi, rax
	cmp	rdi, 10000
	jg	.L8
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, rax
	sub	rdx, rbp
	cmp	rdx, 10000
	jg	.L9
	mov	QWORD PTR 16[rbx], rbp
	mov	r12d, 1
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	push	rbp
	.cfi_def_cfa_offset 40
	lea	rsi, .LC1[rip]
	push	QWORD PTR 24[rbx]
	.cfi_def_cfa_offset 48
	mov	ecx, eax
	movzx	edi, ah
	mov	edx, eax
	movzx	r9d, al
	sar	ecx, 16
	mov	r8d, edi
	shr	edx, 24
	mov	edi, 4
	movzx	ecx, cl
	call	LOG@PLT
	pop	rcx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rsi
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR [rbx]
	push	rbp
	.cfi_def_cfa_offset 40
	lea	rsi, .LC2[rip]
	push	rax
	.cfi_def_cfa_offset 48
	mov	ecx, edx
	mov	r10d, edx
	movzx	edi, dh
	movzx	r9d, dl
	shr	r10d, 24
	sar	ecx, 16
	mov	r8d, edi
	mov	edi, 4
	mov	edx, r10d
	movzx	ecx, cl
	call	LOG@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rdx
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	handle_ack, .-handle_ack
	.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_proto-tcp.c_handle_ack.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%u.%u.%u.%u - %u-sending, %u-reciving\012\000"
	.align	2
.LC1:
	.ascii	"%u.%u.%u.%u - tcb: ackno from past: old ackno = 0x%"
	.ascii	"08x, this ackno = 0x%08x\012\000"
	.align	2
.LC2:
	.ascii	"%u.%u.%u.%u - tcb: ackno from future: my seqno = 0x"
	.ascii	"%08x, their ackno = 0x%08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_ack, %function
handle_ack:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r2, [r0]
	ldr	r1, [r4, #4]
	ldr	r0, [r0, #8]
	asr	ip, r2, #8
	sub	sp, sp, #20
	and	ip, ip, #255
	asr	r3, r2, #16
	sub	r0, r5, r0
	sub	r1, r1, r5
	str	ip, [sp]
	and	ip, r2, #255
	and	r3, r3, #255
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	mov	r0, #4
	ldr	r1, .L10
	str	ip, [sp, #4]
	lsr	r2, r2, #24
	bl	LOG
	ldr	r3, [r4, #8]
	cmp	r3, r5
	moveq	r0, #0
	beq	.L1
	ldr	r2, .L10+4
	sub	r3, r5, r3
	cmp	r3, r2
	bgt	.L8
	ldr	r1, [r4, #4]
	sub	r3, r1, r5
	cmp	r3, r2
	movle	r0, #1
	strle	r5, [r4, #8]
	bgt	.L9
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	ldr	r2, [r4]
	ldr	ip, [r4, #12]
	asr	r1, r2, #8
	and	r0, r2, #255
	and	r1, r1, #255
	asr	r3, r2, #16
	str	r1, [sp]
	str	r0, [sp, #4]
	ldr	r1, .L10+8
	str	r5, [sp, #12]
	str	ip, [sp, #8]
	and	r3, r3, #255
	lsr	r2, r2, #24
	mov	r0, #4
	bl	LOG
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r2, [r4]
	str	r1, [sp, #8]
	asr	r0, r2, #8
	and	ip, r2, #255
	and	r0, r0, #255
	asr	r3, r2, #16
	str	r0, [sp]
	ldr	r1, .L10+12
	str	r5, [sp, #12]
	and	r3, r3, #255
	str	ip, [sp, #4]
	lsr	r2, r2, #24
	mov	r0, #4
	bl	LOG
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	10000
	.word	.LC1
	.word	.LC2
	.size	handle_ack, .-handle_ack
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
