	.file	"623753.c"
	.intel_syntax noprefix
	.text
	.globl	port
	.bss
	.align 4
	.type	port, @object
	.size	port, 4
port:
	.zero	4
	.globl	hostname
	.align 8
	.type	hostname, @object
	.size	hostname, 8
hostname:
	.zero	8
	.globl	mode
	.align 4
	.type	mode, @object
	.size	mode, 4
mode:
	.zero	4
	.globl	filename
	.align 8
	.type	filename, @object
	.size	filename, 8
filename:
	.zero	8
	.globl	filesize
	.align 8
	.type	filesize, @object
	.size	filesize, 8
filesize:
	.zero	8
	.globl	filebuffer
	.align 8
	.type	filebuffer, @object
	.size	filebuffer, 8
filebuffer:
	.zero	8
	.globl	buffer
	.align 32
	.type	buffer, @object
	.size	buffer, 1024
buffer:
	.zero	1024
	.globl	recv_buffer
	.align 32
	.type	recv_buffer, @object
	.size	recv_buffer, 1024
recv_buffer:
	.zero	1024
	.globl	phase
	.align 4
	.type	phase, @object
	.size	phase, 4
phase:
	.zero	4
	.globl	random_packet
	.align 8
	.type	random_packet, @object
	.size	random_packet, 8
random_packet:
	.zero	8
	.globl	mode_exist
	.align 4
	.type	mode_exist, @object
	.size	mode_exist, 4
mode_exist:
	.zero	4
	.globl	port_exist
	.align 4
	.type	port_exist, @object
	.size	port_exist, 4
port_exist:
	.zero	4
	.globl	hostname_exist
	.align 4
	.type	hostname_exist, @object
	.size	hostname_exist, 4
hostname_exist:
	.zero	4
	.globl	filename_exist
	.align 4
	.type	filename_exist, @object
	.size	filename_exist, 4
filename_exist:
	.zero	4
	.globl	test_exist
	.align 4
	.type	test_exist, @object
	.size	test_exist, 4
test_exist:
	.zero	4
	.globl	test_case
	.align 4
	.type	test_case, @object
	.size	test_case, 4
test_case:
	.zero	4
	.section	.rodata
.LC0:
	.string	"-m"
.LC1:
	.string	"-p"
.LC2:
	.string	"-h"
.LC3:
	.string	"-f"
.LC4:
	.string	"-t"
	.align 8
.LC5:
	.string	"\tUsage:\n          [-m mode] [-p port] [-f filename] [-h hostname] <-t test>\n          [required] <optional>"
.LC6:
	.string	"rb"
.LC7:
	.string	"Cannot open file!"
.LC8:
	.string	"Cannot create file buffer!"
.LC9:
	.string	"Cannot read file"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	DWORD PTR -12[rbp], 0
	jmp	.L2
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR mode[rip], eax
	mov	DWORD PTR mode_exist[rip], 1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR port[rip], eax
	mov	DWORD PTR port_exist[rip], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR hostname[rip], rax
	mov	DWORD PTR hostname_exist[rip], 1
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR filename[rip], rax
	mov	DWORD PTR filename_exist[rip], 1
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	DWORD PTR test_exist[rip], 1
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR test_case[rip], eax
.L4:
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L8
	mov	eax, DWORD PTR mode_exist[rip]
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR port_exist[rip]
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR filename_exist[rip]
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR hostname_exist[rip]
	test	eax, eax
	jne	.L10
