	.file	"190142.c"
	.intel_syntax noprefix
	.text
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC0:
	.string	"ERROR: Failed to obtain Socket Descriptor. (errno = %d)\n"
	.align 8
.LC1:
	.string	"[Server] Obtaining socket descriptor successfully."
	.align 8
.LC2:
	.string	"ERROR: Failed to bind Port. (errno = %d)\n"
	.align 8
.LC3:
	.string	"[Server] Binded tcp port %d in addr 127.0.0.1 sucessfully.\n"
	.align 8
.LC4:
	.string	"ERROR: Failed to listen Port. (errno = %d)\n"
	.align 8
.LC5:
	.string	"[Server] Listening the port %d successfully.\n"
	.align 8
.LC6:
	.string	"ERROR: Obtaining new Socket Despcritor. (errno = %d)\n"
	.align 8
.LC7:
	.string	"[Server] Server has got connected from %s.\n"
.LC8:
	.string	"receive.txt"
.LC9:
	.string	"a"
	.align 8
.LC10:
	.string	"File %s Cannot be opened file on server.\n"
.LC11:
	.string	"File write failed on server.\n"
.LC12:
	.string	"recv() timed out."
	.align 8
.LC13:
	.string	"recv() failed due to errno = %d\n"
	.align 8
.LC14:
	.string	"[Server] Received clientinfo file from client!"
.LC15:
	.string	"quote.sh"
	.align 8
.LC16:
	.string	"[Server] Sending %s to the Client...\n"
.LC17:
	.string	"r"
	.align 8
.LC18:
	.string	"ERROR: File %s not found on server. (errno = %d)\n"
	.align 8
.LC19:
	.string	"ERROR: Failed to send file %s. (errno = %d)\n"
.LC20:
	.string	"[Server] Sent Ok to client!"
.LC21:
	.string	"quote.out"
	.align 8
.LC22:
	.string	"[Server] Received quote.out file from client!"
.LC23:
	.string	"sig.out"
.LC24:
	.string	"akpub.pem"
.LC25:
	.string	"result"
	.align 8
.LC26:
	.string	"[Server] Received result file from client!"
	.align 8
.LC27:
	.string	"[Server] generating checkquote on server!"
	.align 8
