	.file	"41889.c"
	.intel_syntax noprefix
	.text
	.globl	room_tot
	.bss
	.align 4
	.type	room_tot, @object
	.size	room_tot, 4
room_tot:
	.zero	4
	.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, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC0:
	.string	"ERROR pthread_detach() (recv) failed"
.LC1:
	.string	"\n%s\n"
.LC2:
	.string	"ERROR recv() failed"
	.text
	.globl	thread_main_recv
	.type	thread_main_recv, @function
thread_main_recv:
.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, 560
	mov	QWORD PTR -552[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	pthread_self@PLT
	mov	rdi, rax
	call	pthread_detach@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC0[rip]
	call	error
.L3:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -532[rbp], eax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -532[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -536[rbp], eax
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L6:
	lea	rax, -528[rbp]
	mov	edx, 512
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -532[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -536[rbp], eax
	cmp	DWORD PTR -536[rbp], 0
	jns	.L5
	lea	rdi, .LC2[rip]
	call	error
.L5:
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	cmp	DWORD PTR -536[rbp], 0
	jg	.L6
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	thread_main_recv, .-thread_main_recv
	.section	.rodata
.LC3:
	.string	"\nEnter a username: "
.LC4:
	.string	"\nEnter a message: "
.LC5:
	.string	"ERROR writing to socket"
	.text
	.globl	thread_main_send
	.type	thread_main_send, @function
thread_main_send:
.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, 304
	mov	QWORD PTR -296[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -296[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -280[rbp], eax
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -284[rbp], 0
.L18:
	cmp	DWORD PTR -284[rbp], 0
	jne	.L10
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jne	.L12
	mov	BYTE PTR -272[rbp], 0
.L12:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -272[rbp+rax]
	cmp	al, 10
	jne	.L13
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -272[rbp+rax], 0
.L13:
	cmp	DWORD PTR -284[rbp], 0
	jne	.L14
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 12
	ja	.L22
.L14:
	mov	DWORD PTR -284[rbp], 1
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -280[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L16
	lea	rdi, .LC5[rip]
	call	error
.L16:
	cmp	DWORD PTR -276[rbp], 0
	je	.L23
	jmp	.L18
.L22:
	nop
	jmp	.L18
.L23:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	thread_main_send, .-thread_main_send
	.section	.rodata
.LC6:
	.string	"Please specify hostname"
.LC7:
	.string	"ERROR opening socket"
.LC8:
	.string	"Trying to connect to %s...\n"
.LC9:
	.string	"ERROR connecting"
.LC10:
	.string	"new"
.LC11:
	.string	"ERROR Invalid new"
.LC12:
	.string	"\n%s"
.LC13:
	.string	"Success\n"
.LC14:
	.string	"ERROR Invalid room number"
.LC15:
	.string	"Connected"
.LC16:
	.string	"new\n"
	.align 8
.LC17:
	.string	"\nChoose a room number or type [new] to create a new room: "
	.align 8
.LC18:
	.string	"\nFile descriptor closed connection"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 408
	.cfi_offset 3, -24
	mov	DWORD PTR -4500[rbp], edi
	mov	QWORD PTR -4512[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -4500[rbp], 1
	jg	.L25
	lea	rdi, .LC6[rip]
	call	error
.L25:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4472[rbp], eax
	cmp	DWORD PTR -4472[rbp], 0
	jns	.L26
	lea	rdi, .LC7[rip]
	call	error
.L26:
	mov	DWORD PTR -4468[rbp], 16
	lea	rax, -4416[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -4416[rbp], 2
	mov	rax, QWORD PTR -4512[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -4412[rbp], eax
	mov	edi, 1004
	call	htons@PLT
	mov	WORD PTR -4414[rbp], ax
	mov	eax, DWORD PTR -4412[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -4468[rbp]
	lea	rcx, -4416[rbp]
	mov	eax, DWORD PTR -4472[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -4464[rbp], eax
	cmp	DWORD PTR -4464[rbp], 0
	jns	.L27
	lea	rdi, .LC9[rip]
	call	error
.L27:
	mov	DWORD PTR -4496[rbp], 1
	lea	rax, -4384[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -4500[rbp], 2
	jle	.L28
	mov	rax, QWORD PTR -4512[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -4384[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L29
.L28:
	mov	BYTE PTR -4384[rbp], 10
	mov	DWORD PTR -4496[rbp], 0
.L29:
	mov	DWORD PTR -4492[rbp], 0
	jmp	.L30
.L34:
	mov	eax, DWORD PTR -4492[rbp]
	cdqe
	movzx	eax, BYTE PTR -4384[rbp+rax]
	cmp	al, 47
	jle	.L31
	mov	eax, DWORD PTR -4492[rbp]
	cdqe
	movzx	eax, BYTE PTR -4384[rbp+rax]
	cmp	al, 57
	jle	.L32
.L31:
	mov	DWORD PTR -4496[rbp], 0
	jmp	.L33
.L32:
	add	DWORD PTR -4492[rbp], 1
.L30:
	mov	eax, DWORD PTR -4492[rbp]
	movsx	rbx, eax
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L34
.L33:
	cmp	DWORD PTR -4500[rbp], 2
	jle	.L35
	cmp	DWORD PTR -4496[rbp], 0
	jne	.L35
	lea	rax, -4384[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L35
	lea	rdi, .LC11[rip]
	call	error
.L35:
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -4384[rbp]
	mov	eax, DWORD PTR -4472[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -4464[rbp], eax
	cmp	DWORD PTR -4464[rbp], 0
	jns	.L36
	lea	rdi, .LC5[rip]
	call	error
.L36:
	cmp	DWORD PTR -4496[rbp], 0
	je	.L37
	lea	rax, -4384[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -4384[rbp]
	mov	eax, DWORD PTR -4472[rbp]
	mov	ecx, 0
	mov	edx, 255
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -4460[rbp], eax
	cmp	DWORD PTR -4460[rbp], 0
	jns	.L38
	lea	rdi, .LC2[rip]
	call	error
.L38:
	lea	rax, -4384[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4384[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L37
	lea	rdi, .LC14[rip]
	call	error
.L37:
	lea	rax, -4384[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	lea	rax, -4384[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -4384[rbp]
	mov	eax, DWORD PTR -4472[rbp]
	mov	ecx, 0
	mov	edx, 255
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -4448[rbp], eax
	cmp	DWORD PTR -4448[rbp], 0
	jns	.L40
	lea	rdi, .LC2[rip]
	call	error
.L40:
	lea	rax, -4384[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L41
.L39:
	cmp	DWORD PTR -4500[rbp], 2
	jg	.L41
	lea	rax, -4128[rbp]
	mov	edx, 4096
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -4128[rbp]
	mov	eax, DWORD PTR -4472[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -4456[rbp], eax
	cmp	DWORD PTR -4456[rbp], 0
	jns	.L42
	lea	rdi, .LC2[rip]
	call	error
.L42:
	lea	rax, -4128[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -4128[rbp]
	lea	rax, -4393[rbp]
	mov	edx, 9
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -4393[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L41
	mov	DWORD PTR -4488[rbp], 0
	mov	DWORD PTR -4484[rbp], 0
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -4484[rbp]
	cdqe
	movzx	eax, BYTE PTR -4128[rbp+rax]
	cmp	al, 9
	sete	al
	movzx	eax, al
	add	DWORD PTR -4488[rbp], eax
	add	DWORD PTR -4484[rbp], 1
.L44:
	mov	eax, DWORD PTR -4484[rbp]
	movsx	rbx, eax
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L45
.L53:
	lea	rax, -4384[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -4384[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	mov	DWORD PTR -4480[rbp], 1
	mov	DWORD PTR -4476[rbp], 0
	jmp	.L46
.L50:
	mov	eax, DWORD PTR -4476[rbp]
	cdqe
	movzx	eax, BYTE PTR -4384[rbp+rax]
	cmp	al, 47
	jle	.L47
	mov	eax, DWORD PTR -4476[rbp]
	cdqe
	movzx	eax, BYTE PTR -4384[rbp+rax]
	cmp	al, 57
	jle	.L48
.L47:
	mov	DWORD PTR -4480[rbp], 0
	jmp	.L49
.L48:
	add	DWORD PTR -4476[rbp], 1
.L46:
	mov	eax, DWORD PTR -4476[rbp]
	movsx	rbx, eax
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jb	.L50
.L49:
	cmp	DWORD PTR -4480[rbp], 0
	je	.L51
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	DWORD PTR -4488[rbp], eax
	jge	.L52
.L51:
	lea	rax, -4384[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L52
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L53
.L52:
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -4384[rbp+rax]
	cmp	al, 10
	jne	.L54
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -4384[rbp+rax], 0
.L54:
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -4384[rbp]
	mov	eax, DWORD PTR -4472[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -4452[rbp], eax
	cmp	DWORD PTR -4452[rbp], 0
	jns	.L41
	lea	rdi, .LC5[rip]
	call	error
.L41:
	mov	DWORD PTR -4444[rbp], 0
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -4424[rbp], rax
	mov	rax, QWORD PTR -4424[rbp]
	mov	edx, DWORD PTR -4472[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -4424[rbp]
	lea	rax, -4440[rbp]
	mov	rcx, rdx
	lea	rdx, thread_main_send[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -4444[rbp], eax
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -4424[rbp], rax
	mov	rax, QWORD PTR -4424[rbp]
	mov	edx, DWORD PTR -4472[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -4424[rbp]
	lea	rax, -4432[rbp]
	mov	rcx, rdx
	lea	rdx, thread_main_recv[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -4444[rbp], eax
	mov	rax, QWORD PTR -4440[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, DWORD PTR -4472[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"41889.c"
	.text
	.global	room_tot
	.bss
	.align	2
	.type	room_tot, %object
	.size	room_tot, 4
room_tot:
	.space	4
	.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, #0
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR pthread_detach() (recv) failed\000"
	.align	2
.LC1:
	.ascii	"\012%s\012\000"
	.align	2
.LC2:
	.ascii	"ERROR recv() failed\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread_main_recv
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_main_recv, %function
thread_main_recv:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	pthread_self
	mov	r3, r0
	mov	r0, r3
	bl	pthread_detach
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L9+4
	bl	error
.L3:
	ldr	r3, [fp, #-536]
	ldr	r3, [r3]
	str	r3, [fp, #-524]
	ldr	r0, [fp, #-536]
	bl	free
	sub	r1, fp, #520
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-524]
	bl	recv
	str	r0, [fp, #-528]
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	b	.L4
.L6:
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #520
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-524]
	bl	recv
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L9+12
	bl	error
.L5:
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
.L4:
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bgt	.L6
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	thread_main_recv, .-thread_main_recv
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012Enter a username: \000"
	.align	2
.LC5:
	.ascii	"\012Enter a message: \000"
	.align	2
.LC6:
	.ascii	"ERROR writing to socket\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread_main_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_main_send, %function
thread_main_send:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-280]
	ldr	r3, [r3]
	str	r3, [fp, #-272]
	ldr	r0, [fp, #-280]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-276]
.L20:
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L26+4
	bl	printf
	b	.L13
.L12:
	ldr	r0, .L26+8
	bl	printf
.L13:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L26+12
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #255
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bne	.L14
	mov	r3, #0
	strb	r3, [fp, #-264]
.L14:
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L15
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
.L15:
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L16
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #12
	bhi	.L24
.L16:
	mov	r3, #1
	str	r3, [fp, #-276]
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #264
	mov	r3, #0
	ldr	r0, [fp, #-272]
	bl	send
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L26+16
	bl	error
.L18:
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	beq	.L25
	b	.L20
.L24:
	nop
	b	.L20
.L25:
	nop
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC4
	.word	.LC5
	.word	stdin
	.word	.LC6
	.size	thread_main_send, .-thread_main_send
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Please specify hostname\000"
	.align	2
.LC9:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC10:
	.ascii	"Trying to connect to %s...\012\000"
	.align	2
.LC11:
	.ascii	"ERROR connecting\000"
	.align	2
.LC12:
	.ascii	"new\000"
	.align	2
.LC13:
	.ascii	"ERROR Invalid new\000"
	.align	2
.LC14:
	.ascii	"\012%s\000"
	.align	2
.LC15:
	.ascii	"Success\012\000"
	.align	2
.LC16:
	.ascii	"ERROR Invalid room number\000"
	.align	2
.LC17:
	.ascii	"Connected\000"
	.align	2
.LC18:
	.ascii	"new\012\000"
	.align	2
.LC19:
	.ascii	"\012Choose a room number or type [new] to create a "
	.ascii	"new room: \000"
	.align	2
.LC20:
	.ascii	"\012File descriptor closed connection\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4464
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4416
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-364]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-368]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-364]
	cmp	r3, #1
	bgt	.L29
	ldr	r0, .L61+4
	bl	error
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-324]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L61+8
	bl	error
.L30:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-320]
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #288
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-368]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-284]
	mov	r0, #1004
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #288
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-284]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L61+12
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #32
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-320]
	mov	r1, r3
	ldr	r0, [r0, #-324]
	bl	connect
	str	r0, [r4, #-316]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	bge	.L31
	ldr	r0, .L61+16
	bl	error
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-348]
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-364]
	cmp	r3, #2
	ble	.L32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-368]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L33
.L32:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #10
	strb	r2, [r3, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-348]
.L33:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-344]
	b	.L34
.L38:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	add	r3, r2, r3
	sub	r3, r3, #260
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L35
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	add	r3, r2, r3
	sub	r3, r3, #260
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L36
.L35:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-348]
	b	.L37
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	add	r3, r3, #1
	str	r3, [r2, #-344]
.L34:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	cmp	r2, r3
	bhi	.L38
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-364]
	cmp	r3, #2
	ble	.L39
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmp	r3, #0
	bne	.L39
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L61+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r0, .L61+24
	bl	error
.L39:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4352
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-324]
	bl	send
	str	r0, [r4, #-316]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	bge	.L40
	ldr	r0, .L61+28
	bl	error
.L40:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4352
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #255
	ldr	r0, [r0, #-324]
	bl	recv
	str	r0, [r4, #-312]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L61+32
	bl	error
.L42:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L61+36
	bl	printf
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L61+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r0, .L61+44
	bl	error
.L41:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L61+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4352
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #255
	ldr	r0, [r0, #-324]
	bl	recv
	str	r0, [r4, #-300]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-300]
	cmp	r3, #0
	bge	.L44
	ldr	r0, .L61+32
	bl	error
.L44:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L61+48
	bl	printf
	b	.L45
.L43:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-364]
	cmp	r3, #2
	bgt	.L45
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-324]
	bl	recv
	str	r0, [r4, #-308]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	cmp	r3, #0
	bge	.L46
	ldr	r0, .L61+32
	bl	error
.L46:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L61+48
	bl	printf
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r2, #9
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #16
	ldr	r1, .L61+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-340]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-336]
	b	.L48
.L49:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-340]
	add	r3, r3, r1
	str	r3, [r2, #-340]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	add	r3, r3, #1
	str	r3, [r2, #-336]
.L48:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	cmp	r2, r3
	bhi	.L49
.L57:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L61+56
	ldr	r2, [r3]
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #255
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-332]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-328]
	b	.L50
.L54:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	add	r3, r2, r3
	sub	r3, r3, #260
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L51
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	add	r3, r2, r3
	sub	r3, r3, #260
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L52
.L51:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-332]
	b	.L53
.L52:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	add	r3, r3, #1
	str	r3, [r2, #-328]
.L50:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	cmp	r2, r3
	bhi	.L54
.L53:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	cmp	r3, #0
	beq	.L55
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-340]
	cmp	r3, r2
	bge	.L56
.L55:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L61+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r0, .L61+64
	bl	printf
	b	.L57
.L56:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L58
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
.L58:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4352
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-324]
	bl	send
	str	r0, [r4, #-304]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	cmp	r3, #0
	bge	.L45
	ldr	r0, .L61+28
	bl	error
.L45:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-296]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-292]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-292]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-324]
	str	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4416
	sub	r0, r0, #12
	sub	r0, r0, #36
	ldr	r3, [r3, #-292]
	ldr	r2, .L61+68
	mov	r1, #0
	bl	pthread_create
	str	r0, [r4, #-296]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-292]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-292]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-324]
	str	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4416
	sub	r0, r0, #12
	sub	r0, r0, #32
	ldr	r3, [r3, #-292]
	ldr	r2, .L61+72
	mov	r1, #0
	bl	pthread_create
	str	r0, [r4, #-296]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-324]
	bl	close
	ldr	r0, .L61+76
	bl	puts
	mov	r3, #0
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC21
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC6
	.word	.LC2
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC1
	.word	.LC17
	.word	stdin
	.word	.LC18
	.word	.LC19
	.word	thread_main_send
	.word	thread_main_recv
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