.L9:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR filename[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	lea	rdi, .LC7[rip]
	call	error
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR filesize[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR filesize[rip]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR filebuffer[rip], rax
	mov	rax, QWORD PTR filebuffer[rip]
	test	rax, rax
	jne	.L12
	lea	rdi, .LC8[rip]
	call	error
.L12:
	mov	rax, QWORD PTR filesize[rip]
	mov	rsi, rax
	mov	rax, QWORD PTR filebuffer[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR filesize[rip]
	cmp	rax, rdx
	je	.L13
	lea	rdi, .LC9[rip]
	call	error
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jne	.L14
	mov	eax, 0
	call	stop_and_wait
	jmp	.L15
.L14:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jle	.L15
	mov	eax, DWORD PTR mode[rip]
	cdqe
	mov	rdi, rax
	call	gobackn
.L15:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC10:
	.string	"Cannot open socket!"
.LC11:
	.string	"Receiver cannot be found!"
.LC13:
	.string	"Cannot send package!"
.LC14:
	.string	"-> INIT"
.LC15:
	.string	"Select error"
.LC16:
	.string	"TIMEOUT-%d FOR INIT\n"
.LC17:
	.string	"Sender time out...\n"
.LC18:
	.string	"No response!\n"
.LC19:
	.string	"Unknown response!\n"
.LC20:
	.string	"<- ACK INIT"
.LC21:
	.string	"-> PACKET %ld\n"
.LC22:
	.string	"TIMEOUT-%d FOR PACKET %ld\n"
.LC23:
	.string	"No response!"
.LC24:
	.string	"Unknown response!"
.LC25:
	.string	"<- ACK %ld\n"
.LC26:
	.string	"Sender timeout...\n"
.LC27:
	.string	"Transmission complete"
	.text
	.globl	stop_and_wait
	.type	stop_and_wait, @function
stop_and_wait:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 832
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -804[rbp], 500000
	mov	DWORD PTR -808[rbp], 0
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -800[rbp], eax
	cmp	DWORD PTR -800[rbp], 0
	jns	.L18
	lea	rdi, .LC10[rip]
	call	error
.L18:
	mov	rax, QWORD PTR hostname[rip]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -768[rbp], rax
	cmp	QWORD PTR -768[rbp], 0
	jne	.L19
	lea	rdi, .LC11[rip]
	call	error
.L19:
	lea	rax, -736[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -736[rbp], 2
	mov	rax, QWORD PTR -768[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -732[rbp], eax
	mov	eax, DWORD PTR port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -734[rbp], ax
	mov	BYTE PTR -825[rbp], 48
	lea	rax, -592[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR filename[rip]
	lea	rax, -592[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	QWORD PTR -776[rbp], 0
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rsi, -776[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -825[rbp]
	sub	rsp, 8
	lea	rcx, -528[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, mode[rip]
	lea	rcx, filesize[rip]
	mov	rsi, rax
	lea	rdi, buffer[rip]
	call	mult
	add	rsp, 16
	mov	rax, QWORD PTR filesize[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	ceil@PLT
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -760[rbp], rax
	mov	DWORD PTR -824[rbp], 16
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -720[rbp]
	mov	rdi, rdx
#APP
# 167 "the_stack_data/623753.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -796[rbp], edx
	mov	DWORD PTR -792[rbp], eax
	mov	eax, DWORD PTR -800[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -720[rbp+rax*8]
	mov	eax, DWORD PTR -800[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -720[rbp+rax*8], rdx
	mov	QWORD PTR -752[rbp], 0
	mov	QWORD PTR -744[rbp], 500000
	mov	DWORD PTR -820[rbp], 0
	mov	DWORD PTR -816[rbp], 0
	jmp	.L20
.L27:
	add	DWORD PTR -820[rbp], 1
	mov	ecx, DWORD PTR -824[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -800[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -788[rbp], eax
	cmp	DWORD PTR -788[rbp], 0
	jns	.L21
	lea	rdi, .LC13[rip]
	call	error
.L21:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, DWORD PTR test_case[rip]
	cmp	eax, 1
	jne	.L22
	mov	eax, DWORD PTR phase[rip]
	test	eax, eax
	jne	.L22
	mov	DWORD PTR -812[rbp], 0
	mov	DWORD PTR phase[rip], 1
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -800[rbp]
	lea	edi, 1[rax]
	lea	rdx, -752[rbp]
	lea	rax, -720[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -812[rbp], eax
.L23:
	cmp	DWORD PTR -812[rbp], 0
	jns	.L24
	lea	rdi, .LC15[rip]
	call	error
	jmp	.L20
.L24:
	cmp	DWORD PTR -812[rbp], 0
	jne	.L25
	mov	eax, DWORD PTR -820[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -820[rbp]
	add	eax, 1
	imul	eax, eax, 500000
	cdqe
	mov	QWORD PTR -744[rbp], rax
	jmp	.L20
.L25:
	mov	DWORD PTR -816[rbp], 1
	jmp	.L26
.L20:
	cmp	DWORD PTR -820[rbp], 2
	jle	.L27
.L26:
	cmp	DWORD PTR -816[rbp], 0
	jne	.L28
	lea	rdi, .LC17[rip]
	call	error
.L28:
	lea	rcx, -824[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -800[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, recv_buffer[rip]
	mov	edi, eax
	call	recvfrom@PLT
	test	rax, rax
	jns	.L29
	lea	rdi, .LC18[rip]
	call	error
.L29:
	lea	rsi, -776[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -825[rbp]
	sub	rsp, 8
	lea	rcx, -528[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, mode[rip]
	lea	rcx, filesize[rip]
	mov	rsi, rax
	lea	rdi, recv_buffer[rip]
	call	demult
	add	rsp, 16
	movzx	eax, BYTE PTR -825[rbp]
	cmp	al, 50
	je	.L30
	lea	rdi, .LC19[rip]
	call	error
.L30:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	DWORD PTR phase[rip], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	cdqe
	cqo
	idiv	QWORD PTR -760[rbp]
	mov	rax, rdx
	add	rax, 1
	mov	QWORD PTR random_packet[rip], rax
	jmp	.L31
.L46:
	mov	BYTE PTR -825[rbp], 49
	mov	rax, QWORD PTR -776[rbp]
	add	rax, 1
	mov	QWORD PTR -776[rbp], rax
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	rdx, QWORD PTR filebuffer[rip]
	mov	eax, DWORD PTR -808[rbp]
	cdqe
	add	rdx, rax
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	edx, 64
	mov	rdi, rax
	mov	rcx, rdx
	rep movsq
	lea	rsi, -776[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -825[rbp]
	sub	rsp, 8
	lea	rcx, -528[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, mode[rip]
	lea	rcx, filesize[rip]
	mov	rsi, rax
	lea	rdi, buffer[rip]
	call	mult
	add	rsp, 16
	mov	QWORD PTR -752[rbp], 0
	mov	QWORD PTR -744[rbp], 500000
	mov	DWORD PTR -820[rbp], 0
	mov	DWORD PTR -816[rbp], 0
	jmp	.L32
.L42:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -720[rbp]
	mov	rdi, rdx
#APP
# 238 "the_stack_data/623753.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -784[rbp], edx
	mov	DWORD PTR -780[rbp], eax
	mov	eax, DWORD PTR -800[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -720[rbp+rax*8]
	mov	eax, DWORD PTR -800[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -720[rbp+rax*8], rdx
	add	DWORD PTR -820[rbp], 1
	mov	eax, DWORD PTR test_case[rip]
	cmp	eax, 2
	jne	.L33
	mov	eax, DWORD PTR phase[rip]
	test	eax, eax
	jne	.L33
	mov	rdx, QWORD PTR -776[rbp]
	mov	rax, QWORD PTR random_packet[rip]
	cmp	rdx, rax
	jne	.L33
	mov	DWORD PTR phase[rip], 1
	mov	eax, DWORD PTR port[rip]
	sub	eax, 1
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -734[rbp], ax
	mov	ecx, DWORD PTR -824[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -800[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -788[rbp], eax
	cmp	DWORD PTR -788[rbp], 0
	jns	.L34
	lea	rdi, .LC13[rip]
	call	error
.L34:
	mov	rax, QWORD PTR -776[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L33:
	mov	eax, DWORD PTR test_case[rip]
	cmp	eax, 3
	jne	.L36
	mov	rdx, QWORD PTR -776[rbp]
	mov	rax, QWORD PTR random_packet[rip]
	cmp	rdx, rax
	jne	.L36
	mov	eax, DWORD PTR port[rip]
	sub	eax, 1
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -734[rbp], ax
	mov	ecx, DWORD PTR -824[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -800[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -788[rbp], eax
	cmp	DWORD PTR -788[rbp], 0
	jns	.L37
	lea	rdi, .LC13[rip]
	call	error
.L37:
	mov	rax, QWORD PTR -776[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L36:
	mov	eax, DWORD PTR port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -734[rbp], ax
	mov	ecx, DWORD PTR -824[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -800[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -788[rbp], eax
	cmp	DWORD PTR -788[rbp], 0
	jns	.L38
	lea	rdi, .LC13[rip]
	call	error
.L38:
	mov	rax, QWORD PTR -776[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	mov	eax, DWORD PTR -800[rbp]
	lea	edi, 1[rax]
	lea	rdx, -752[rbp]
	lea	rax, -720[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -812[rbp], eax
	cmp	DWORD PTR -812[rbp], 0
	jns	.L39
	lea	rdi, .LC15[rip]
	call	error
	jmp	.L32
.L39:
	cmp	DWORD PTR -812[rbp], 0
	jne	.L40
	mov	rdx, QWORD PTR -776[rbp]
	mov	eax, DWORD PTR -820[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -820[rbp]
	add	eax, 1
	imul	eax, eax, 500000
	cdqe
	mov	QWORD PTR -744[rbp], rax
	jmp	.L32
.L40:
	mov	DWORD PTR -816[rbp], 1
	jmp	.L41
.L32:
	cmp	DWORD PTR -820[rbp], 2
	jle	.L42
.L41:
	cmp	DWORD PTR -816[rbp], 1
	jne	.L43
	mov	eax, DWORD PTR -808[rbp]
	add	eax, 512
	mov	DWORD PTR -808[rbp], eax
	lea	rcx, -824[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -800[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, recv_buffer[rip]
	mov	edi, eax
	call	recvfrom@PLT
	test	rax, rax
	jns	.L44
	lea	rdi, .LC23[rip]
	call	error
.L44:
	lea	rsi, -776[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -825[rbp]
	sub	rsp, 8
	lea	rcx, -528[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, mode[rip]
	lea	rcx, filesize[rip]
	mov	rsi, rax
	lea	rdi, recv_buffer[rip]
	call	demult
	add	rsp, 16
	movzx	eax, BYTE PTR -825[rbp]
	cmp	al, 50
	je	.L45
	lea	rdi, .LC24[rip]
	call	error
.L45:
	mov	rax, QWORD PTR -776[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L31
.L43:
	lea	rdi, .LC26[rip]
	call	error
.L31:
	mov	eax, DWORD PTR -808[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR filesize[rip]
	cmp	rdx, rax
	jl	.L46
	mov	eax, DWORD PTR -800[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	stop_and_wait, .-stop_and_wait
	.section	.rodata
.LC28:
	.string	"Connection timeout!"
.LC29:
	.string	"TIMEOUT-%d\n"
.LC30:
	.string	"<- REQUEST %ld\n"
	.text
	.globl	gobackn
	.type	gobackn, @function
gobackn:
.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, 864
	mov	QWORD PTR -856[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -784[rbp], 1
	mov	rax, QWORD PTR -856[rbp]
	mov	QWORD PTR -776[rbp], rax
	mov	DWORD PTR -832[rbp], 0
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -828[rbp], eax
	cmp	DWORD PTR -828[rbp], 0
	jns	.L49
	lea	rdi, .LC10[rip]
	call	error
.L49:
	mov	rax, QWORD PTR hostname[rip]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -768[rbp], rax
	cmp	QWORD PTR -768[rbp], 0
	jne	.L50
	lea	rdi, .LC11[rip]
	call	error
.L50:
	lea	rax, -736[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -736[rbp], 2
	mov	rax, QWORD PTR -768[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -732[rbp], eax
	mov	eax, DWORD PTR port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -734[rbp], ax
	mov	BYTE PTR -845[rbp], 48
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR filename[rip]
	lea	rax, -592[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	QWORD PTR -792[rbp], 1
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rsi, -792[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -845[rbp]
	sub	rsp, 8
	lea	rcx, -528[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, mode[rip]
	lea	rcx, filesize[rip]
	mov	rsi, rax
	lea	rdi, buffer[rip]
	call	mult
	add	rsp, 16
	mov	rax, QWORD PTR filesize[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	ceil@PLT
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -760[rbp], rax
	mov	DWORD PTR -844[rbp], 16
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -720[rbp]
	mov	rdi, rdx
#APP
# 344 "the_stack_data/623753.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -824[rbp], edx
	mov	DWORD PTR -820[rbp], eax
	mov	eax, DWORD PTR -828[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -720[rbp+rax*8]
	mov	eax, DWORD PTR -828[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -720[rbp+rax*8], rdx
	mov	QWORD PTR -752[rbp], 0
	mov	QWORD PTR -744[rbp], 500000
	mov	DWORD PTR -840[rbp], 0
	mov	DWORD PTR -836[rbp], 0
	jmp	.L51
.L56:
	add	DWORD PTR -840[rbp], 1
	mov	ecx, DWORD PTR -844[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -828[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -816[rbp], eax
	cmp	DWORD PTR -816[rbp], 0
	jns	.L52
	lea	rdi, .LC13[rip]
	call	error
.L52:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -828[rbp]
	lea	edi, 1[rax]
	lea	rdx, -752[rbp]
	lea	rax, -720[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -812[rbp], eax
	cmp	DWORD PTR -812[rbp], 0
	jns	.L53
	lea	rdi, .LC15[rip]
	call	error
	jmp	.L51
.L53:
	cmp	DWORD PTR -812[rbp], 0
	jne	.L54
	mov	eax, DWORD PTR -840[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -840[rbp]
	add	eax, 1
	imul	eax, eax, 500000
	cdqe
	mov	QWORD PTR -744[rbp], rax
	jmp	.L51
.L54:
	mov	DWORD PTR -836[rbp], 1
	jmp	.L55
.L51:
	cmp	DWORD PTR -840[rbp], 2
	jle	.L56
.L55:
	cmp	DWORD PTR -836[rbp], 0
	jne	.L57
	lea	rdi, .LC17[rip]
	call	error
.L57:
	lea	rcx, -844[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -828[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, recv_buffer[rip]
	mov	edi, eax
	call	recvfrom@PLT
	test	rax, rax
	jns	.L58
	lea	rdi, .LC23[rip]
	call	error
.L58:
	lea	rsi, -800[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -845[rbp]
	sub	rsp, 8
	lea	rcx, -528[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, mode[rip]
	lea	rcx, filesize[rip]
	mov	rsi, rax
	lea	rdi, recv_buffer[rip]
	call	demult
	add	rsp, 16
	movzx	eax, BYTE PTR -845[rbp]
	cmp	al, 50
	jne	.L59
	mov	rax, QWORD PTR -800[rbp]
	cmp	rax, 1
	je	.L60
.L59:
	lea	rdi, .LC24[rip]
	call	error
.L60:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -720[rbp]
	mov	rdi, rdx
#APP
# 387 "the_stack_data/623753.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -808[rbp], edx
	mov	DWORD PTR -804[rbp], eax
	mov	eax, DWORD PTR -828[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -720[rbp+rax*8]
	mov	eax, DWORD PTR -828[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -720[rbp+rax*8], rdx
	mov	QWORD PTR -752[rbp], 0
	mov	QWORD PTR -744[rbp], 500000
	mov	DWORD PTR -840[rbp], 0
.L73:
	cmp	DWORD PTR -840[rbp], 2
	jle	.L61
	lea	rdi, .LC28[rip]
	call	error
.L61:
	mov	rdx, QWORD PTR -784[rbp]
	mov	rax, QWORD PTR -856[rbp]
	add	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -776[rbp], rax
	jmp	.L62
.L65:
	mov	rdx, QWORD PTR filebuffer[rip]
	mov	rax, QWORD PTR -792[rbp]
	sub	rax, 1
	sal	rax, 9
	add	rdx, rax
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	edx, 64
	mov	rdi, rax
	mov	rcx, rdx
	rep movsq
	mov	BYTE PTR -845[rbp], 49
	lea	rsi, -792[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -845[rbp]
	sub	rsp, 8
	lea	rcx, -528[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, mode[rip]
	lea	rcx, filesize[rip]
	mov	rsi, rax
	lea	rdi, buffer[rip]
	call	mult
	add	rsp, 16
	mov	ecx, DWORD PTR -844[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -828[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jns	.L63
	lea	rdi, .LC13[rip]
	call	error
.L63:
	mov	rax, QWORD PTR -792[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -792[rbp]
	add	rax, 1
	mov	QWORD PTR -792[rbp], rax
.L62:
	mov	rax, QWORD PTR -792[rbp]
	cmp	QWORD PTR -760[rbp], rax
	jl	.L64
	mov	rax, QWORD PTR -792[rbp]
	cmp	QWORD PTR -776[rbp], rax
	jge	.L65
.L64:
	mov	eax, DWORD PTR -828[rbp]
	lea	edi, 1[rax]
	lea	rdx, -752[rbp]
	lea	rax, -720[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -812[rbp], eax
	cmp	DWORD PTR -812[rbp], 0
	jns	.L66
	lea	rdi, .LC15[rip]
	call	error
	jmp	.L73
.L66:
	cmp	DWORD PTR -812[rbp], 0
	jne	.L68
	add	DWORD PTR -840[rbp], 1
	mov	eax, DWORD PTR -840[rbp]
	add	eax, 1
	imul	eax, eax, 500000
	cdqe
	mov	QWORD PTR -744[rbp], rax
	mov	rax, QWORD PTR -784[rbp]
	mov	QWORD PTR -792[rbp], rax
	mov	eax, DWORD PTR -840[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L73
.L68:
	lea	rcx, -844[rbp]
	lea	rdx, -736[rbp]
	mov	eax, DWORD PTR -828[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, recv_buffer[rip]
	mov	edi, eax
	call	recvfrom@PLT
	test	rax, rax
	jns	.L69
	lea	rdi, .LC23[rip]
	call	error
.L69:
	lea	rsi, -800[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -845[rbp]
	sub	rsp, 8
	lea	rcx, -528[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, mode[rip]
	lea	rcx, filesize[rip]
	mov	rsi, rax
	lea	rdi, recv_buffer[rip]
	call	demult
	add	rsp, 16
	mov	rax, QWORD PTR -800[rbp]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -760[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -800[rbp]
	cmp	rdx, rax
	jne	.L70
	lea	rdi, .LC27[rip]
	call	puts@PLT
	nop
	mov	eax, DWORD PTR -828[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L74
	jmp	.L75
.L70:
	mov	rax, QWORD PTR -800[rbp]
	cmp	QWORD PTR -784[rbp], rax
	jge	.L72
	mov	rax, QWORD PTR -800[rbp]
	mov	QWORD PTR -784[rbp], rax
.L72:
	mov	DWORD PTR -840[rbp], 0
	mov	QWORD PTR -744[rbp], 500000
	jmp	.L73
.L75:
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gobackn, .-gobackn
	.globl	mult
	.type	mult, @function
mult:
.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, 96
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	QWORD PTR -80[rbp], r9
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edi, eax
	call	htonl@PLT
	mov	eax, eax
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edi, eax
	call	htonl@PLT
	mov	eax, eax
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 56
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	add	DWORD PTR -28[rbp], 56
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 8
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 4
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 8
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 512
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L77
	call	__stack_chk_fail@PLT
.L77:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	mult, .-mult
	.globl	demult
	.type	demult, @function
demult:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	QWORD PTR -64[rbp], r9
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 56
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	add	DWORD PTR -4[rbp], 56
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 8
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 4
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 8
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 512
	mov	rsi, rax
	mov	rdi, QWORD PTR 16[rbp]
	call	memcpy@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	demult, .-demult
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC12:
	.long	0
	.long	1082130432
	.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	"623753.c"
	.text
	.comm	port,4,4
	.comm	hostname,4,4
	.comm	mode,4,4
	.comm	filename,4,4
	.comm	filesize,4,4
	.comm	filebuffer,4,4
	.comm	buffer,1024,4
	.comm	recv_buffer,1024,4
	.global	phase
	.bss
	.align	2
	.type	phase, %object
	.size	phase, 4
phase:
	.space	4
	.comm	random_packet,4,4
	.global	mode_exist
	.align	2
	.type	mode_exist, %object
	.size	mode_exist, 4
mode_exist:
	.space	4
	.global	port_exist
	.align	2
	.type	port_exist, %object
	.size	port_exist, 4
port_exist:
	.space	4
	.global	hostname_exist
	.align	2
	.type	hostname_exist, %object
	.size	hostname_exist, 4
hostname_exist:
	.space	4
	.global	filename_exist
	.align	2
	.type	filename_exist, %object
	.size	filename_exist, 4
filename_exist:
	.space	4
	.global	test_exist
	.align	2
	.type	test_exist, %object
	.size	test_exist, 4
test_exist:
	.space	4
	.global	test_case
	.align	2
	.type	test_case, %object
	.size	test_case, 4
test_case:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-m\000"
	.align	2
.LC1:
	.ascii	"-p\000"
	.align	2
.LC2:
	.ascii	"-h\000"
	.align	2
.LC3:
	.ascii	"-f\000"
	.align	2
.LC4:
	.ascii	"-t\000"
	.align	2
.LC5:
	.ascii	"\011Usage:\012          [-m mode] [-p port] [-f fil"
	.ascii	"ename] [-h hostname] <-t test>\012          [requir"
	.ascii	"ed] <optional>\000"
	.align	2
.LC6:
	.ascii	"rb\000"
	.align	2
.LC7:
	.ascii	"Cannot open file!\000"
	.align	2
.LC8:
	.ascii	"Cannot create file buffer!\000"
	.align	2
.LC9:
	.ascii	"Cannot read file\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L8:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L17
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L17+4
	str	r3, [r2]
	ldr	r3, .L17+8
	mov	r2, #1
	str	r2, [r3]
	b	.L4
.L3:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L17+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L17+16
	str	r3, [r2]
	ldr	r3, .L17+20
	mov	r2, #1
	str	r2, [r3]
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L17+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L17+28
	str	r3, [r2]
	ldr	r3, .L17+32
	mov	r2, #1
	str	r2, [r3]
	b	.L4
.L6:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L17+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L17+40
	str	r3, [r2]
	ldr	r3, .L17+44
	mov	r2, #1
	str	r2, [r3]
	b	.L4
.L7:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L17+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L17+52
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L17+56
	str	r3, [r2]
.L4:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L8
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L17+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L17+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L17+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
.L9:
	ldr	r0, .L17+60
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, .L17+40
	ldr	r3, [r3]
	ldr	r1, .L17+64
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L17+68
	bl	error
.L11:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	fseek
	ldr	r0, [fp, #-8]
	bl	ftell
	mov	r3, r0
	ldr	r2, .L17+72
	str	r3, [r2]
	ldr	r0, [fp, #-8]
	bl	rewind
	ldr	r3, .L17+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L17+76
	str	r2, [r3]
	ldr	r3, .L17+76
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L17+80
	bl	error
.L12:
	ldr	r3, .L17+76
	ldr	r0, [r3]
	ldr	r3, .L17+72
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	mov	r1, #1
	bl	fread
	mov	r3, r0
	ldr	r2, .L17+72
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L13
	ldr	r0, .L17+84
	bl	error
.L13:
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L14
	bl	stop_and_wait
	b	.L15
.L14:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L15
	ldr	r3, .L17+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	gobackn
.L15:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	mode
	.word	mode_exist
	.word	.LC1
	.word	port
	.word	port_exist
	.word	.LC2
	.word	hostname
	.word	hostname_exist
	.word	.LC3
	.word	filename
	.word	filename_exist
	.word	.LC4
	.word	test_exist
	.word	test_case
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	filesize
	.word	filebuffer
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Cannot open socket!\000"
	.align	2
.LC11:
	.ascii	"Receiver cannot be found!\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.align	2
.LC12:
	.ascii	"Cannot send package!\000"
	.align	2
.LC13:
	.ascii	"-> INIT\000"
	.align	2
.LC14:
	.ascii	"Select error\000"
	.align	2
.LC15:
	.ascii	"TIMEOUT-%d FOR INIT\012\000"
	.align	2
.LC16:
	.ascii	"Sender time out...\012\000"
	.align	2
.LC17:
	.ascii	"No response!\012\000"
	.align	2
.LC18:
	.ascii	"Unknown response!\012\000"
	.align	2
.LC19:
	.ascii	"<- ACK INIT\000"
	.global	__aeabi_idivmod
	.align	2
.LC20:
	.ascii	"-> PACKET %ld\012\000"
	.align	2
.LC21:
	.ascii	"TIMEOUT-%d FOR PACKET %ld\012\000"
	.align	2
.LC22:
	.ascii	"No response!\000"
	.align	2
.LC23:
	.ascii	"Unknown response!\000"
	.align	2
.LC24:
	.ascii	"<- ACK %ld\012\000"
	.align	2
.LC25:
	.ascii	"Sender timeout...\012\000"
	.align	2
.LC26:
	.ascii	"Transmission complete\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	stop_and_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_and_wait, %function
stop_and_wait:
	@ args = 0, pretend = 0, frame = 792
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #812
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L54+4
	str	r3, [fp, #-764]
	mov	r3, #0
	str	r3, [fp, #-776]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-760]
	ldr	r3, [fp, #-760]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L54+8
	bl	error
.L20:
	ldr	r3, .L54+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-756]
	ldr	r3, [fp, #-756]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L54+16
	bl	error
.L21:
	sub	r3, fp, #728
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #716
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-756]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	sub	r3, fp, #728
	add	r3, r3, #4
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L54+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #716
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #48
	strb	r3, [fp, #-797]
	sub	r3, fp, #584
	mov	r0, r3
	mov	r3, #56
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L54+24
	ldr	r4, [r3]
	ldr	r3, .L54+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #584
	mov	r1, r4
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-796]
	sub	r3, fp, #528
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r2, fp, #584
	sub	r1, fp, #796
	sub	r1, r1, #1
	sub	r3, fp, #528
	str	r3, [sp, #8]
	sub	r3, fp, #796
	str	r3, [sp, #4]
	ldr	r3, .L54+28
	str	r3, [sp]
	ldr	r3, .L54+32
	ldr	r0, .L54+36
	bl	mult
	ldr	r3, .L54+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L54+40
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-752]
	mov	r3, #16
	str	r3, [fp, #-792]
	sub	r3, fp, #712
	str	r3, [fp, #-748]
	mov	r3, #0
	str	r3, [fp, #-772]
	b	.L22
.L23:
	ldr	r3, [fp, #-748]
	ldr	r2, [fp, #-772]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-772]
	add	r3, r3, #1
	str	r3, [fp, #-772]
.L22:
	ldr	r3, [fp, #-772]
	cmp	r3, #31
	bls	.L23
	ldr	r3, [fp, #-760]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-700]
	ldr	r3, [fp, #-760]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-700]
	mov	r3, #0
	str	r3, [fp, #-736]
	ldr	r3, .L54+4
	str	r3, [fp, #-732]
	mov	r3, #0
	str	r3, [fp, #-788]
	mov	r3, #0
	str	r3, [fp, #-784]
	b	.L24
.L31:
	ldr	r3, [fp, #-788]
	add	r3, r3, #1
	str	r3, [fp, #-788]
	ldr	r3, [fp, #-792]
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L54+36
	ldr	r0, [fp, #-760]
	bl	sendto
	str	r0, [fp, #-744]
	ldr	r3, [fp, #-744]
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L54+44
	bl	error
.L25:
	ldr	r0, .L54+48
	bl	puts
	ldr	r3, .L54+52
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L26
	ldr	r3, .L54+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	mov	r3, #0
	str	r3, [fp, #-780]
	ldr	r3, .L54+56
	mov	r2, #1
	str	r2, [r3]
	b	.L27
.L26:
	ldr	r3, [fp, #-760]
	add	r0, r3, #1
	sub	r1, fp, #712
	sub	r3, fp, #736
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-780]
.L27:
	ldr	r3, [fp, #-780]
	cmp	r3, #0
	bge	.L28
	ldr	r0, .L54+60
	bl	error
	b	.L24
.L28:
	ldr	r3, [fp, #-780]
	cmp	r3, #0
	bne	.L29
	ldr	r1, [fp, #-788]
	ldr	r0, .L54+64
	bl	printf
	ldr	r3, [fp, #-788]
	add	r1, r3, #1
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #5
	str	r3, [fp, #-732]
	b	.L24
.L29:
	mov	r3, #1
	str	r3, [fp, #-784]
	b	.L30
.L24:
	ldr	r3, [fp, #-788]
	cmp	r3, #2
	ble	.L31
.L30:
	ldr	r3, [fp, #-784]
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L54+68
	bl	error
.L32:
	sub	r3, fp, #792
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L54+72
	ldr	r0, [fp, #-760]
	bl	recvfrom
	mov	r3, r0
	cmp	r3, #0
	bge	.L33
	ldr	r0, .L54+76
	bl	error
.L33:
	sub	r2, fp, #584
	sub	r1, fp, #796
	sub	r1, r1, #1
	sub	r3, fp, #528
	str	r3, [sp, #8]
	sub	r3, fp, #796
	str	r3, [sp, #4]
	ldr	r3, .L54+28
	str	r3, [sp]
	ldr	r3, .L54+32
	ldr	r0, .L54+72
	bl	demult
	ldrb	r3, [fp, #-797]	@ zero_extendqisi2
	cmp	r3, #50
	beq	.L34
	ldr	r0, .L54+80
	bl	error
.L34:
	ldr	r0, .L54+84
	bl	puts
	ldr	r3, .L54+56
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-752]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	ldr	r2, .L54+88
	str	r3, [r2]
	b	.L35
.L52:
	mov	r3, #49
	strb	r3, [fp, #-797]
	ldr	r3, [fp, #-796]
	add	r3, r3, #1
	str	r3, [fp, #-796]
	sub	r3, fp, #528
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L54+92
	ldr	r2, [r3]
	ldr	r3, [fp, #-776]
	add	r2, r2, r3
	sub	r3, fp, #528
	mov	r1, r2
	mov	r2, #512
	mov	r0, r3
	bl	memcpy
	sub	r2, fp, #584
	sub	r1, fp, #796
	sub	r1, r1, #1
	sub	r3, fp, #528
	str	r3, [sp, #8]
	sub	r3, fp, #796
	str	r3, [sp, #4]
	ldr	r3, .L54+28
	str	r3, [sp]
	ldr	r3, .L54+32
	ldr	r0, .L54+36
	bl	mult
	mov	r3, #0
	str	r3, [fp, #-736]
	ldr	r3, .L54+4
	str	r3, [fp, #-732]
	mov	r3, #0
	str	r3, [fp, #-788]
	mov	r3, #0
	str	r3, [fp, #-784]
	b	.L36
.L48:
	sub	r3, fp, #712
	str	r3, [fp, #-740]
	mov	r3, #0
	str	r3, [fp, #-768]
	b	.L37
.L38:
	ldr	r3, [fp, #-740]
	ldr	r2, [fp, #-768]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-768]
	add	r3, r3, #1
	str	r3, [fp, #-768]
.L37:
	ldr	r3, [fp, #-768]
	cmp	r3, #31
	bls	.L38
	ldr	r3, [fp, #-760]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-700]
	ldr	r3, [fp, #-760]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-700]
	ldr	r3, [fp, #-788]
	add	r3, r3, #1
	str	r3, [fp, #-788]
	ldr	r3, .L54+52
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L39
	ldr	r3, .L54+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L39
	ldr	r2, [fp, #-796]
	ldr	r3, .L54+88
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L39
	ldr	r3, .L54+56
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L54+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #716
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-792]
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L54+36
	ldr	r0, [fp, #-760]
	bl	sendto
	str	r0, [fp, #-744]
	ldr	r3, [fp, #-744]
	cmp	r3, #0
	bge	.L40
	ldr	r0, .L54+44
	bl	error
.L40:
	ldr	r3, [fp, #-796]
	mov	r1, r3
	ldr	r0, .L54+96
	bl	printf
	b	.L41
.L39:
	ldr	r3, .L54+52
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L42
	ldr	r2, [fp, #-796]
	ldr	r3, .L54+88
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L42
	ldr	r3, .L54+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #716
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-792]
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L54+36
	ldr	r0, [fp, #-760]
	bl	sendto
	str	r0, [fp, #-744]
	ldr	r3, [fp, #-744]
	cmp	r3, #0
	bge	.L43
	ldr	r0, .L54+44
	bl	error
.L43:
	ldr	r3, [fp, #-796]
	mov	r1, r3
	ldr	r0, .L54+96
	bl	printf
	b	.L41
.L42:
	ldr	r3, .L54+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #716
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-792]
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L54+36
	ldr	r0, [fp, #-760]
	bl	sendto
	str	r0, [fp, #-744]
	ldr	r3, [fp, #-744]
	cmp	r3, #0
	bge	.L44
	ldr	r0, .L54+44
	bl	error
.L44:
	ldr	r3, [fp, #-796]
	mov	r1, r3
	ldr	r0, .L54+96
	bl	printf
.L41:
	ldr	r3, [fp, #-760]
	add	r0, r3, #1
	sub	r1, fp, #712
	sub	r3, fp, #736
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-780]
	ldr	r3, [fp, #-780]
	cmp	r3, #0
	bge	.L45
	ldr	r0, .L54+60
	bl	error
	b	.L36
.L45:
	ldr	r3, [fp, #-780]
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-796]
	mov	r2, r3
	ldr	r1, [fp, #-788]
	ldr	r0, .L54+100
	bl	printf
	ldr	r3, [fp, #-788]
	add	r1, r3, #1
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #5
	str	r3, [fp, #-732]
	b	.L36
.L46:
	mov	r3, #1
	str	r3, [fp, #-784]
	b	.L47
.L36:
	ldr	r3, [fp, #-788]
	cmp	r3, #2
	ble	.L48
.L47:
	ldr	r3, [fp, #-784]
	cmp	r3, #1
	bne	.L49
	ldr	r3, [fp, #-776]
	add	r3, r3, #512
	str	r3, [fp, #-776]
	sub	r3, fp, #792
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L54+72
	ldr	r0, [fp, #-760]
	bl	recvfrom
	mov	r3, r0
	cmp	r3, #0
	bge	.L50
	ldr	r0, .L54+104
	bl	error
.L50:
	sub	r2, fp, #584
	sub	r1, fp, #796
	sub	r1, r1, #1
	sub	r3, fp, #528
	str	r3, [sp, #8]
	sub	r3, fp, #796
	str	r3, [sp, #4]
	ldr	r3, .L54+28
	str	r3, [sp]
	ldr	r3, .L54+32
	ldr	r0, .L54+72
	bl	demult
	ldrb	r3, [fp, #-797]	@ zero_extendqisi2
	cmp	r3, #50
	beq	.L51
	ldr	r0, .L54+108
	bl	error
.L51:
	ldr	r3, [fp, #-796]
	mov	r1, r3
	ldr	r0, .L54+112
	bl	printf
	b	.L35
.L49:
	ldr	r0, .L54+116
	bl	error
.L35:
	ldr	r3, .L54+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-776]
	cmp	r2, r3
	blt	.L52
	ldr	r0, [fp, #-760]
	bl	close
	ldr	r0, .L54+120
	bl	puts
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC27
	.word	500000
	.word	.LC10
	.word	hostname
	.word	.LC11
	.word	port
	.word	filename
	.word	mode
	.word	filesize
	.word	buffer
	.word	1082130432
	.word	.LC12
	.word	.LC13
	.word	test_case
	.word	phase
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	recv_buffer
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	random_packet
	.word	filebuffer
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	stop_and_wait, .-stop_and_wait
	.section	.rodata
	.align	2
.LC28:
	.ascii	"Connection timeout!\000"
	.align	2
.LC29:
	.ascii	"TIMEOUT-%d\012\000"
	.align	2
.LC30:
	.ascii	"<- REQUEST %ld\012\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gobackn
	.syntax unified
	.arm
	.fpu softvfp
	.type	gobackn, %function
gobackn:
	@ args = 0, pretend = 0, frame = 808
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #828
	str	r0, [fp, #-816]
	ldr	r3, .L88
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-792]
	ldr	r3, [fp, #-816]
	str	r3, [fp, #-772]
	mov	r3, #0
	str	r3, [fp, #-768]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-764]
	ldr	r3, [fp, #-764]
	cmp	r3, #0
	bge	.L57
	ldr	r0, .L88+4
	bl	error
.L57:
	ldr	r3, .L88+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-760]
	ldr	r3, [fp, #-760]
	cmp	r3, #0
	bne	.L58
	ldr	r0, .L88+12
	bl	error
.L58:
	sub	r3, fp, #728
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #716
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-760]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	sub	r3, fp, #728
	add	r3, r3, #4
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L88+16
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #716
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #48
	strb	r3, [fp, #-805]
	ldr	r3, .L88+20
	ldr	r4, [r3]
	ldr	r3, .L88+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #584
	mov	r1, r4
	mov	r0, r3
	bl	memcpy
	mov	r3, #1
	str	r3, [fp, #-800]
	sub	r3, fp, #528
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r2, fp, #584
	sub	r1, fp, #804
	sub	r1, r1, #1
	sub	r3, fp, #528
	str	r3, [sp, #8]
	sub	r3, fp, #800
	str	r3, [sp, #4]
	ldr	r3, .L88+24
	str	r3, [sp]
	ldr	r3, .L88+28
	ldr	r0, .L88+32
	bl	mult
	ldr	r3, .L88+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L88+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-756]
	mov	r3, #16
	str	r3, [fp, #-796]
	sub	r3, fp, #712
	str	r3, [fp, #-752]
	mov	r3, #0
	str	r3, [fp, #-780]
	b	.L59
.L60:
	ldr	r3, [fp, #-752]
	ldr	r2, [fp, #-780]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-780]
	add	r3, r3, #1
	str	r3, [fp, #-780]
.L59:
	ldr	r3, [fp, #-780]
	cmp	r3, #31
	bls	.L60
	ldr	r3, [fp, #-764]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-700]
	ldr	r3, [fp, #-764]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-700]
	mov	r3, #0
	str	r3, [fp, #-736]
	ldr	r3, .L88+40
	str	r3, [fp, #-732]
	mov	r3, #0
	str	r3, [fp, #-788]
	mov	r3, #0
	str	r3, [fp, #-784]
	b	.L61
.L66:
	ldr	r3, [fp, #-788]
	add	r3, r3, #1
	str	r3, [fp, #-788]
	ldr	r3, [fp, #-796]
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L88+32
	ldr	r0, [fp, #-764]
	bl	sendto
	str	r0, [fp, #-748]
	ldr	r3, [fp, #-748]
	cmp	r3, #0
	bge	.L62
	ldr	r0, .L88+44
	bl	error
.L62:
	ldr	r0, .L88+48
	bl	puts
	ldr	r3, [fp, #-764]
	add	r0, r3, #1
	sub	r1, fp, #712
	sub	r3, fp, #736
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-744]
	ldr	r3, [fp, #-744]
	cmp	r3, #0
	bge	.L63
	ldr	r0, .L88+52
	bl	error
	b	.L61
.L63:
	ldr	r3, [fp, #-744]
	cmp	r3, #0
	bne	.L64
	ldr	r1, [fp, #-788]
	ldr	r0, .L88+56
	bl	printf
	ldr	r3, [fp, #-788]
	add	r1, r3, #1
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #5
	str	r3, [fp, #-732]
	b	.L61
.L64:
	mov	r3, #1
	str	r3, [fp, #-784]
	b	.L65
.L61:
	ldr	r3, [fp, #-788]
	cmp	r3, #2
	ble	.L66
.L65:
	ldr	r3, [fp, #-784]
	cmp	r3, #0
	bne	.L67
	ldr	r0, .L88+60
	bl	error
.L67:
	sub	r3, fp, #796
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L88+64
	ldr	r0, [fp, #-764]
	bl	recvfrom
	mov	r3, r0
	cmp	r3, #0
	bge	.L68
	ldr	r0, .L88+68
	bl	error
.L68:
	sub	r2, fp, #584
	sub	r1, fp, #804
	sub	r1, r1, #1
	sub	r3, fp, #528
	str	r3, [sp, #8]
	sub	r3, fp, #804
	str	r3, [sp, #4]
	ldr	r3, .L88+24
	str	r3, [sp]
	ldr	r3, .L88+28
	ldr	r0, .L88+64
	bl	demult
	ldrb	r3, [fp, #-805]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L69
	ldr	r3, [fp, #-804]
	cmp	r3, #1
	beq	.L70
.L69:
	ldr	r0, .L88+72
	bl	error
.L70:
	ldr	r0, .L88+76
	bl	puts
	sub	r3, fp, #712
	str	r3, [fp, #-740]
	mov	r3, #0
	str	r3, [fp, #-776]
	b	.L71
.L72:
	ldr	r3, [fp, #-740]
	ldr	r2, [fp, #-776]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-776]
	add	r3, r3, #1
	str	r3, [fp, #-776]
.L71:
	ldr	r3, [fp, #-776]
	cmp	r3, #31
	bls	.L72
	ldr	r3, [fp, #-764]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-700]
	ldr	r3, [fp, #-764]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-700]
	mov	r3, #0
	str	r3, [fp, #-736]
	ldr	r3, .L88+40
	str	r3, [fp, #-732]
	mov	r3, #0
	str	r3, [fp, #-788]
.L85:
	ldr	r3, [fp, #-788]
	cmp	r3, #2
	ble	.L73
	ldr	r0, .L88+80
	bl	error
.L73:
	ldr	r2, [fp, #-792]
	ldr	r3, [fp, #-816]
	add	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-772]
	b	.L74
.L77:
	ldr	r3, .L88+84
	ldr	r3, [r3]
	ldr	r2, [fp, #-800]
	sub	r2, r2, #1
	lsl	r2, r2, #9
	add	r2, r3, r2
	sub	r3, fp, #528
	mov	r1, r2
	mov	r2, #512
	mov	r0, r3
	bl	memcpy
	mov	r3, #49
	strb	r3, [fp, #-805]
	sub	r2, fp, #584
	sub	r1, fp, #804
	sub	r1, r1, #1
	sub	r3, fp, #528
	str	r3, [sp, #8]
	sub	r3, fp, #800
	str	r3, [sp, #4]
	ldr	r3, .L88+24
	str	r3, [sp]
	ldr	r3, .L88+28
	ldr	r0, .L88+32
	bl	mult
	ldr	r3, [fp, #-796]
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L88+32
	ldr	r0, [fp, #-764]
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bge	.L75
	ldr	r0, .L88+44
	bl	error
.L75:
	ldr	r3, [fp, #-800]
	mov	r1, r3
	ldr	r0, .L88+88
	bl	printf
	ldr	r3, [fp, #-800]
	add	r3, r3, #1
	str	r3, [fp, #-800]
.L74:
	ldr	r3, [fp, #-800]
	ldr	r2, [fp, #-756]
	cmp	r2, r3
	blt	.L76
	ldr	r3, [fp, #-800]
	ldr	r2, [fp, #-772]
	cmp	r2, r3
	bge	.L77
.L76:
	ldr	r3, [fp, #-764]
	add	r0, r3, #1
	sub	r1, fp, #712
	sub	r3, fp, #736
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-744]
	ldr	r3, [fp, #-744]
	cmp	r3, #0
	bge	.L78
	ldr	r0, .L88+52
	bl	error
	b	.L85
.L78:
	ldr	r3, [fp, #-744]
	cmp	r3, #0
	bne	.L80
	ldr	r3, [fp, #-788]
	add	r3, r3, #1
	str	r3, [fp, #-788]
	ldr	r3, [fp, #-788]
	add	r1, r3, #1
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #5
	str	r3, [fp, #-732]
	ldr	r3, [fp, #-792]
	str	r3, [fp, #-800]
	ldr	r1, [fp, #-788]
	ldr	r0, .L88+92
	bl	printf
	b	.L85
.L80:
	sub	r3, fp, #796
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L88+64
	ldr	r0, [fp, #-764]
	bl	recvfrom
	mov	r3, r0
	cmp	r3, #0
	bge	.L81
	ldr	r0, .L88+68
	bl	error
.L81:
	sub	r2, fp, #584
	sub	r1, fp, #804
	sub	r1, r1, #1
	sub	r3, fp, #528
	str	r3, [sp, #8]
	sub	r3, fp, #804
	str	r3, [sp, #4]
	ldr	r3, .L88+24
	str	r3, [sp]
	ldr	r3, .L88+28
	ldr	r0, .L88+64
	bl	demult
	ldr	r3, [fp, #-804]
	mov	r1, r3
	ldr	r0, .L88+96
	bl	printf
	ldr	r3, [fp, #-756]
	add	r2, r3, #1
	ldr	r3, [fp, #-804]
	cmp	r2, r3
	bne	.L82
	ldr	r0, .L88+100
	bl	puts
	nop
	ldr	r0, [fp, #-764]
	bl	close
	nop
	ldr	r3, .L88
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L86
	b	.L87
.L82:
	ldr	r3, [fp, #-804]
	ldr	r2, [fp, #-792]
	cmp	r2, r3
	bge	.L84
	ldr	r3, [fp, #-804]
	str	r3, [fp, #-792]
.L84:
	mov	r3, #0
	str	r3, [fp, #-788]
	ldr	r3, .L88+40
	str	r3, [fp, #-732]
	b	.L85
.L87:
	bl	__stack_chk_fail
.L86:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC31
	.word	.LC10
	.word	hostname
	.word	.LC11
	.word	port
	.word	filename
	.word	mode
	.word	filesize
	.word	buffer
	.word	1082130432
	.word	500000
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	recv_buffer
	.word	.LC22
	.word	.LC23
	.word	.LC19
	.word	.LC28
	.word	filebuffer
	.word	.LC20
	.word	.LC29
	.word	.LC30
	.word	.LC26
	.size	gobackn, .-gobackn
	.section	.rodata
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mult
	.syntax unified
	.arm
	.fpu softvfp
	.type	mult, %function
mult:
	@ args = 12, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-56]
	ldr	r3, .L92
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #56
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	add	r3, r3, #56
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	sub	r1, fp, #24
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	sub	r1, fp, #20
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	sub	r1, fp, #16
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #512
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	memcpy
	nop
	ldr	r3, .L92
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L91
	bl	__stack_chk_fail
.L91:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC32
	.size	mult, .-mult
	.align	2
	.global	demult
	.syntax unified
	.arm
	.fpu softvfp
	.type	demult, %function
demult:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #56
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	memcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #56
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	memcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #4]
	bl	memcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #8]
	bl	memcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #12]
	bl	memcpy
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	demult, .-demult
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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	r0, [fp, #-8]
	bl	puts
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
