	.file	"165239.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	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
	.globl	validator
	.type	validator, @function
validator:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 64
	jg	.L3
	cmp	DWORD PTR -4[rbp], 10
	je	.L4
	cmp	DWORD PTR -4[rbp], 32
	jne	.L5
.L4:
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, -1
	jmp	.L6
.L3:
	cmp	DWORD PTR -4[rbp], 90
	jle	.L7
	mov	eax, -1
	jmp	.L6
.L7:
	mov	eax, 1
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	validator, .-validator
	.section	.rodata
.LC0:
	.string	"Syntax is wrong.  Boo."
.LC1:
	.string	"r"
.LC2:
	.string	"Error opening file.\n"
.LC3:
	.string	"Stat error\n"
.LC4:
	.string	"Key needs to be longer.\n"
.LC5:
	.string	"Bad characters.\n"
.LC6:
	.string	"^#%d#######"
.LC7:
	.string	"Socket error\n"
.LC8:
	.string	"localhost"
.LC9:
	.string	"Host problems.\n"
.LC10:
	.string	"Error in connecting, client.\n"
.LC11:
	.string	"Error in writing, 1\n"
.LC12:
	.string	"%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 600
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r13, rax
	cmp	DWORD PTR -548[rbp], 3
	jg	.L9
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	error
.L9:
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -86[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -71[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rax, -86[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -472[rbp], rax
	cmp	QWORD PTR -472[rbp], 0
	jne	.L10
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	error
.L10:
	lea	rax, -71[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -464[rbp], rax
	cmp	QWORD PTR -464[rbp], 0
	jne	.L11
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	error
.L11:
	lea	rax, -384[rbp]
	lea	rdx, -86[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	stat@PLT
	test	eax, eax
	jns	.L12
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	error
.L12:
	lea	rax, -240[rbp]
	lea	rdx, -71[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	stat@PLT
	test	eax, eax
	jns	.L13
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	error
.L13:
	mov	rax, QWORD PTR -336[rbp]
	mov	DWORD PTR -520[rbp], eax
	mov	rax, QWORD PTR -192[rbp]
	mov	DWORD PTR -516[rbp], eax
	mov	eax, DWORD PTR -520[rbp]
	cmp	eax, DWORD PTR -516[rbp]
	jle	.L14
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	error
.L14:
	mov	DWORD PTR -528[rbp], 0
	mov	edx, DWORD PTR -520[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -456[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -576[rbp], rax
	mov	QWORD PTR -568[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -592[rbp], rax
	mov	QWORD PTR -584[rbp], 0
	movsx	rax, edx
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L15:
	cmp	rsp, rdx
	je	.L16
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L15
.L16:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L17
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L17:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -448[rbp], rax
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -524[rbp], eax
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -524[rbp]
	mov	edi, eax
	call	validator
	mov	DWORD PTR -476[rbp], eax
	cmp	DWORD PTR -476[rbp], -1
	jne	.L19
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	error
.L19:
	mov	eax, DWORD PTR -524[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -448[rbp]
	mov	eax, DWORD PTR -528[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -524[rbp], eax
	add	DWORD PTR -528[rbp], 1
.L18:
	cmp	DWORD PTR -524[rbp], -1
	jne	.L20
	mov	DWORD PTR -528[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -440[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -608[rbp], rdx
	mov	QWORD PTR -600[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -624[rbp], rdx
	mov	QWORD PTR -616[rbp], 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L21:
	cmp	rsp, rdx
	je	.L22
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L21
.L22:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L23
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L23:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -432[rbp], rax
	mov	rax, QWORD PTR -464[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -524[rbp], eax
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -524[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -432[rbp]
	mov	eax, DWORD PTR -528[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	rax, QWORD PTR -464[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -524[rbp], eax
	add	DWORD PTR -528[rbp], 1
.L24:
	cmp	DWORD PTR -524[rbp], -1
	jne	.L25
	mov	edx, DWORD PTR -520[rbp]
	lea	rax, -96[rbp]
	mov	ecx, edx
	lea	rdx, .LC6[rip]
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -512[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -508[rbp], eax
	cmp	DWORD PTR -508[rbp], 0
	jns	.L26
	mov	esi, 2
	lea	rdi, .LC7[rip]
	call	error
.L26:
	lea	rdi, .LC8[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 0
	jne	.L27
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	error
.L27:
	lea	rax, -400[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -400[rbp], 2
	mov	rax, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -424[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -400[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	eax, DWORD PTR -512[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -398[rbp], ax
	lea	rcx, -400[rbp]
	mov	eax, DWORD PTR -508[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L28
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	error
.L28:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -504[rbp], eax
	mov	DWORD PTR -532[rbp], 0
	jmp	.L29
.L31:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -508[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -480[rbp], eax
	cmp	DWORD PTR -480[rbp], -1
	jne	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L31
.L30:
	cmp	DWORD PTR -480[rbp], -1
	jne	.L32
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	error
.L32:
	mov	eax, DWORD PTR -480[rbp]
	add	DWORD PTR -532[rbp], eax
.L29:
	mov	eax, DWORD PTR -532[rbp]
	cmp	eax, DWORD PTR -504[rbp]
	jne	.L31
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -504[rbp], eax
	mov	DWORD PTR -532[rbp], 0
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -500[rbp], eax
	mov	DWORD PTR -536[rbp], 0
	jmp	.L33
.L35:
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -448[rbp]
	mov	eax, DWORD PTR -508[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -484[rbp], eax
	cmp	DWORD PTR -484[rbp], -1
	jne	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L35
.L34:
	cmp	DWORD PTR -484[rbp], -1
	jne	.L36
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	error
.L36:
	mov	eax, DWORD PTR -484[rbp]
	add	DWORD PTR -532[rbp], eax
.L33:
	mov	eax, DWORD PTR -532[rbp]
	cmp	eax, DWORD PTR -504[rbp]
	jne	.L35
	jmp	.L37
.L39:
	mov	rax, QWORD PTR -432[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -432[rbp]
	mov	eax, DWORD PTR -508[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -488[rbp], eax
	cmp	DWORD PTR -488[rbp], -1
	jne	.L38
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L39
.L38:
	cmp	DWORD PTR -488[rbp], -1
	jne	.L40
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	error
.L40:
	mov	eax, DWORD PTR -488[rbp]
	add	DWORD PTR -536[rbp], eax
.L37:
	mov	eax, DWORD PTR -536[rbp]
	cmp	eax, DWORD PTR -500[rbp]
	jne	.L39
	mov	eax, DWORD PTR -520[rbp]
	mov	rdx, rsp
	mov	r12, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -416[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -640[rbp], rdx
	mov	QWORD PTR -632[rbp], 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L41:
	cmp	rsp, rdx
	je	.L42
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L41
.L42:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L43
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L43:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -408[rbp], rax
	mov	eax, DWORD PTR -520[rbp]
	mov	DWORD PTR -496[rbp], eax
	mov	DWORD PTR -540[rbp], 0
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -520[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -408[rbp]
	mov	eax, DWORD PTR -508[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -492[rbp], eax
	cmp	DWORD PTR -492[rbp], -1
	jne	.L45
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L46
.L45:
	cmp	DWORD PTR -492[rbp], -1
	jne	.L47
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	error
.L47:
	mov	eax, DWORD PTR -492[rbp]
	add	DWORD PTR -540[rbp], eax
.L44:
	mov	eax, DWORD PTR -540[rbp]
	cmp	eax, DWORD PTR -496[rbp]
	jne	.L46
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -408[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -508[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rsp, r12
	mov	rsp, rbx
	mov	rsp, r13
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"165239.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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	perror
	ldr	r0, [fp, #-12]
	bl	exit
	.size	error, .-error
	.align	2
	.global	validator
	.syntax unified
	.arm
	.fpu softvfp
	.type	validator, %function
validator:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #64
	bgt	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	bne	.L5
.L4:
	mov	r3, #1
	b	.L6
.L5:
	mvn	r3, #0
	b	.L6
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #90
	ble	.L7
	mvn	r3, #0
	b	.L6
.L7:
	mov	r3, #1
.L6:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	validator, .-validator
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Syntax is wrong.  Boo.\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Error opening file.\012\000"
	.align	2
.LC3:
	.ascii	"Stat error\012\000"
	.align	2
.LC4:
	.ascii	"Key needs to be longer.\012\000"
	.align	2
.LC5:
	.ascii	"Bad characters.\012\000"
	.align	2
.LC6:
	.ascii	"^#%d#######\000"
	.align	2
.LC7:
	.ascii	"Socket error\012\000"
	.align	2
.LC8:
	.ascii	"localhost\000"
	.align	2
.LC9:
	.ascii	"Host problems.\012\000"
	.align	2
.LC10:
	.ascii	"Error in connecting, client.\012\000"
	.align	2
.LC11:
	.ascii	"Error in writing, 1\012\000"
	.align	2
.LC12:
	.ascii	"%s\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 352
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #356
	str	r0, [fp, #-368]
	str	r1, [fp, #-372]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-368]
	cmp	r3, #3
	bgt	.L9
	mov	r1, #1
	ldr	r0, .L41+4
	bl	error
.L9:
	ldr	r3, [fp, #-372]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-372]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #56
	ldr	r1, .L41+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-344]
	ldr	r3, [fp, #-344]
	cmp	r3, #0
	bne	.L10
	mov	r1, #1
	ldr	r0, .L41+12
	bl	error
.L10:
	sub	r3, fp, #40
	ldr	r1, .L41+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-340]
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	bne	.L11
	mov	r1, #1
	ldr	r0, .L41+12
	bl	error
.L11:
	sub	r2, fp, #260
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	mov	r1, #1
	ldr	r0, .L41+16
	bl	error
.L12:
	sub	r2, fp, #172
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	mov	r1, #1
	ldr	r0, .L41+16
	bl	error
.L13:
	ldr	r3, [fp, #-216]
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-332]
	ldr	r2, [fp, #-336]
	ldr	r3, [fp, #-332]
	cmp	r2, r3
	ble	.L14
	mov	r1, #1
	ldr	r0, .L41+20
	bl	error
.L14:
	mov	r3, #0
	str	r3, [fp, #-352]
	ldr	ip, [fp, #-336]
	sub	r3, ip, #1
	str	r3, [fp, #-328]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-324]
	ldr	r0, [fp, #-344]
	bl	fgetc
	str	r0, [fp, #-348]
	b	.L15
.L17:
	ldr	r0, [fp, #-348]
	bl	validator
	str	r0, [fp, #-264]
	ldr	r3, [fp, #-264]
	cmn	r3, #1
	bne	.L16
	mov	r1, #1
	ldr	r0, .L41+24
	bl	error
.L16:
	ldr	r3, [fp, #-348]
	and	r1, r3, #255
	ldr	r2, [fp, #-324]
	ldr	r3, [fp, #-352]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r0, [fp, #-344]
	bl	fgetc
	str	r0, [fp, #-348]
	ldr	r3, [fp, #-352]
	add	r3, r3, #1
	str	r3, [fp, #-352]
.L15:
	ldr	r3, [fp, #-348]
	cmn	r3, #1
	bne	.L17
	mov	r3, #0
	str	r3, [fp, #-352]
	ldr	ip, [fp, #-332]
	mov	r3, sp
	mov	r5, r3
	sub	r3, ip, #1
	str	r3, [fp, #-320]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-316]
	ldr	r0, [fp, #-340]
	bl	fgetc
	str	r0, [fp, #-348]
	b	.L18
.L19:
	ldr	r3, [fp, #-348]
	and	r1, r3, #255
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-352]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r0, [fp, #-340]
	bl	fgetc
	str	r0, [fp, #-348]
	ldr	r3, [fp, #-352]
	add	r3, r3, #1
	str	r3, [fp, #-352]
.L18:
	ldr	r3, [fp, #-348]
	cmn	r3, #1
	bne	.L19
	sub	r0, fp, #68
	ldr	r3, [fp, #-336]
	ldr	r2, .L41+28
	mov	r1, #10
	bl	snprintf
	ldr	r3, [fp, #-372]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-312]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-308]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bge	.L20
	mov	r1, #2
	ldr	r0, .L41+32
	bl	error
.L20:
	ldr	r0, .L41+36
	bl	gethostbyname
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bne	.L21
	mov	r1, #1
	ldr	r0, .L41+40
	bl	error
.L21:
	sub	r3, fp, #84
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-84]	@ movhi
	ldr	r3, [fp, #-304]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-304]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #84
	add	r3, r3, #4
	mov	r0, r3
	bl	memmove
	ldr	r3, [fp, #-312]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-82]	@ movhi
	sub	r3, fp, #84
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-308]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L22
	mov	r1, #1
	ldr	r0, .L41+44
	bl	error
.L22:
	sub	r3, fp, #68
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-356]
	b	.L23
.L25:
	sub	r3, fp, #68
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-308]
	bl	write
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmn	r3, #1
	bne	.L24
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L25
.L24:
	ldr	r3, [fp, #-268]
	cmn	r3, #1
	bne	.L26
	mov	r1, #1
	ldr	r0, .L41+48
	bl	error
.L26:
	ldr	r2, [fp, #-356]
	ldr	r3, [fp, #-268]
	add	r3, r2, r3
	str	r3, [fp, #-356]
.L23:
	ldr	r2, [fp, #-356]
	ldr	r3, [fp, #-300]
	cmp	r2, r3
	bne	.L25
	ldr	r0, [fp, #-324]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-356]
	ldr	r0, [fp, #-316]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-360]
	b	.L27
.L29:
	ldr	r0, [fp, #-324]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-324]
	ldr	r0, [fp, #-308]
	bl	write
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmn	r3, #1
	bne	.L28
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L29
.L28:
	ldr	r3, [fp, #-272]
	cmn	r3, #1
	bne	.L30
	mov	r1, #1
	ldr	r0, .L41+48
	bl	error
.L30:
	ldr	r2, [fp, #-356]
	ldr	r3, [fp, #-272]
	add	r3, r2, r3
	str	r3, [fp, #-356]
.L27:
	ldr	r2, [fp, #-356]
	ldr	r3, [fp, #-300]
	cmp	r2, r3
	bne	.L29
	b	.L31
.L33:
	ldr	r0, [fp, #-316]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-316]
	ldr	r0, [fp, #-308]
	bl	write
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmn	r3, #1
	bne	.L32
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L33
.L32:
	ldr	r3, [fp, #-276]
	cmn	r3, #1
	bne	.L34
	mov	r1, #1
	ldr	r0, .L41+48
	bl	error
.L34:
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-276]
	add	r3, r2, r3
	str	r3, [fp, #-360]
.L31:
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	bne	.L33
	ldr	ip, [fp, #-336]
	mov	r3, sp
	mov	r6, r3
	sub	r3, ip, #1
	str	r3, [fp, #-292]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-336]
	str	r3, [fp, #-284]
	mov	r3, #0
	str	r3, [fp, #-364]
	b	.L35
.L37:
	ldr	r3, [fp, #-336]
	mov	r2, r3
	ldr	r1, [fp, #-288]
	ldr	r0, [fp, #-308]
	bl	read
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmn	r3, #1
	bne	.L36
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L37
.L36:
	ldr	r3, [fp, #-280]
	cmn	r3, #1
	bne	.L38
	mov	r1, #1
	ldr	r0, .L41+48
	bl	error
.L38:
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	str	r3, [fp, #-364]
.L35:
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-284]
	cmp	r2, r3
	bne	.L37
	ldr	r3, .L41+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-288]
	ldr	r1, .L41+56
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-308]
	bl	close
	mov	r3, #0
	mov	sp, r6
	mov	sp, r5
	mov	sp, r4
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stdout
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
