	.file	"734802.c"
	.intel_syntax noprefix
	.text
	.globl	clear_input
	.type	clear_input, @function
clear_input:
.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
.L3:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 10
	je	.L4
	cmp	DWORD PTR -4[rbp], -1
	jne	.L3
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clear_input, .-clear_input
	.section	.rodata
.LC0:
	.string	"Sender: "
	.align 8
.LC1:
	.string	"Enter an username with 8 characters!"
.LC2:
	.string	"Error reading the Sender"
	.text
	.globl	snd_check
	.type	snd_check, @function
snd_check:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
.L10:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 9
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 8
	je	.L12
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L10
.L6:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L12:
	nop
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	snd_check, .-snd_check
	.section	.rodata
.LC3:
	.string	"Receiver: "
.LC4:
	.string	"Error reading the Reciever"
	.text
	.globl	rcv_check
	.type	rcv_check, @function
rcv_check:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
.L18:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 9
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 8
	je	.L20
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L18
.L14:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L20:
	nop
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	rcv_check, .-rcv_check
	.section	.rodata
.LC5:
	.string	"Subject: "
.LC6:
	.string	"Error reading the Subject"
	.text
	.globl	sbj_check
	.type	sbj_check, @function
sbj_check:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 81
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L24
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L24:
	nop
.L23:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sbj_check, .-sbj_check
	.section	.rodata
.LC7:
	.string	"Message: "
	.align 8
.LC8:
	.string	"Error reading the snds username"
	.text
	.globl	msg_check
	.type	msg_check, @function
