	.file	"161465.c"
	.intel_syntax noprefix
	.text
	.globl	buff
	.bss
	.align 32
	.type	buff, @object
	.size	buff, 4096
buff:
	.zero	4096
	.data
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.long	1
	.text
	.globl	inc
	.type	inc, @function
inc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	and	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	inc, .-inc
	.globl	between
	.type	between, @function
between:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	ja	.L3
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jb	.L4
.L3:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jnb	.L5
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jbe	.L4
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jnb	.L6
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jnb	.L6
.L4:
	mov	eax, 1
	jmp	.L7
.L6:
	mov	eax, 0
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	between, .-between
	.globl	waitForEvent
	.type	waitForEvent, @function
waitForEvent:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	edx, 4096
	mov	esi, 0
	lea	rdi, buff[rip]
	call	memset@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 4096
	lea	rsi, buff[rip]
	mov	edi, eax
	call	read@PLT
	lea	rax, buff[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L11
.L9:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 0
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	waitForEvent, .-waitForEvent
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	getData
	.type	getData, @function
getData:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	movabs	rsi, 2338328219631577172
	movabs	rdi, 2531150969524412784
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	BYTE PTR 16[rax], 0
	mov	edx, DWORD PTR i[rip]
	lea	rax, -64[rbp]
	add	rax, 16
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getData, .-getData
	.globl	makeFrame
	.type	makeFrame, @function
makeFrame:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 10
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 12[rax]
	mov	rax, rcx
	mov	ecx, 1024
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rsi
	mov	esi, ecx
	add	rsi, rdx
	lea	rdi, 8[rsi]
	mov	esi, ecx
	add	rsi, rax
	add	rsi, 8
	mov	rsi, QWORD PTR -16[rsi]
	mov	QWORD PTR -16[rdi], rsi
	lea	rdi, 8[rdx]
	and	rdi, -8
	sub	rdx, rdi
	sub	rax, rdx
	add	ecx, edx
	and	ecx, -8
	shr	ecx, 3
	mov	edx, ecx
	mov	edx, edx
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 3
	and	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	makeFrame, .-makeFrame
	.section	.rodata
.LC1:
	.string	"Sending frame..."
	.text
	.globl	sendFrame
	.type	sendFrame, @function
sendFrame:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edx, 4096
	mov	esi, 0
	lea	rdi, buff[rip]
	call	memset@PLT
	lea	rax, buff[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, 12
	add	rax, 12
	mov	ecx, 1024
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rsi
	mov	esi, ecx
	add	rsi, rdx
	lea	rdi, 8[rsi]
	mov	esi, ecx
	add	rsi, rax
	add	rsi, 8
	mov	rsi, QWORD PTR -16[rsi]
	mov	QWORD PTR -16[rdi], rsi
	lea	rdi, 8[rdx]
	and	rdi, -8
	sub	rdx, rdi
	sub	rax, rdx
	add	ecx, edx
	and	ecx, -8
	shr	ecx, 3
	mov	edx, ecx
	mov	edx, edx
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 12
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 4096
	lea	rsi, buff[rip]
	mov	edi, eax
	call	write@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sendFrame, .-sendFrame
	.section	.rodata
.LC2:
	.string	"Received acknowledgement..."
	.text
	.globl	receiveFrame
	.type	receiveFrame, @function
receiveFrame:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, buff[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, 12
	add	rax, 12
	mov	ecx, 1024
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rsi
	mov	esi, ecx
	add	rsi, rdx
	lea	rdi, 8[rsi]
	mov	esi, ecx
	add	rsi, rax
	add	rsi, 8
	mov	rsi, QWORD PTR -16[rsi]
	mov	QWORD PTR -16[rdi], rsi
	lea	rdi, 8[rdx]
	and	rdi, -8
	sub	rdx, rdi
	sub	rax, rdx
	add	ecx, edx
	and	ecx, -8
	shr	ecx, 3
	mov	edx, ecx
	mov	edx, edx
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	receiveFrame, .-receiveFrame
	.globl	randn
	.type	randn, @function
randn:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	ecx, edx
	lea	eax, 1[rcx]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	randn, .-randn
	.globl	extractData
	.type	extractData, @function
extractData:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 12
	mov	ecx, 1024
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rsi
	mov	esi, ecx
	add	rsi, rdx
	lea	rdi, 8[rsi]
	mov	esi, ecx
	add	rsi, rax
	add	rsi, 8
	mov	rsi, QWORD PTR -16[rsi]
	mov	QWORD PTR -16[rdi], rsi
	lea	rdi, 8[rdx]
	and	rdi, -8
	sub	rdx, rdi
	sub	rax, rdx
	add	ecx, edx
	and	ecx, -8
	shr	ecx, 3
	mov	edx, ecx
	mov	edx, edx
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	extractData, .-extractData
	.section	.rodata
.LC3:
	.string	"Received data : %s\n"
	.text
	.globl	deliverData
	.type	deliverData, @function
deliverData:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	deliverData, .-deliverData
	.section	.rodata
.LC4:
	.string	"Timed out!! Resending..."
	.text
	.globl	sender
	.type	sender, @function
sender:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2160
	mov	DWORD PTR -6244[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -6232[rbp], 0
	mov	DWORD PTR -6228[rbp], 0
	mov	DWORD PTR -6224[rbp], 0
	mov	DWORD PTR -6216[rbp], 0
	mov	DWORD PTR -6200[rbp], -1
	mov	DWORD PTR -6208[rbp], 0
	mov	DWORD PTR -6204[rbp], 0
	jmp	.L22
.L32:
	cmp	DWORD PTR -6216[rbp], 2
	ja	.L23
	mov	edx, DWORD PTR -6232[rbp]
	lea	rax, -4112[rbp]
	mov	edx, edx
	sal	rdx, 10
	add	rax, rdx
	mov	rdi, rax
	call	getData
	add	DWORD PTR -6216[rbp], 1
.L23:
	mov	eax, 0
	call	randn
	mov	DWORD PTR -6196[rbp], eax
	cmp	DWORD PTR -6196[rbp], 3
	jg	.L24
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edx, 4096
	mov	esi, 0
	lea	rdi, buff[rip]
	call	memset@PLT
	mov	eax, DWORD PTR -6244[rbp]
	mov	edx, 4096
	lea	rsi, buff[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L25
.L24:
	mov	esi, DWORD PTR -6224[rbp]
	mov	eax, DWORD PTR -6232[rbp]
	lea	rcx, -5152[rbp]
	lea	rdx, -4112[rbp]
	mov	edi, eax
	call	makeFrame
	lea	rdx, -5152[rbp]
	mov	eax, DWORD PTR -6244[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	sendFrame
.L25:
	lea	rax, -6232[rbp]
	mov	rdi, rax
	call	inc
	lea	rdx, -6220[rbp]
	mov	eax, DWORD PTR -6244[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	waitForEvent
	mov	eax, DWORD PTR -6220[rbp]
	test	eax, eax
	jne	.L26
	lea	rax, -6192[rbp]
	mov	rdi, rax
	call	receiveFrame
	mov	edx, DWORD PTR -6188[rbp]
	mov	eax, DWORD PTR -6224[rbp]
	cmp	edx, eax
	jne	.L28
	lea	rax, -6192[rbp]
	add	rax, 12
	mov	rdi, rax
	call	deliverData
	lea	rax, -6224[rbp]
	mov	rdi, rax
	call	inc
	add	DWORD PTR -6208[rbp], 1
	jmp	.L28
.L29:
	sub	DWORD PTR -6216[rbp], 1
	lea	rax, -6228[rbp]
	mov	rdi, rax
	call	inc
	add	DWORD PTR -6204[rbp], 1
.L28:
	mov	edx, DWORD PTR -6232[rbp]
	mov	ecx, DWORD PTR -6184[rbp]
	mov	eax, DWORD PTR -6228[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	between
	test	eax, eax
	jne	.L29
	jmp	.L22
.L26:
	mov	edi, 3
	call	sleep@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -6228[rbp]
	mov	DWORD PTR -6232[rbp], eax
	mov	DWORD PTR -6212[rbp], 1
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -6232[rbp]
	lea	rcx, -5152[rbp]
	lea	rdx, -4112[rbp]
	mov	esi, 0
	mov	edi, eax
	call	makeFrame
	lea	rdx, -5152[rbp]
	mov	eax, DWORD PTR -6244[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	sendFrame
	lea	rax, -6232[rbp]
	mov	rdi, rax
	call	inc
	add	DWORD PTR -6212[rbp], 1
.L30:
	mov	eax, DWORD PTR -6212[rbp]
	cmp	eax, DWORD PTR -6216[rbp]
	jbe	.L31
.L22:
	cmp	DWORD PTR -6208[rbp], 8
	jle	.L32
	cmp	DWORD PTR -6204[rbp], 8
	jle	.L32
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	sender, .-sender
	.section	.rodata
.LC5:
	.string	"\n Socket creation error "
.LC6:
	.string	"127.0.0.1"
	.align 8
.LC7:
	.string	"\nInvalid address/ Address not supported "
.LC8:
	.string	"\nConnection Failed "
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L35
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L39
.L35:
	mov	WORD PTR -32[rbp], 2
	mov	edi, 8080
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rax, -32[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC6[rip]
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L37
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L39
.L37:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L38
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	sender
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L39:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"161465.c"
	.text
	.comm	buff,4096,4
	.data
	.align	2
	.type	i, %object
	.size	i, 4
i:
	.word	1
	.text
	.align	2
	.global	inc
	.syntax unified
	.arm
	.fpu softvfp
	.type	inc, %function
inc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	and	r2, r3, #3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	inc, .-inc
	.align	2
	.global	between
	.syntax unified
	.arm
	.fpu softvfp
	.type	between, %function
between:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bhi	.L3
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L4
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcs	.L5
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L4
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcs	.L6
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcs	.L6
.L4:
	mov	r3, #1
	b	.L7
.L6:
	mov	r3, #0
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	between, .-between
	.align	2
	.global	waitForEvent
	.syntax unified
	.arm
	.fpu softvfp
	.type	waitForEvent, %function
waitForEvent:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r2, #4096
	mov	r1, #0
	ldr	r0, .L12
	bl	memset
	mov	r2, #4096
	ldr	r1, .L12
	ldr	r0, [fp, #-8]
	bl	read
	ldr	r3, .L12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3]
	b	.L11
.L9:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	buff
	.size	waitForEvent, .-waitForEvent
	.section	.rodata
	.align	2
.LC0:
	.ascii	"This is packet #\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getData
	.syntax unified
	.arm
	.fpu softvfp
	.type	getData, %function
getData:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #60
	ldr	r2, .L16+4
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	sub	r3, fp, #60
	add	r3, r3, #16
	ldr	r2, .L16+8
	ldr	r2, [r2]
	ldr	r1, .L16+12
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-64]
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L16+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+8
	str	r3, [r2]
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	.LC0
	.word	i
	.word	.LC1
	.size	getData, .-getData
	.align	2
	.global	makeFrame
	.syntax unified
	.arm
	.fpu softvfp
	.type	makeFrame, %function
makeFrame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #10
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	mov	r1, r2
	mov	r2, #1024
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	add	r3, r3, #3
	and	r2, r3, #3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #8]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	makeFrame, .-makeFrame
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Sending frame...\000"
	.text
	.align	2
	.global	sendFrame
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendFrame, %function
sendFrame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r2, #4096
	mov	r1, #0
	ldr	r0, .L20
	bl	memset
	ldr	r3, .L20
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r0, r2, #12
	add	r3, r3, #12
	mov	r2, #1024
	mov	r1, r3
	bl	memcpy
	ldr	r0, .L20+4
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	mov	r0, r3
	bl	puts
	mov	r2, #4096
	ldr	r1, .L20
	ldr	r0, [fp, #-16]
	bl	write
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	buff
	.word	.LC3
	.size	sendFrame, .-sendFrame
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Received acknowledgement...\000"
	.text
	.align	2
	.global	receiveFrame
	.syntax unified
	.arm
	.fpu softvfp
	.type	receiveFrame, %function
receiveFrame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L23
	bl	puts
	ldr	r3, .L23+4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r0, r2, #12
	add	r3, r3, #12
	mov	r2, #1024
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC4
	.word	buff
	.size	receiveFrame, .-receiveFrame
	.align	2
	.global	randn
	.syntax unified
	.arm
	.fpu softvfp
	.type	randn, %function
randn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r1, r0
	ldr	r3, .L27
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	mov	r0, r3
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	1717986919
	.size	randn, .-randn
	.align	2
	.global	extractData
	.syntax unified
	.arm
	.fpu softvfp
	.type	extractData, %function
extractData:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	mov	r0, r2
	add	r3, r3, #12
	mov	r2, #1024
	mov	r1, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	extractData, .-extractData
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Received data : %s\012\000"
	.text
	.align	2
	.global	deliverData
	.syntax unified
	.arm
	.fpu softvfp
	.type	deliverData, %function
deliverData:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L31
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC5
	.size	deliverData, .-deliverData
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Timed out!! Resending...\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sender
	.syntax unified
	.arm
	.fpu softvfp
	.type	sender, %function
sender:
	@ args = 0, pretend = 0, frame = 6224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #6208
	sub	sp, sp, #20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-2124]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2112]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2108]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-2084]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2092]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2088]
	b	.L34
.L44:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2100]
	cmp	r3, #2
	bhi	.L35
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-2116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	lsl	r2, r2, #10
	add	r3, r3, r2
	mov	r0, r3
	bl	getData
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2100]
	add	r3, r3, #1
	str	r3, [r2, #-2100]
.L35:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	randn
	str	r0, [r4, #-2080]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2080]
	cmp	r3, #3
	bgt	.L36
	ldr	r0, .L46+4
	bl	puts
	mov	r2, #4096
	mov	r1, #0
	ldr	r0, .L46+8
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #4096
	ldr	r1, .L46+8
	ldr	r0, [r3, #-2124]
	bl	write
	b	.L37
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-2116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-2108]
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #4
	bl	makeFrame
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-2124]
	bl	sendFrame
.L37:
	sub	r3, fp, #6208
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	inc
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #56
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-2124]
	bl	waitForEvent
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2104]
	cmp	r3, #0
	bne	.L38
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r0, r3
	bl	receiveFrame
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-2072]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2108]
	cmp	r2, r3
	bne	.L40
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #28
	add	r3, r3, #12
	mov	r0, r3
	bl	deliverData
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #60
	mov	r0, r3
	bl	inc
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2092]
	add	r3, r3, #1
	str	r3, [r2, #-2092]
	b	.L40
.L41:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2100]
	sub	r3, r3, #1
	str	r3, [r2, #-2100]
	sub	r3, fp, #6208
	sub	r3, r3, #12
	mov	r0, r3
	bl	inc
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2088]
	add	r3, r3, #1
	str	r3, [r2, #-2088]
.L40:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2112]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r1, [r2, #-2068]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-2116]
	mov	r0, r3
	bl	between
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	b	.L34
.L38:
	mov	r0, #3
	bl	sleep
	ldr	r0, .L46+12
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2112]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-2116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2096]
	b	.L42
.L43:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-2116]
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #4
	mov	r1, #0
	bl	makeFrame
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-2124]
	bl	sendFrame
	sub	r3, fp, #6208
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	inc
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2096]
	add	r3, r3, #1
	str	r3, [r2, #-2096]
.L42:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2092]
	str	r3, [r2, #-2092]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2088]
	str	r3, [r2, #-2088]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-2096]
	ldr	r3, [r3, #-2100]
	cmp	r2, r3
	bls	.L43
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2092]
	cmp	r3, #8
	ble	.L44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2088]
	cmp	r3, #8
	ble	.L44
	nop
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC7
	.word	.LC3
	.word	buff
	.word	.LC6
	.size	sender, .-sender
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012 Socket creation error \000"
	.align	2
.LC9:
	.ascii	"127.0.0.1\000"
	.align	2
.LC10:
	.ascii	"\012Invalid address/ Address not supported \000"
	.align	2
.LC11:
	.ascii	"\012Connection Failed \000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L49
	ldr	r0, .L55+4
	bl	puts
	mvn	r3, #0
	b	.L53
.L49:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L55+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L55+12
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L51
	ldr	r0, .L55+16
	bl	puts
	mvn	r3, #0
	b	.L53
.L51:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L52
	ldr	r0, .L55+20
	bl	puts
	mvn	r3, #0
	b	.L53
.L52:
	ldr	r0, [fp, #-28]
	bl	sender
	ldr	r0, [fp, #-28]
	bl	close
	mov	r3, #0
.L53:
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC12
	.word	.LC8
	.word	8080
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
