	.file	"465158.c"
	.intel_syntax noprefix
	.text
	.globl	buffer
	.bss
	.align 32
	.type	buffer, @object
	.size	buffer, 262144
buffer:
	.zero	262144
	.globl	textContents
	.align 32
	.type	textContents, @object
	.size	textContents, 262144
textContents:
	.zero	262144
	.globl	keyContents
	.align 32
	.type	keyContents, @object
	.size	keyContents, 262144
keyContents:
	.zero	262144
	.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	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC0:
	.string	"USAGE: %s [plaintext file] [key] [port]\n"
.LC1:
	.string	"r"
.LC2:
	.string	"%s: can't open %s\n"
	.align 8
.LC3:
	.string	"%s error: input contains bad characters\n"
.LC4:
	.string	"\n"
.LC5:
	.string	"Error: key '%s' is too short\n"
.LC6:
	.string	"localhost"
.LC7:
	.string	"CLIENT: ERROR, no such host\n"
.LC8:
	.string	"CLIENT: ERROR opening socket"
	.align 8
.LC9:
	.string	"Error: could not contact otp_dec_d on port %d\n"
	.align 8
.LC10:
	.string	"CLIENT: ERROR writing to socket"
.LC11:
	.string	"NOT ALL CHARS WRITTEN!"
	.align 8
.LC12:
	.string	"CLIENT: ERROR reading from socket"
.LC13:
	.string	"@@"