.LC28:
	.string	"[Server] Connection with Client closed. Server will wait now..."
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8388[rbp], eax
	cmp	DWORD PTR -8388[rbp], -1
	jne	.L3
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	WORD PTR -8240[rbp], 2
	mov	edi, 20000
	call	htons@PLT
	mov	WORD PTR -8238[rbp], ax
	mov	DWORD PTR -8236[rbp], 0
	lea	rax, -8240[rbp]
	add	rax, 8
	mov	QWORD PTR [rax], 0
	lea	rcx, -8240[rbp]
	mov	eax, DWORD PTR -8388[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L4
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	esi, 20000
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8388[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L5
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	esi, 20000
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8392[rbp], 0
	jmp	.L6
.L53:
	mov	DWORD PTR -8396[rbp], 16
	lea	rdx, -8396[rbp]
	lea	rcx, -8224[rbp]
	mov	eax, DWORD PTR -8388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -8384[rbp], eax
	cmp	DWORD PTR -8384[rbp], -1
	jne	.L7
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC8[rip]
	mov	QWORD PTR -8336[rbp], rax
	mov	rax, QWORD PTR -8336[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8328[rbp], rax
	cmp	QWORD PTR -8328[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -8336[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -8380[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -8380[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8328[rbp]
	lea	rax, -8208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -8376[rbp], eax
	mov	eax, DWORD PTR -8376[rbp]
	cmp	eax, DWORD PTR -8380[rbp]
	jge	.L11
	lea	rdi, .LC11[rip]
	call	error
.L11:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	cmp	DWORD PTR -8380[rbp], 0
	je	.L12
	cmp	DWORD PTR -8380[rbp], 4096
	jne	.L12
.L10:
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8384[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -8380[rbp], eax
	cmp	DWORD PTR -8380[rbp], 0
	jg	.L13
.L12:
	cmp	DWORD PTR -8380[rbp], 0
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L15
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L14
.L15:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8328[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	lea	rax, .LC15[rip]
	mov	QWORD PTR -8320[rbp], rax
	mov	rax, QWORD PTR -8320[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8320[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8312[rbp], rax
	cmp	QWORD PTR -8312[rbp], 0
	jne	.L16
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8320[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	lea	rax, -4112[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -8372[rbp]
	movsx	rdx, eax
	lea	rsi, -4112[rbp]
	mov	eax, DWORD PTR -8384[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L18
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8320[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rax, -4112[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L17:
	mov	rdx, QWORD PTR -8312[rbp]
	lea	rax, -4112[rbp]
	mov	rcx, rdx
	mov	edx, 4096
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8372[rbp], eax
	cmp	DWORD PTR -8372[rbp], 0
	jg	.L19
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rax, .LC21[rip]
	mov	QWORD PTR -8304[rbp], rax
	mov	rax, QWORD PTR -8304[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8296[rbp], rax
	cmp	QWORD PTR -8296[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR -8304[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L20:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -8368[rbp], 0
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -8368[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8296[rbp]
	lea	rax, -8208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -8364[rbp], eax
	mov	eax, DWORD PTR -8364[rbp]
	cmp	eax, DWORD PTR -8368[rbp]
	jge	.L23
	lea	rdi, .LC11[rip]
	call	error
.L23:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	cmp	DWORD PTR -8368[rbp], 0
	je	.L24
	cmp	DWORD PTR -8368[rbp], 4096
	jne	.L24
.L22:
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8384[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -8368[rbp], eax
	cmp	DWORD PTR -8368[rbp], 0
	jg	.L25
.L24:
	cmp	DWORD PTR -8368[rbp], 0
	jns	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L27
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L26
.L27:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8296[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L21:
	lea	rax, .LC23[rip]
	mov	QWORD PTR -8288[rbp], rax
	mov	rax, QWORD PTR -8288[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8280[rbp], rax
	cmp	QWORD PTR -8280[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR -8288[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L29
.L28:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -8360[rbp], 0
	jmp	.L30
.L33:
	mov	eax, DWORD PTR -8360[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8280[rbp]
	lea	rax, -8208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -8356[rbp], eax
	mov	eax, DWORD PTR -8356[rbp]
	cmp	eax, DWORD PTR -8360[rbp]
	jge	.L31
	lea	rdi, .LC11[rip]
	call	error
.L31:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	cmp	DWORD PTR -8360[rbp], 0
	je	.L32
	cmp	DWORD PTR -8360[rbp], 4096
	jne	.L32
.L30:
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8384[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -8360[rbp], eax
	cmp	DWORD PTR -8360[rbp], 0
	jg	.L33
.L32:
	cmp	DWORD PTR -8360[rbp], 0
	jns	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L35
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L34
.L35:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8280[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L29:
	lea	rax, .LC24[rip]
	mov	QWORD PTR -8272[rbp], rax
	mov	rax, QWORD PTR -8272[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8264[rbp], rax
	cmp	QWORD PTR -8264[rbp], 0
	jne	.L36
	mov	rax, QWORD PTR -8272[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L37
.L36:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -8352[rbp], 0
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -8352[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8264[rbp]
	lea	rax, -8208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -8348[rbp], eax
	mov	eax, DWORD PTR -8348[rbp]
	cmp	eax, DWORD PTR -8352[rbp]
	jge	.L39
	lea	rdi, .LC11[rip]
	call	error
.L39:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	cmp	DWORD PTR -8352[rbp], 0
	je	.L40
	cmp	DWORD PTR -8352[rbp], 4096
	jne	.L40
.L38:
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8384[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -8352[rbp], eax
	cmp	DWORD PTR -8352[rbp], 0
	jg	.L41
.L40:
	cmp	DWORD PTR -8352[rbp], 0
	jns	.L42
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L43
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L42
.L43:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8264[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L37:
	lea	rax, .LC25[rip]
	mov	QWORD PTR -8256[rbp], rax
	mov	rax, QWORD PTR -8256[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8248[rbp], rax
	cmp	QWORD PTR -8248[rbp], 0
	jne	.L44
	mov	rax, QWORD PTR -8256[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L45
.L44:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -8344[rbp], 0
	jmp	.L46
.L49:
	mov	eax, DWORD PTR -8344[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8248[rbp]
	lea	rax, -8208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -8340[rbp], eax
	mov	eax, DWORD PTR -8340[rbp]
	cmp	eax, DWORD PTR -8344[rbp]
	jge	.L47
	lea	rdi, .LC11[rip]
	call	error
.L47:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	cmp	DWORD PTR -8344[rbp], 0
	je	.L48
	cmp	DWORD PTR -8344[rbp], 4096
	jne	.L48
.L46:
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8384[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -8344[rbp], eax
	cmp	DWORD PTR -8344[rbp], 0
	jg	.L49
.L48:
	cmp	DWORD PTR -8344[rbp], 0
	jns	.L50
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L51
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L50
.L51:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L50:
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8248[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L45:
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	DWORD PTR -8392[rbp], 1
	mov	eax, DWORD PTR -8384[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	nop
.L52:
	mov	edx, 1
	mov	esi, 0
	mov	edi, -1
	call	waitpid@PLT
	test	eax, eax
	jg	.L52
.L6:
	cmp	DWORD PTR -8392[rbp], 0
	je	.L53
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"190142.c"
	.text
	.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	perror
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR: Failed to obtain Socket Descriptor. (errno ="
	.ascii	" %d)\012\000"
	.align	2
.LC1:
	.ascii	"[Server] Obtaining socket descriptor successfully.\000"
	.align	2
.LC2:
	.ascii	"ERROR: Failed to bind Port. (errno = %d)\012\000"
	.align	2
.LC3:
	.ascii	"[Server] Binded tcp port %d in addr 127.0.0.1 suces"
	.ascii	"sfully.\012\000"
	.align	2
.LC4:
	.ascii	"ERROR: Failed to listen Port. (errno = %d)\012\000"
	.align	2
.LC5:
	.ascii	"[Server] Listening the port %d successfully.\012\000"
	.align	2
.LC6:
	.ascii	"ERROR: Obtaining new Socket Despcritor. (errno = %d"
	.ascii	")\012\000"
	.align	2
.LC7:
	.ascii	"[Server] Server has got connected from %s.\012\000"
	.align	2
.LC8:
	.ascii	"receive.txt\000"
	.align	2
.LC9:
	.ascii	"a\000"
	.align	2
.LC10:
	.ascii	"File %s Cannot be opened file on server.\012\000"
	.align	2
.LC11:
	.ascii	"File write failed on server.\012\000"
	.align	2
.LC12:
	.ascii	"recv() timed out.\000"
	.align	2
.LC13:
	.ascii	"recv() failed due to errno = %d\012\000"
	.align	2
.LC14:
	.ascii	"[Server] Received clientinfo file from client!\000"
	.align	2
.LC15:
	.ascii	"quote.sh\000"
	.align	2
.LC16:
	.ascii	"[Server] Sending %s to the Client...\012\000"
	.align	2
.LC17:
	.ascii	"r\000"
	.align	2
.LC18:
	.ascii	"ERROR: File %s not found on server. (errno = %d)\012"
	.ascii	"\000"
	.align	2
.LC19:
	.ascii	"ERROR: Failed to send file %s. (errno = %d)\012\000"
	.align	2
.LC20:
	.ascii	"[Server] Sent Ok to client!\000"
	.align	2
.LC21:
	.ascii	"quote.out\000"
	.align	2
.LC22:
	.ascii	"[Server] Received quote.out file from client!\000"
	.align	2
.LC23:
	.ascii	"sig.out\000"
	.align	2
.LC24:
	.ascii	"akpub.pem\000"
	.align	2
.LC25:
	.ascii	"result\000"
	.align	2
.LC26:
	.ascii	"[Server] Received result file from client!\000"
	.align	2
.LC27:
	.ascii	"[Server] generating checkquote on server!\000"
	.align	2
.LC28:
	.ascii	"[Server] Connection with Client closed. Server will"
	.ascii	" wait now...\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8320
	sub	sp, sp, #20
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-136]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, .L56+12
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-36]	@ movhi
	ldr	r0, .L56+16
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	strh	r2, [r3, #-34]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	add	r3, r3, #8
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-136]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r1, .L56+16
	ldr	r0, .L56+24
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #5
	ldr	r0, [r3, #-136]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r1, .L56+16
	ldr	r0, .L56+32
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-140]
	b	.L6
.L53:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-144]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #8320
	sub	r2, r2, #12
	sub	r2, r2, #16
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-136]
	bl	accept
	str	r0, [r4, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+36
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L56+40
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L56+44
	str	r3, [r2, #-128]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L56+48
	ldr	r0, [r3, #-128]
	bl	fopen
	str	r0, [r4, #-124]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-128]
	ldr	r0, .L56+52
	bl	printf
	b	.L9
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	b	.L10
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-120]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-124]
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-116]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-116]
	ldr	r3, [r3, #-120]
	cmp	r2, r3
	bge	.L11
	ldr	r0, .L56+56
	bl	error
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #4096
	bne	.L12
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-132]
	bl	recv
	str	r0, [r4, #-120]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #0
	bgt	.L13
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #0
	bge	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L15
	ldr	r0, .L56+60
	bl	puts
	b	.L14
.L15:
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+64
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L14:
	ldr	r0, .L56+68
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-124]
	bl	fclose
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L56+72
	str	r3, [r2, #-112]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-112]
	ldr	r0, .L56+76
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L56+80
	ldr	r0, [r3, #-112]
	bl	fopen
	str	r0, [r4, #-108]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-112]
	ldr	r1, .L56+84
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L17
.L19:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-104]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-132]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L18
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-112]
	ldr	r1, .L56+88
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-108]
	mov	r2, #4096
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bgt	.L19
	ldr	r0, .L56+92
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L56+96
	str	r3, [r2, #-100]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L56+48
	ldr	r0, [r3, #-100]
	bl	fopen
	str	r0, [r4, #-96]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-100]
	ldr	r0, .L56+52
	bl	printf
	b	.L21
.L20:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-92]
	b	.L22
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-92]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-96]
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-88]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-88]
	ldr	r3, [r3, #-92]
	cmp	r2, r3
	bge	.L23
	ldr	r0, .L56+56
	bl	error
.L23:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	cmp	r3, #4096
	bne	.L24
.L22:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-132]
	bl	recv
	str	r0, [r4, #-92]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	cmp	r3, #0
	bgt	.L25
.L24:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	cmp	r3, #0
	bge	.L26
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L27
	ldr	r0, .L56+60
	bl	puts
	b	.L26
.L27:
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+64
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L26:
	ldr	r0, .L56+100
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-96]
	bl	fclose
.L21:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L56+104
	str	r3, [r2, #-84]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L56+48
	ldr	r0, [r3, #-84]
	bl	fopen
	str	r0, [r4, #-80]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	bne	.L28
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-84]
	ldr	r0, .L56+52
	bl	printf
	b	.L29
.L28:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-76]
	b	.L30
.L33:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-76]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-80]
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-72]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-72]
	ldr	r3, [r3, #-76]
	cmp	r2, r3
	bge	.L31
	ldr	r0, .L56+56
	bl	error
.L31:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	beq	.L32
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #4096
	bne	.L32
.L30:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-132]
	bl	recv
	str	r0, [r4, #-76]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	bgt	.L33
.L32:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	bge	.L34
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L35
	ldr	r0, .L56+60
	bl	puts
	b	.L34
.L35:
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+64
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L34:
	ldr	r0, .L56+100
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-80]
	bl	fclose
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L56+108
	str	r3, [r2, #-68]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L56+48
	ldr	r0, [r3, #-68]
	bl	fopen
	str	r0, [r4, #-64]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #0
	bne	.L36
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-68]
	ldr	r0, .L56+52
	bl	printf
	b	.L37
.L36:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-60]
	b	.L38
.L41:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-60]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-64]
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-56]
	ldr	r3, [r3, #-60]
	cmp	r2, r3
	bge	.L39
	ldr	r0, .L56+56
	bl	error
.L39:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L40
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #4096
	bne	.L40
.L38:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-132]
	bl	recv
	str	r0, [r4, #-60]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	bgt	.L41
.L40:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	bge	.L42
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L43
	ldr	r0, .L56+60
	bl	puts
	b	.L42
.L43:
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+64
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L42:
	ldr	r0, .L56+100
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-64]
	bl	fclose
.L37:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L56+112
	str	r3, [r2, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L56+48
	ldr	r0, [r3, #-52]
	bl	fopen
	str	r0, [r4, #-48]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #0
	bne	.L44
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-52]
	ldr	r0, .L56+52
	bl	printf
	b	.L45
.L44:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L46
.L49:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-48]
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-40]
	ldr	r3, [r3, #-44]
	cmp	r2, r3
	bge	.L47
	ldr	r0, .L56+56
	bl	error
.L47:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L48
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #4096
	bne	.L48
.L46:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-132]
	bl	recv
	str	r0, [r4, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bgt	.L49
.L48:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bge	.L50
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L51
	ldr	r0, .L56+60
	bl	puts
	b	.L50
.L51:
	ldr	r3, .L56+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L56+64
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L50:
	ldr	r0, .L56+116
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-48]
	bl	fclose
.L45:
	ldr	r0, .L56+120
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-140]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-132]
	bl	close
	ldr	r0, .L56+124
	bl	puts
	nop
.L52:
	mov	r2, #1
	mov	r1, #0
	mvn	r0, #0
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	bgt	.L52
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-140]
	cmp	r3, #0
	beq	.L53
	mov	r3, #0
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC29
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	20000
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
