	.file	"612799.c"
	.intel_syntax noprefix
	.text
	.globl	client_count
	.bss
	.align 4
	.type	client_count, @object
	.size	client_count, 4
client_count:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Accept Failed. Error!!!!!!"
.LC1:
	.string	"Receive Failed. Error!!!!!"
.LC2:
	.string	"Client[%d] Message: %s\n"
.LC3:
	.string	"DISCONNECT"
.LC4:
	.string	"Send Failed. Error!!!!!"
	.text
	.globl	my_thread
	.type	my_thread, @function
my_thread:
.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, 4048
	mov	QWORD PTR -4040[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR client_count[rip]
	add	eax, 1
	mov	DWORD PTR client_count[rip], eax
	mov	DWORD PTR -4032[rbp], 1
	lea	rax, -4016[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -2016[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -4040[rbp]
	mov	QWORD PTR -4024[rbp], rax
	mov	rax, QWORD PTR -4024[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4028[rbp], eax
	cmp	DWORD PTR -4028[rbp], 0
	jns	.L4
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L10
.L9:
	lea	rsi, -2016[rbp]
	mov	eax, DWORD PTR -4028[rbp]
	mov	ecx, 0
	mov	edx, 2000
	mov	edi, eax
	call	recv@PLT
	test	rax, rax
	jns	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L10
.L5:
	mov	eax, DWORD PTR client_count[rip]
	lea	rdx, -2016[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2016[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	lea	rax, -4016[rbp]
	movabs	rdx, 7308900669957826884
	movabs	rcx, 3327648196442289251
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	mov	DWORD PTR 16[rax], 3026478
	mov	DWORD PTR -4032[rbp], 0
	jmp	.L7
.L6:
	lea	rdx, -2016[rbp]
	lea	rax, -4016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L7:
	lea	rax, -2016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -4016[rbp]
	mov	eax, DWORD PTR -4028[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L8
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L10
.L8:
	lea	rax, -4016[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -2016[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L4:
	cmp	DWORD PTR -4032[rbp], 0
	jne	.L9
	mov	eax, DWORD PTR -4028[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR client_count[rip]
	sub	eax, 1
	mov	DWORD PTR client_count[rip], eax
	mov	edi, 0
	call	pthread_exit@PLT
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	my_thread, .-my_thread
	.section	.rodata
	.align 8
.LC5:
	.string	"Could Not Create Socket. Error!!!!!"
.LC6:
	.string	"Socket Created"
.LC7:
	.string	"127.0.0.1"
.LC8:
	.string	"Bind Failed. Error!!!!!"
.LC9:
	.string	"Bind Done"
.LC10:
	.string	"Listening Failed. Error!!!!!"
	.align 8
.LC11:
	.string	"Listening for Incoming Connections....."
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L13
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L19
.L13:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	WORD PTR -64[rbp], 2
	mov	edi, 2000
	call	htons@PLT
	mov	WORD PTR -62[rbp], ax
	lea	rdi, .LC7[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -60[rbp], eax
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L15
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L19
.L15:
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L18:
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L16
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L19
.L16:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -72[rbp], 16
	lea	rdx, -72[rbp]
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR client_count[rip]
	cmp	eax, 2
	jg	.L18
	mov	eax, DWORD PTR client_count[rip]
	lea	rdx, -32[rbp]
	cdqe
	sal	rax, 3
	lea	rdi, [rdx+rax]
	lea	rax, -76[rbp]
	mov	rcx, rax
	lea	rdx, my_thread[rip]
	mov	esi, 0
	call	pthread_create@PLT
	jmp	.L18
.L19:
	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
.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	"612799.c"
	.text
	.global	client_count
	.bss
	.align	2
	.type	client_count, %object
	.size	client_count, 4
client_count:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Accept Failed. Error!!!!!!\000"
	.align	2
.LC1:
	.ascii	"Receive Failed. Error!!!!!\000"
	.align	2
.LC2:
	.ascii	"Client[%d] Message: %s\012\000"
	.align	2
.LC3:
	.ascii	"DISCONNECT\000"
	.align	2
.LC4:
	.ascii	"Disconnecting......\000"
	.align	2
.LC5:
	.ascii	"Send Failed. Error!!!!!\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	my_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_thread, %function
my_thread:
	@ args = 0, pretend = 0, frame = 4024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4016
	sub	sp, sp, #8
	str	r0, [fp, #-4024]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L12+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12+4
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-4020]
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-4024]
	str	r3, [fp, #-4016]
	ldr	r3, [fp, #-4016]
	ldr	r3, [r3]
	str	r3, [fp, #-4012]
	ldr	r3, [fp, #-4012]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L12+8
	bl	puts
	b	.L10
.L9:
	sub	r1, fp, #2000
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #2000
	ldr	r0, [fp, #-4012]
	bl	recv
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L12+12
	bl	puts
	b	.L10
.L5:
	ldr	r3, .L12+4
	ldr	r1, [r3]
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L12+16
	bl	printf
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L12+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L12+24
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-4020]
	b	.L7
.L6:
	sub	r2, fp, #2000
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L7:
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #4000
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-4012]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L12+28
	bl	puts
	b	.L10
.L8:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L4:
	ldr	r3, [fp, #-4020]
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-4012]
	bl	close
	ldr	r3, .L12+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L12+4
	str	r3, [r2]
	mov	r0, #0
	bl	pthread_exit
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	client_count
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	my_thread, .-my_thread
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Could Not Create Socket. Error!!!!!\000"
	.align	2
.LC8:
	.ascii	"Socket Created\000"
	.align	2
.LC9:
	.ascii	"127.0.0.1\000"
	.align	2
.LC10:
	.ascii	"Bind Failed. Error!!!!!\000"
	.align	2
.LC11:
	.ascii	"Bind Done\000"
	.align	2
.LC12:
	.ascii	"Listening Failed. Error!!!!!\000"
	.align	2
.LC13:
	.ascii	"Listening for Incoming Connections.....\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L23+4
	bl	puts
	mvn	r3, #0
	b	.L21
.L15:
	ldr	r0, .L23+8
	bl	puts
	mov	r3, #2
	strh	r3, [fp, #-40]	@ movhi
	mov	r0, #2000
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	ldr	r0, .L23+12
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-36]
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L23+16
	bl	puts
	mvn	r3, #0
	b	.L21
.L17:
	ldr	r0, .L23+20
	bl	puts
.L20:
	mov	r1, #1
	ldr	r0, [fp, #-56]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L23+24
	bl	puts
	mvn	r3, #0
	b	.L21
.L18:
	ldr	r0, .L23+28
	bl	puts
	mov	r3, #16
	str	r3, [fp, #-60]
	sub	r2, fp, #60
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	accept
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, .L23+32
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L20
	ldr	r3, .L23+32
	ldr	r3, [r3]
	sub	r2, fp, #52
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r3, fp, #64
	ldr	r2, .L23+36
	mov	r1, #0
	bl	pthread_create
	b	.L20
.L21:
	ldr	r2, .L23
	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}
.L24:
	.align	2
.L23:
	.word	.LC14
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	client_count
	.word	my_thread
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