.LC14:
	.string	"~~"
	.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
	push	rbx
	sub	rsp, 632
	.cfi_offset 3, -24
	mov	DWORD PTR -628[rbp], edi
	mov	QWORD PTR -640[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -628[rbp], 3
	jg	.L3
	mov	rax, QWORD PTR -640[rbp]
	mov	rdx, QWORD 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:
	mov	rax, QWORD PTR -640[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -640[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	edx, 262144
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	mov	DWORD PTR -612[rbp], 0
	jmp	.L4
.L12:
	mov	eax, DWORD PTR -612[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -640[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -576[rbp], rax
	cmp	QWORD PTR -576[rbp], 0
	jne	.L6
	mov	eax, DWORD PTR -612[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -640[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -640[rbp]
	mov	rdx, QWORD 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
.L7:
	nop
.L6:
	mov	rax, QWORD PTR -576[rbp]
	mov	rdx, rax
	mov	esi, 262144
	lea	rdi, buffer[rip]
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR -576[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -608[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -608[rbp]
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 36
	je	.L9
	mov	eax, DWORD PTR -608[rbp]
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 42
	je	.L9
	mov	eax, DWORD PTR -608[rbp]
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 33
	je	.L9
	mov	eax, DWORD PTR -608[rbp]
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 40
	je	.L9
	mov	eax, DWORD PTR -608[rbp]
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	je	.L9
	mov	eax, DWORD PTR -608[rbp]
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 45
	jne	.L10
.L9:
	mov	rax, QWORD PTR -640[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	add	DWORD PTR -608[rbp], 1
.L8:
	mov	ebx, DWORD PTR -608[rbp]
	lea	rdi, buffer[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L11
	mov	edx, 262144
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	add	DWORD PTR -612[rbp], 1
.L4:
	cmp	DWORD PTR -612[rbp], 1
	jle	.L12
	mov	edx, 262144
	mov	esi, 0
	lea	rdi, textContents[rip]
	call	memset@PLT
	mov	edx, 262144
	mov	esi, 0
	lea	rdi, keyContents[rip]
	call	memset@PLT
	lea	rax, -544[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -576[rbp], rax
	cmp	QWORD PTR -576[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -640[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -544[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	nop
.L14:
	mov	rax, QWORD PTR -576[rbp]
	mov	rdx, rax
	mov	esi, 262144
	lea	rdi, textContents[rip]
	call	fgets@PLT
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR -576[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -288[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -576[rbp], rax
	cmp	QWORD PTR -576[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -640[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -288[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	nop
.L17:
	mov	rax, QWORD PTR -576[rbp]
	mov	rdx, rax
	mov	esi, 262144
	lea	rdi, keyContents[rip]
	call	fgets@PLT
	test	rax, rax
	jne	.L18
	lea	rsi, .LC4[rip]
	lea	rdi, textContents[rip]
	call	strcspn@PLT
	lea	rdx, textContents[rip]
	mov	BYTE PTR [rax+rdx], 0
	lea	rsi, .LC4[rip]
	lea	rdi, keyContents[rip]
	call	strcspn@PLT
	lea	rdx, keyContents[rip]
	mov	BYTE PTR [rax+rdx], 0
	lea	rdi, keyContents[rip]
	call	strlen@PLT
	mov	DWORD PTR -604[rbp], eax
	lea	rdi, textContents[rip]
	call	strlen@PLT
	mov	DWORD PTR -600[rbp], eax
	mov	eax, DWORD PTR -604[rbp]
	cmp	eax, DWORD PTR -600[rbp]
	jge	.L19
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -288[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	WORD PTR buffer[rip], 42
	lea	rsi, textContents[rip]
	lea	rdi, buffer[rip]
	call	strcat@PLT
	lea	rdi, buffer[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, buffer[rip]
	add	rax, rdx
	mov	WORD PTR [rax], 36
	lea	rsi, keyContents[rip]
	lea	rdi, buffer[rip]
	call	strcat@PLT
	lea	rdi, buffer[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, buffer[rip]
	add	rax, rdx
	mov	WORD PTR [rax], 16448
	mov	BYTE PTR 2[rax], 0
	lea	rax, -560[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -640[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -596[rbp], eax
	mov	WORD PTR -560[rbp], 2
	mov	eax, DWORD PTR -596[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -558[rbp], ax
	lea	rdi, .LC6[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR -568[rbp], rax
	cmp	QWORD PTR -568[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -568[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -560[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -592[rbp], eax
	cmp	DWORD PTR -592[rbp], 0
	jns	.L21
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	error
.L21:
	lea	rcx, -560[rbp]
	mov	eax, DWORD PTR -592[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -596[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L22:
	lea	rdi, buffer[rip]
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -592[rbp]
	mov	ecx, 0
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -588[rbp], eax
	mov	eax, DWORD PTR -588[rbp]
	mov	DWORD PTR -620[rbp], eax
	cmp	DWORD PTR -620[rbp], 0
	jns	.L24
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	error
	jmp	.L24
.L25:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, buffer[rip]
	call	strlen@PLT
	mov	edx, DWORD PTR -620[rbp]
	movsx	rcx, edx
	sub	rax, rcx
	mov	rdx, rax
	mov	eax, DWORD PTR -620[rbp]
	cdqe
	lea	rcx, buffer[rip]
	lea	rsi, [rax+rcx]
	mov	eax, DWORD PTR -592[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -588[rbp], eax
	mov	eax, DWORD PTR -588[rbp]
	add	DWORD PTR -620[rbp], eax
.L24:
	mov	eax, DWORD PTR -620[rbp]
	movsx	rbx, eax
	lea	rdi, buffer[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L25
	mov	edx, 262144
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	mov	DWORD PTR -616[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -616[rbp]
	cdqe
	lea	rdx, buffer[rip]
	lea	rsi, [rax+rdx]
	mov	eax, DWORD PTR -592[rbp]
	mov	ecx, 0
	mov	edx, 262143
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -580[rbp], eax
	cmp	DWORD PTR -580[rbp], 0
	jns	.L27
	mov	esi, 2
	lea	rdi, .LC12[rip]
	call	error
.L27:
	mov	eax, DWORD PTR -580[rbp]
	add	DWORD PTR -616[rbp], eax
.L26:
	lea	rsi, .LC13[rip]
	lea	rdi, buffer[rip]
	call	strstr@PLT
	test	rax, rax
	je	.L28
	lea	rsi, .LC13[rip]
	lea	rdi, buffer[rip]
	call	strstr@PLT
	lea	rdx, buffer[rip]
	sub	rax, rdx
	mov	DWORD PTR -584[rbp], eax
	mov	eax, DWORD PTR -584[rbp]
	cdqe
	lea	rdx, buffer[rip]
	mov	BYTE PTR [rax+rdx], 0
	lea	rsi, .LC14[rip]
	lea	rdi, buffer[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -596[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L29:
	lea	rdi, buffer[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -592[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	mov	rbx, QWORD PTR -8[rbp]
	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	"465158.c"
	.text
	.comm	buffer,262144,4
	.comm	textContents,262144,4
	.comm	keyContents,262144,4
	.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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	perror
	ldr	r0, [fp, #-12]
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC0:
	.ascii	"USAGE: %s [plaintext file] [key] [port]\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"%s: can't open %s\012\000"
	.align	2
.LC3:
	.ascii	"%s error: input contains bad characters\012\000"
	.align	2
.LC4:
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"Error: key '%s' is too short\012\000"
	.align	2
.LC6:
	.ascii	"*\000"
	.align	2
.LC7:
	.ascii	"$\000"
	.align	2
.LC8:
	.ascii	"@@\000"
	.align	2
.LC9:
	.ascii	"localhost\000"
	.align	2
.LC10:
	.ascii	"CLIENT: ERROR, no such host\012\000"
	.align	2
.LC11:
	.ascii	"CLIENT: ERROR opening socket\000"
	.align	2
.LC12:
	.ascii	"Error: could not contact otp_dec_d on port %d\012\000"
	.align	2
.LC13:
	.ascii	"CLIENT: ERROR writing to socket\000"
	.align	2
.LC14:
	.ascii	"NOT ALL CHARS WRITTEN!\000"
	.align	2
.LC15:
	.ascii	"CLIENT: ERROR reading from socket\000"
	.align	2
.LC16:
	.ascii	"~~\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 592
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #596
	str	r0, [fp, #-600]
	str	r1, [fp, #-604]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-600]
	cmp	r3, #3
	bgt	.L3
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-604]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L32+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-604]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #528
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-604]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r2, #262144
	mov	r1, #0
	ldr	r0, .L32+12
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-588]
	b	.L4
.L12:
	ldr	r3, [fp, #-588]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-604]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L32+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-604]
	ldr	r1, [r3]
	ldr	r3, [fp, #-588]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-604]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r1
	ldr	r1, .L32+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	nop
.L6:
	ldr	r2, [fp, #-580]
	mov	r1, #262144
	ldr	r0, .L32+12
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, [fp, #-580]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-584]
	b	.L8
.L11:
	ldr	r2, .L32+12
	ldr	r3, [fp, #-584]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L9
	ldr	r2, .L32+12
	ldr	r3, [fp, #-584]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L9
	ldr	r2, .L32+12
	ldr	r3, [fp, #-584]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #33
	beq	.L9
	ldr	r2, .L32+12
	ldr	r3, [fp, #-584]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #40
	beq	.L9
	ldr	r2, .L32+12
	ldr	r3, [fp, #-584]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L9
	ldr	r2, .L32+12
	ldr	r3, [fp, #-584]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L10
.L9:
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-604]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L32+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-584]
	add	r3, r3, #1
	str	r3, [fp, #-584]
.L8:
	ldr	r0, .L32+12
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-584]
	cmp	r3, r2
	bcc	.L11
	mov	r2, #262144
	mov	r1, #0
	ldr	r0, .L32+12
	bl	memset
	ldr	r3, [fp, #-588]
	add	r3, r3, #1
	str	r3, [fp, #-588]
.L4:
	ldr	r3, [fp, #-588]
	cmp	r3, #1
	ble	.L12
	mov	r2, #262144
	mov	r1, #0
	ldr	r0, .L32+28
	bl	memset
	mov	r2, #262144
	mov	r1, #0
	ldr	r0, .L32+32
	bl	memset
	sub	r3, fp, #528
	ldr	r1, .L32+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-604]
	ldr	r2, [r3]
	sub	r3, fp, #528
	ldr	r1, .L32+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L15:
	nop
.L14:
	ldr	r2, [fp, #-580]
	mov	r1, #262144
	ldr	r0, .L32+28
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, [fp, #-580]
	bl	fclose
	sub	r3, fp, #272
	ldr	r1, .L32+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-604]
	ldr	r2, [r3]
	sub	r3, fp, #272
	ldr	r1, .L32+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L18:
	nop
.L17:
	ldr	r2, [fp, #-580]
	mov	r1, #262144
	ldr	r0, .L32+32
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r1, .L32+36
	ldr	r0, .L32+28
	bl	strcspn
	mov	r3, r0
	ldr	r2, .L32+28
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r1, .L32+36
	ldr	r0, .L32+32
	bl	strcspn
	mov	r3, r0
	ldr	r2, .L32+32
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r0, .L32+32
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-576]
	ldr	r0, .L32+28
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-572]
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-572]
	cmp	r2, r3
	bge	.L19
	ldr	r3, .L32+4
	ldr	r3, [r3]
	sub	r2, fp, #272
	ldr	r1, .L32+40
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L19:
	ldr	r2, .L32+12
	ldr	r3, .L32+44
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r1, .L32+28
	ldr	r0, .L32+12
	bl	strcat
	ldr	r0, .L32+12
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L32+12
	add	r3, r2, r3
	ldr	r2, .L32+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r1, .L32+32
	ldr	r0, .L32+12
	bl	strcat
	ldr	r0, .L32+12
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L32+12
	add	r3, r2, r3
	ldr	r2, .L32+52
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #544
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-604]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-568]
	sub	r3, fp, #12
	sub	r3, r3, #532
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-568]
	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, #532
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L32+56
	bl	gethostbyname
	str	r0, [fp, #-564]
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L32+60
	bl	fwrite
	mov	r0, #2
	bl	exit
.L20:
	ldr	r3, [fp, #-564]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-564]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #544
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-560]
	ldr	r3, [fp, #-560]
	cmp	r3, #0
	bge	.L21
	mov	r1, #1
	ldr	r0, .L32+64
	bl	error
.L21:
	sub	r3, fp, #544
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-560]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L22
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-568]
	ldr	r1, .L32+68
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L22:
	ldr	r0, .L32+12
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, .L32+12
	ldr	r0, [fp, #-560]
	bl	send
	str	r0, [fp, #-556]
	ldr	r3, [fp, #-556]
	str	r3, [fp, #-596]
	ldr	r3, [fp, #-596]
	cmp	r3, #0
	bge	.L24
	mov	r1, #1
	ldr	r0, .L32+72
	bl	error
	b	.L24
.L25:
	ldr	r0, .L32+76
	bl	puts
	ldr	r3, [fp, #-596]
	ldr	r2, .L32+12
	add	r4, r3, r2
	ldr	r0, .L32+12
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-596]
	sub	r2, r2, r3
	mov	r3, #0
	mov	r1, r4
	ldr	r0, [fp, #-560]
	bl	send
	str	r0, [fp, #-556]
	ldr	r2, [fp, #-596]
	ldr	r3, [fp, #-556]
	add	r3, r2, r3
	str	r3, [fp, #-596]
.L24:
	ldr	r0, .L32+12
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-596]
	cmp	r2, r3
	bhi	.L25
	mov	r2, #262144
	mov	r1, #0
	ldr	r0, .L32+12
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-592]
	b	.L26
.L28:
	ldr	r3, [fp, #-592]
	ldr	r2, .L32+12
	add	r1, r3, r2
	mov	r3, #0
	ldr	r2, .L32+80
	ldr	r0, [fp, #-560]
	bl	recv
	str	r0, [fp, #-548]
	ldr	r3, [fp, #-548]
	cmp	r3, #0
	bge	.L27
	mov	r1, #2
	ldr	r0, .L32+84
	bl	error
.L27:
	ldr	r2, [fp, #-592]
	ldr	r3, [fp, #-548]
	add	r3, r2, r3
	str	r3, [fp, #-592]
.L26:
	ldr	r1, .L32+52
	ldr	r0, .L32+12
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r1, .L32+52
	ldr	r0, .L32+12
	bl	strstr
	mov	r3, r0
	ldr	r2, .L32+12
	sub	r3, r3, r2
	str	r3, [fp, #-552]
	ldr	r2, .L32+12
	ldr	r3, [fp, #-552]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, .L32+88
	ldr	r0, .L32+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-568]
	ldr	r1, .L32+68
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L29:
	ldr	r0, .L32+12
	bl	puts
	ldr	r0, [fp, #-560]
	bl	close
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC17
	.word	stderr
	.word	.LC0
	.word	buffer
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	textContents
	.word	keyContents
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	262143
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