msg_check:
.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, 1056
	mov	QWORD PTR -1048[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L29:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L26
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1040[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	je	.L29
	jmp	.L28
.L26:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L28:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	msg_check, .-msg_check
	.section	.rodata
.LC9:
	.string	"Socket error"
.LC10:
	.string	"127.0.0.1"
	.align 8
.LC11:
	.string	"Connection with server (%s) established\n"
.LC12:
	.string	"%s"
	.align 8
.LC13:
	.string	"Connect error - no server available"
.LC14:
	.string	"Send message: "
.LC15:
	.string	"send\n"
.LC16:
	.string	"\n"
.LC17:
	.string	"ERR"
.LC18:
	.string	"list\n"
.LC19:
	.string	"0"
.LC20:
	.string	"%s has %s Emails.\n"
.LC21:
	.string	"read\n"
.LC22:
	.string	"Write email number:"
.LC23:
	.string	"Message: \n"
.LC24:
	.string	"Error reading the sbj number!"
.LC25:
	.string	"del\n"
.LC26:
	.string	"ERR\n"
.LC27:
	.string	"quit\n"
	.align 8
.LC28:
	.string	"Please select between:\nsend, list, read, del or quit"
	.text
	.globl	main
	.type	main, @function
main:
.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, 3280
	mov	DWORD PTR -3268[rbp], edi
	mov	QWORD PTR -3280[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -3088[rbp], 0
	mov	QWORD PTR -3080[rbp], 0
	lea	rdx, -3072[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -2064[rbp], 0
	mov	QWORD PTR -2056[rbp], 0
	lea	rdx, -2048[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -3256[rbp], eax
	cmp	DWORD PTR -3256[rbp], -1
	jne	.L32
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L55
.L32:
	lea	rax, -3232[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -3232[rbp], 2
	mov	edi, 6543
	call	htons@PLT
	mov	WORD PTR -3230[rbp], ax
	cmp	DWORD PTR -3268[rbp], 1
	jg	.L34
	lea	rax, -3232[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	call	inet_aton@PLT
	jmp	.L35
.L34:
	cmp	DWORD PTR -3268[rbp], 2
	jne	.L36
	mov	rax, QWORD PTR -3280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -3232[rbp]
	add	rdx, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	inet_aton@PLT
	jmp	.L35
.L36:
	cmp	DWORD PTR -3268[rbp], 3
	jne	.L35
	mov	rax, QWORD PTR -3280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -3232[rbp]
	add	rdx, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	inet_aton@PLT
	mov	rax, QWORD PTR -3280[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rcx, -3248[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -3240[rbp], rax
	mov	rax, QWORD PTR -3240[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -3230[rbp], ax
.L35:
	lea	rcx, -3232[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jne	.L37
	mov	eax, DWORD PTR -3228[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -3252[rbp], eax
	cmp	DWORD PTR -3252[rbp], 0
	jle	.L54
	mov	eax, DWORD PTR -3252[rbp]
	cdqe
	mov	BYTE PTR -3088[rbp+rax], 0
	lea	rax, -3088[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L54
.L37:
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L55
.L54:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -3088[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -2064[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -3088[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L39
	lea	rax, -3088[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -3088[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	lea	rax, -3202[rbp]
	mov	rdi, rax
	call	snd_check
	call	clear_input
	lea	rax, -3193[rbp]
	mov	rdi, rax
	call	rcv_check
	call	clear_input
	lea	rax, -3184[rbp]
	mov	rdi, rax
	call	sbj_check
	lea	rax, -3184[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strtok@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	msg_check
	lea	rdx, -3202[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -2064[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	lea	rdx, -3193[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -2064[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	lea	rdx, -3184[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -2064[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 59
	lea	rdx, -1040[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -3088[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -3252[rbp], eax
	cmp	DWORD PTR -3252[rbp], 0
	jle	.L41
	lea	rax, -3088[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L41:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L39
.L40:
	lea	rax, -3088[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
	lea	rax, -3088[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -3193[rbp]
	mov	rdi, rax
	call	rcv_check
	call	clear_input
	lea	rax, -3193[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -3193[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -3252[rbp], eax
	cmp	DWORD PTR -3252[rbp], 0
	jle	.L43
	lea	rax, -3088[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L44
	lea	rdx, -3088[rbp]
	lea	rax, -3193[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L44:
	lea	rdx, -3088[rbp]
	lea	rax, -3193[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -3252[rbp], eax
	lea	rax, -3088[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L43:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L39
.L42:
	lea	rax, -3088[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L45
	lea	rax, -3088[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -3193[rbp]
	mov	rdi, rax
	call	rcv_check
	call	clear_input
	lea	rax, -3193[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -3193[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -3252[rbp], eax
	cmp	DWORD PTR -3252[rbp], 0
	jle	.L46
	lea	rax, -3088[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L47
	lea	rdx, -3088[rbp]
	lea	rax, -3193[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L47:
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -3206[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L48
	lea	rsi, -3206[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -3252[rbp], eax
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rax, -3088[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L48:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	jmp	.L39
.L46:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L39
.L45:
	lea	rax, -3088[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L49
	lea	rax, -3088[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -3193[rbp]
	mov	rdi, rax
	call	rcv_check
	call	clear_input
	lea	rax, -3193[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -3193[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -3252[rbp], eax
	cmp	DWORD PTR -3252[rbp], 0
	jle	.L50
	lea	rax, -3088[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	lea	rax, -3088[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L51:
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -3206[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L53
	lea	rsi, -3206[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	lea	rsi, -3088[rbp]
	mov	eax, DWORD PTR -3256[rbp]
	mov	ecx, 0
	mov	edx, 1023
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -3252[rbp], eax
	lea	rax, -3088[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L53:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	jmp	.L39
.L50:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L39
.L49:
	lea	rax, -3088[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rdi, .LC28[rip]
	call	puts@PLT
.L39:
	lea	rax, -3088[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
.L52:
	mov	eax, DWORD PTR -3256[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L55:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"734802.c"
	.text
	.align	2
	.global	clear_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_input, %function
clear_input:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
.L3:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L4
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L3
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	clear_input, .-clear_input
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Sender: \000"
	.align	2
.LC1:
	.ascii	"Enter an username with 8 characters!\000"
	.align	2
.LC2:
	.ascii	"Error reading the Sender\000"
	.text
	.align	2
	.global	snd_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_check, %function
snd_check:
	@ 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]
.L10:
	ldr	r0, .L13
	bl	printf
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #9
	ldr	r0, [fp, #-8]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	cmp	r3, #8
	beq	.L12
	ldr	r0, .L13+8
	bl	puts
	b	.L10
.L6:
	ldr	r0, .L13+12
	bl	printf
	b	.L9
.L12:
	nop
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.size	snd_check, .-snd_check
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Receiver: \000"
	.align	2
.LC4:
	.ascii	"Error reading the Reciever\000"
	.text
	.align	2
	.global	rcv_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcv_check, %function
rcv_check:
	@ 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]
.L20:
	ldr	r0, .L23
	bl	printf
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #9
	ldr	r0, [fp, #-8]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	cmp	r3, #8
	beq	.L22
	ldr	r0, .L23+8
	bl	puts
	b	.L20
.L16:
	ldr	r0, .L23+12
	bl	printf
	b	.L19
.L22:
	nop
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	stdin
	.word	.LC1
	.word	.LC4
	.size	rcv_check, .-rcv_check
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Subject: \000"
	.align	2
.LC6:
	.ascii	"Error reading the Subject\000"
	.text
	.align	2
	.global	sbj_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	sbj_check, %function
sbj_check:
	@ 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, .L29
	bl	printf
	ldr	r3, .L29+4
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #81
	ldr	r0, [fp, #-8]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L29+8
	bl	printf
	b	.L27
.L28:
	nop
.L27:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC5
	.word	stdin
	.word	.LC6
	.size	sbj_check, .-sbj_check
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Message: \000"
	.align	2
.LC8:
	.ascii	"Error reading the snds username\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	msg_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	msg_check, %function
msg_check:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L35:
	ldr	r0, .L37+4
	bl	printf
	ldr	r3, .L37+8
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	strcat
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #46
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	b	.L34
.L32:
	ldr	r0, .L37+12
	bl	puts
.L34:
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC9
	.word	.LC7
	.word	stdin
	.word	.LC8
	.size	msg_check, .-msg_check
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Socket error\000"
	.align	2
.LC11:
	.ascii	"127.0.0.1\000"
	.align	2
.LC12:
	.ascii	"Connection with server (%s) established\012\000"
	.align	2
.LC13:
	.ascii	"%s\000"
	.align	2
.LC14:
	.ascii	"Connect error - no server available\000"
	.align	2
.LC15:
	.ascii	"Send message: \000"
	.align	2
.LC16:
	.ascii	"send\012\000"
	.align	2
.LC17:
	.ascii	"\012\000"
	.align	2
.LC18:
	.ascii	";\000"
	.align	2
.LC19:
	.ascii	"ERR\000"
	.align	2
.LC20:
	.ascii	"list\012\000"
	.align	2
.LC21:
	.ascii	"0\000"
	.align	2
.LC22:
	.ascii	"%s has %s Emails.\012\000"
	.align	2
.LC23:
	.ascii	"read\012\000"
	.align	2
.LC24:
	.ascii	"Write email number:\000"
	.align	2
.LC25:
	.ascii	"Message: \012\000"
	.align	2
.LC26:
	.ascii	"Error reading the sbj number!\000"
	.align	2
.LC27:
	.ascii	"del\012\000"
	.align	2
.LC28:
	.ascii	"ERR\012\000"
	.align	2
.LC29:
	.ascii	"quit\012\000"
	.align	2
.LC30:
	.ascii	"Please select between:\012send, list, read, del or "
	.ascii	"quit\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3232
	str	r0, [fp, #-3232]
	str	r1, [fp, #-3236]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-3080]
	sub	r3, fp, #3072
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-3220]
	ldr	r3, [fp, #-3220]
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L65+4
	bl	perror
	mov	r3, #1
	b	.L63
.L40:
	sub	r3, fp, #3200
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #3200
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L65+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #3200
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-3232]
	cmp	r3, #1
	bgt	.L42
	sub	r3, fp, #3200
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+12
	bl	inet_aton
	b	.L43
.L42:
	ldr	r3, [fp, #-3232]
	cmp	r3, #2
	bne	.L44
	ldr	r3, [fp, #-3236]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #3200
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	inet_aton
	b	.L43
.L44:
	ldr	r3, [fp, #-3232]
	cmp	r3, #3
	bne	.L43
	ldr	r3, [fp, #-3236]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #3200
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	inet_aton
	ldr	r3, [fp, #-3236]
	add	r3, r3, #8
	ldr	r0, [r3]
	sub	r3, fp, #3216
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #10
	mov	r1, r3
	bl	strtol
	str	r0, [fp, #-3216]
	ldr	r3, [fp, #-3216]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #3200
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
.L43:
	sub	r3, fp, #3200
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-3220]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r0, [fp, #-3204]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L65+16
	bl	printf
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L65+20
	ldr	r0, [fp, #-3220]
	bl	recv
	str	r0, [fp, #-3212]
	ldr	r3, [fp, #-3212]
	cmp	r3, #0
	ble	.L62
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-3212]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+24
	bl	printf
	b	.L62
.L45:
	ldr	r0, .L65+28
	bl	perror
	mov	r3, #1
	b	.L63
.L62:
	ldr	r0, .L65+32
	bl	printf
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L65+36
	ldr	r2, [r3]
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-3220]
	bl	send
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	sub	r3, fp, #3184
	sub	r3, r3, #4
	mov	r0, r3
	bl	snd_check
	bl	clear_input
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	rcv_check
	bl	clear_input
	sub	r3, fp, #3152
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	sbj_check
	sub	r3, fp, #3152
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L65+44
	mov	r0, r3
	bl	strtok
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	msg_check
	sub	r2, fp, #3184
	sub	r2, r2, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L65+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #3168
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L65+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #3152
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L65+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-3220]
	bl	send
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L65+20
	ldr	r0, [fp, #-3220]
	bl	recv
	str	r0, [fp, #-3212]
	ldr	r3, [fp, #-3212]
	cmp	r3, #0
	ble	.L49
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+24
	bl	printf
	b	.L47
.L49:
	ldr	r0, .L65+52
	bl	puts
	b	.L47
.L48:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	rcv_check
	bl	clear_input
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #3168
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-3220]
	bl	send
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L65+20
	ldr	r0, [fp, #-3220]
	bl	recv
	str	r0, [fp, #-3212]
	ldr	r3, [fp, #-3212]
	cmp	r3, #0
	ble	.L51
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	sub	r2, fp, #3072
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+64
	bl	printf
	b	.L47
.L52:
	sub	r2, fp, #3072
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+64
	bl	printf
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L65+20
	ldr	r0, [fp, #-3220]
	bl	recv
	str	r0, [fp, #-3212]
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+24
	bl	printf
	b	.L47
.L51:
	ldr	r0, .L65+52
	bl	puts
	b	.L47
.L50:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L53
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	rcv_check
	bl	clear_input
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #3168
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-3220]
	bl	send
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L65+20
	ldr	r0, [fp, #-3220]
	bl	recv
	str	r0, [fp, #-3212]
	ldr	r3, [fp, #-3212]
	cmp	r3, #0
	ble	.L54
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	sub	r2, fp, #3072
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+64
	bl	printf
	b	.L47
.L55:
	ldr	r0, .L65+72
	bl	printf
	ldr	r3, .L65+36
	ldr	r2, [r3]
	sub	r3, fp, #3184
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #4
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	sub	r1, fp, #3184
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-3220]
	bl	send
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L65+20
	ldr	r0, [fp, #-3220]
	bl	recv
	str	r0, [fp, #-3212]
	ldr	r0, .L65+76
	bl	puts
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+24
	bl	printf
	b	.L47
.L56:
	ldr	r0, .L65+80
	bl	puts
	b	.L47
.L54:
	ldr	r0, .L65+52
	bl	puts
	b	.L47
.L53:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+84
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	rcv_check
	bl	clear_input
	sub	r3, fp, #3168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #3168
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-3220]
	bl	send
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L65+20
	ldr	r0, [fp, #-3220]
	bl	recv
	str	r0, [fp, #-3212]
	ldr	r3, [fp, #-3212]
	cmp	r3, #0
	ble	.L58
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+88
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+24
	bl	printf
	b	.L60
.L59:
	ldr	r0, .L65+72
	bl	printf
	ldr	r3, .L65+36
	ldr	r2, [r3]
	sub	r3, fp, #3184
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #4
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	sub	r1, fp, #3184
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-3220]
	bl	send
	sub	r1, fp, #3072
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r2, .L65+20
	ldr	r0, [fp, #-3220]
	bl	recv
	str	r0, [fp, #-3212]
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+24
	bl	printf
	b	.L47
.L61:
	ldr	r0, .L65+80
	bl	puts
	b	.L47
.L58:
	ldr	r0, .L65+52
	bl	puts
	b	.L47
.L57:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+92
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L65+96
	bl	puts
.L47:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L65+92
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
.L60:
	ldr	r0, [fp, #-3220]
	bl	close
	mov	r3, #0
.L63:
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC31
	.word	.LC10
	.word	6543
	.word	.LC11
	.word	.LC12
	.word	1023
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	stdin
	.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
	.word	.LC29
	.word	.LC30
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
