	.file	"84904.c"
	.intel_syntax noprefix
	.text
	.globl	thread_track
	.bss
	.align 32
	.type	thread_track, @object
	.size	thread_track, 160
thread_track:
	.zero	160
	.globl	thread_track_count
	.align 4
	.type	thread_track_count, @object
	.size	thread_track_count, 4
thread_track_count:
	.zero	4
	.globl	processes
	.align 32
	.type	processes, @object
	.size	processes, 80
processes:
	.zero	80
	.globl	total_collections
	.align 4
	.type	total_collections, @object
	.size	total_collections, 4
total_collections:
	.zero	4
	.globl	warehouse
	.align 32
	.type	warehouse, @object
	.size	warehouse, 1120000
warehouse:
	.zero	1120000
	.globl	warehouse_size
	.align 4
	.type	warehouse_size, @object
	.size	warehouse_size, 4
warehouse_size:
	.zero	4
	.globl	server_fifo1
	.align 4
	.type	server_fifo1, @object
	.size	server_fifo1, 4
server_fifo1:
	.zero	4
	.globl	client_fifo1
	.align 4
	.type	client_fifo1, @object
	.size	client_fifo1, 4
client_fifo1:
	.zero	4
	.globl	server_fifo2
	.align 4
	.type	server_fifo2, @object
	.size	server_fifo2, 4
server_fifo2:
	.zero	4
	.globl	client_fifo2
	.align 4
	.type	client_fifo2, @object
	.size	client_fifo2, 4
client_fifo2:
	.zero	4
	.globl	server_fifo3
	.align 4
	.type	server_fifo3, @object
	.size	server_fifo3, 4
server_fifo3:
	.zero	4
	.globl	client_fifo3
	.align 4
	.type	client_fifo3, @object
	.size	client_fifo3, 4
client_fifo3:
	.zero	4
	.globl	server_fifo4
	.align 4
	.type	server_fifo4, @object
	.size	server_fifo4, 4
server_fifo4:
	.zero	4
	.globl	client_fifo4
	.align 4
	.type	client_fifo4, @object
	.size	client_fifo4, 4
client_fifo4:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"You need to pass in warehouse size"
	.align 8
.LC1:
	.string	"Warehouse size is too big. Please try again."
.LC2:
	.string	"fifo_server1"
.LC3:
	.string	"fifo_client1"
.LC4:
	.string	"fifo_server2"
.LC5:
	.string	"fifo_client2"
.LC6:
	.string	"fifo_server3"
.LC7:
	.string	"fifo_client3"
.LC8:
	.string	"fifo_server4"
.LC9:
	.string	"fifo_client4"
.LC10:
	.string	"%s"
.LC11:
	.string	"Thread"
.LC12:
	.string	"%*s %ld %d"
	.align 8
.LC13:
	.string	"Started Session with Client 1. Thread ID is %ld\n"
.LC14:
	.string	"Alloc"
	.align 8
.LC15:
	.string	"Recieved Alloc Message from Client 1!"
.LC16:
	.string	"%d"
	.align 8
.LC17:
	.string	"Space Allocated at %d for Client 1\n"
.LC18:
	.string	"Dealloc"
	.align 8
.LC19:
	.string	"Recieved Dealloc Message from Client 1!"
.LC20:
	.string	"%*s %d"
.LC21:
	.string	"Dealloc ID: %d\n"
	.align 8
.LC22:
	.string	"%d has been removed from database (Client 1)\n"
	.align 8
.LC23:
	.string	"Error in dealloc. Space was not allocated (Client 1)\n"
.LC24:
	.string	"Read"
	.align 8
.LC25:
	.string	"Recieved Read Message from Client 1"
.LC26:
	.string	"Sending value to client 1..."
	.align 8
.LC27:
	.string	"Read failed due to invalid address (Client 1)\n"
.LC28:
	.string	"Store"
	.align 8
.LC29:
	.string	"Recieved Store Message from Client 1"
.LC30:
	.string	"%*s %d \"%[^\"]\""
	.align 8
.LC31:
	.string	"Stored %s from Client 1 at Index %d\n"
.LC32:
	.string	"Store Successful\n"
	.align 8
.LC33:
	.string	"Error in Storing. Warehouse not allocated (Client 1)\n"
.LC34:
	.string	"Close"
	.align 8
.LC35:
	.string	"Recieved Close Message from Client 1!"
.LC36:
	.string	"%*s %ld"
.LC37:
	.string	"Exit"
	.align 8
.LC38:
	.string	"Recieved Exit Message from Client 1!"
	.align 8
.LC39:
	.string	"Started Session with Client 2. Thread ID is %ld\n"
	.align 8
.LC40:
	.string	"Recieved Alloc Message from Client 2!"
	.align 8
.LC41:
	.string	"Space Allocated at %d for Client 2\n"
	.align 8
.LC42:
	.string	"Recieved Dealloc Message from Client 2!"
	.align 8
.LC43:
	.string	"%d has been removed from database (Client 2)\n"
	.align 8
.LC44:
	.string	"Error in dealloc. Space was not allocated (Client 2)\n"
	.align 8
.LC45:
	.string	"Recieved Read Message from Client 2!"
.LC46:
	.string	"Sending value to client 2..."
	.align 8
.LC47:
	.string	"Read failed due to invalid address (Client 2)\n"
	.align 8
.LC48:
	.string	"Recieved Store Message from Client 2!"
	.align 8
.LC49:
	.string	"Stored %s from Client 2 at Index %d\n"
	.align 8
.LC50:
	.string	"Error in Storing. Warehouse not allocated (Client 2)\n"
	.align 8
.LC51:
	.string	"Recieved Close Message from Client 2!"
	.align 8
.LC52:
	.string	"Recieved Exit Message from Client 2!"
	.align 8
.LC53:
	.string	"Started Session with Client 3. Thread ID is %ld\n"
	.align 8
.LC54:
	.string	"Recieved Alloc Message from Client 3!"
	.align 8
.LC55:
	.string	"Space Allocated at %d for Client 3\n"
	.align 8
.LC56:
	.string	"Recieved Dealloc Message from Client 3!"
	.align 8
.LC57:
	.string	"%d has been removed from database (Client 3)\n"
	.align 8
.LC58:
	.string	"Error in dealloc. Space was not allocated (Client 3)\n"
	.align 8
.LC59:
	.string	"Recieved Read Message from Client 3!"
.LC60:
	.string	"Sending value to client 3..."
	.align 8
.LC61:
	.string	"Read failed due to invalid address (Client 3)\n"
	.align 8
.LC62:
	.string	"Recieved Store Message from Client 3!"
	.align 8
.LC63:
	.string	"Stored %s from Client 3 at Index %d\n"
	.align 8
.LC64:
	.string	"Error in Storing. Warehouse not allocated (Client 3)\n"
	.align 8
.LC65:
	.string	"Recieved Close Message from Client 3!"
	.align 8
.LC66:
	.string	"Started Session with Client 4. Thread ID is %ld\n"
	.align 8
.LC67:
	.string	"Recieved Alloc Message from Client 4!"
	.align 8
.LC68:
	.string	"Space Allocated at %d for Client 4\n"
	.align 8
.LC69:
	.string	"Recieved Dealloc Message from Client 4!"
	.align 8
.LC70:
	.string	"%d has been removed from database (Client 4)\n"
	.align 8
.LC71:
	.string	"Error in dealloc. Space was not allocated (Client 4)\n"
	.align 8
.LC72:
	.string	"Recieved Read Message from Client 4"
.LC73:
	.string	"Sending value to client 4..."
	.align 8
.LC74:
	.string	"Read failed due to invalid address (Client 4)\n"
	.align 8
.LC75:
	.string	"Recieved Store Message from Client 4"
	.align 8
.LC76:
	.string	"Stored %s from Client 4 at Index %d\n"
	.align 8
.LC77:
	.string	"Error in Storing. Warehouse not allocated (Client 4)\n"
	.align 8
.LC78:
	.string	"Recieved Close Message from Client 4!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 944
	mov	DWORD PTR -932[rbp], edi
	mov	QWORD PTR -944[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -932[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L100
.L2:
	mov	rax, QWORD PTR -944[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -824[rbp], rax
	mov	rax, QWORD PTR -824[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR warehouse_size[rip], eax
	mov	eax, DWORD PTR warehouse_size[rip]
	cmp	eax, 10000
	jle	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L100
.L4:
	mov	DWORD PTR -916[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -916[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -916[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -916[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -916[rbp], 1
.L5:
	mov	eax, DWORD PTR warehouse_size[rip]
	cmp	DWORD PTR -916[rbp], eax
	jl	.L6
	mov	DWORD PTR -912[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -912[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, processes[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -912[rbp], 1
.L7:
	cmp	DWORD PTR -912[rbp], 19
	jle	.L8
	mov	DWORD PTR -908[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -908[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, thread_track[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	DWORD PTR -908[rbp], 1
.L9:
	cmp	DWORD PTR -908[rbp], 19
	jle	.L10
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR server_fifo1[rip], eax
	mov	esi, 2
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR client_fifo1[rip], eax
	mov	esi, 2
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR server_fifo2[rip], eax
	mov	esi, 2
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR client_fifo2[rip], eax
	mov	esi, 2
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR server_fifo3[rip], eax
	mov	esi, 2
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR client_fifo3[rip], eax
	mov	esi, 2
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR server_fifo4[rip], eax
	mov	esi, 2
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR client_fifo4[rip], eax
	lea	rsi, handler1[rip]
	mov	edi, 2
	call	signal@PLT
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	mov	QWORD PTR -512[rbp], 0
	mov	QWORD PTR -504[rbp], 0
	mov	QWORD PTR -496[rbp], 0
	mov	QWORD PTR -488[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	mov	QWORD PTR -472[rbp], 0
	mov	DWORD PTR -464[rbp], 0
	mov	QWORD PTR -840[rbp], 0
	mov	QWORD PTR -448[rbp], 0
	mov	QWORD PTR -440[rbp], 0
	mov	QWORD PTR -432[rbp], 0
	mov	QWORD PTR -424[rbp], 0
	mov	QWORD PTR -416[rbp], 0
	mov	QWORD PTR -408[rbp], 0
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	DWORD PTR -352[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	DWORD PTR -240[rbp], 0
	mov	DWORD PTR -856[rbp], 0
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -816[rbp]
	mov	rdi, rdx
#APP
# 92 "the_stack_data/84904.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -852[rbp], edx
	mov	DWORD PTR -848[rbp], eax
	mov	eax, DWORD PTR server_fifo1[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -816[rbp+rax*8]
	mov	eax, DWORD PTR server_fifo1[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -816[rbp+rax*8], rdx
	mov	eax, DWORD PTR server_fifo2[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -816[rbp+rax*8]
	mov	eax, DWORD PTR server_fifo2[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -816[rbp+rax*8], rdx
	mov	eax, DWORD PTR server_fifo3[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -816[rbp+rax*8]
	mov	eax, DWORD PTR server_fifo3[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -816[rbp+rax*8], rdx
	mov	eax, DWORD PTR server_fifo4[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -816[rbp+rax*8]
	mov	eax, DWORD PTR server_fifo4[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -816[rbp+rax*8], rdx
.L99:
	mov	rax, QWORD PTR -816[rbp]
	mov	rdx, QWORD PTR -808[rbp]
	mov	QWORD PTR -688[rbp], rax
	mov	QWORD PTR -680[rbp], rdx
	mov	rax, QWORD PTR -800[rbp]
	mov	rdx, QWORD PTR -792[rbp]
	mov	QWORD PTR -672[rbp], rax
	mov	QWORD PTR -664[rbp], rdx
	mov	rax, QWORD PTR -784[rbp]
	mov	rdx, QWORD PTR -776[rbp]
	mov	QWORD PTR -656[rbp], rax
	mov	QWORD PTR -648[rbp], rdx
	mov	rax, QWORD PTR -768[rbp]
	mov	rdx, QWORD PTR -760[rbp]
	mov	QWORD PTR -640[rbp], rax
	mov	QWORD PTR -632[rbp], rdx
	mov	rax, QWORD PTR -752[rbp]
	mov	rdx, QWORD PTR -744[rbp]
	mov	QWORD PTR -624[rbp], rax
	mov	QWORD PTR -616[rbp], rdx
	mov	rax, QWORD PTR -736[rbp]
	mov	rdx, QWORD PTR -728[rbp]
	mov	QWORD PTR -608[rbp], rax
	mov	QWORD PTR -600[rbp], rdx
	mov	rax, QWORD PTR -720[rbp]
	mov	rdx, QWORD PTR -712[rbp]
	mov	QWORD PTR -592[rbp], rax
	mov	QWORD PTR -584[rbp], rdx
	mov	rax, QWORD PTR -704[rbp]
	mov	rdx, QWORD PTR -696[rbp]
	mov	QWORD PTR -576[rbp], rax
	mov	QWORD PTR -568[rbp], rdx
	mov	eax, DWORD PTR server_fifo4[rip]
	lea	edi, 1[rax]
	lea	rax, -688[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -856[rbp], eax
	cmp	DWORD PTR -856[rbp], 0
	jle	.L99
	mov	eax, DWORD PTR server_fifo1[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -688[rbp+rax*8]
	mov	eax, DWORD PTR server_fifo1[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR server_fifo1[rip]
	lea	rcx, -448[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -560[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	eax, 0
	call	red
	lea	rax, -560[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	mov	DWORD PTR -832[rbp], 0
	lea	rcx, -832[rbp]
	lea	rdx, -840[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	QWORD PTR thread_track[rip], rax
	mov	eax, DWORD PTR thread_track_count[rip]
	add	eax, 1
	mov	DWORD PTR thread_track_count[rip], eax
	mov	eax, DWORD PTR -832[rbp]
	mov	DWORD PTR processes[rip], eax
.L13:
	lea	rax, -560[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	DWORD PTR -904[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -904[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L16
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	edx, DWORD PTR -904[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR client_fifo1[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -904[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rdx, QWORD PTR thread_track[rip]
	mov	eax, DWORD PTR -904[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rcx+rax], rdx
	mov	eax, DWORD PTR -904[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L16:
	add	DWORD PTR -904[rbp], 1
.L15:
	mov	eax, DWORD PTR warehouse_size[rip]
	cmp	DWORD PTR -904[rbp], eax
	jl	.L17
.L14:
	lea	rax, -560[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	DWORD PTR -832[rbp], 0
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L19
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -832[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L19:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
.L18:
	lea	rax, -560[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	DWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L22
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	eax, DWORD PTR client_fifo1[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L23
.L22:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
.L23:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L21:
	lea	rax, -560[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	DWORD PTR -832[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rcx, -224[rbp]
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L25
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -224[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -832[rbp]
	mov	eax, DWORD PTR -832[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	lea	rcx, warehouse[rip]
	add	rax, rcx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR client_fifo1[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L26
.L25:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
.L26:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L24:
	lea	rax, -560[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	mov	QWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC35[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -900[rbp], 0
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -900[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -832[rbp]
	cmp	rdx, rax
	jne	.L29
	mov	eax, DWORD PTR -900[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -900[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -900[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
.L29:
	add	DWORD PTR -900[rbp], 1
.L28:
	cmp	DWORD PTR -900[rbp], 9999
	jle	.L30
	mov	QWORD PTR thread_track[rip], 0
.L27:
	lea	rax, -560[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	mov	QWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC38[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -896[rbp], 0
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -896[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -832[rbp]
	cmp	rdx, rax
	jne	.L32
	mov	eax, DWORD PTR -896[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -896[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -896[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
.L32:
	add	DWORD PTR -896[rbp], 1
.L31:
	cmp	DWORD PTR -896[rbp], 9999
	jle	.L33
	mov	QWORD PTR thread_track[rip], 0
	mov	DWORD PTR processes[rip], 0
.L12:
	mov	eax, DWORD PTR server_fifo2[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -688[rbp+rax*8]
	mov	eax, DWORD PTR server_fifo2[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L34
	mov	eax, DWORD PTR server_fifo2[rip]
	lea	rcx, -448[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -560[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	eax, 0
	call	blue
	lea	rax, -560[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
	mov	DWORD PTR -832[rbp], 0
	lea	rcx, -832[rbp]
	lea	rdx, -840[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	QWORD PTR thread_track[rip+8], rax
	mov	eax, DWORD PTR thread_track_count[rip]
	add	eax, 1
	mov	DWORD PTR thread_track_count[rip], eax
	mov	eax, DWORD PTR -832[rbp]
	mov	DWORD PTR processes[rip+4], eax
.L35:
	lea	rax, -560[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	DWORD PTR -892[rbp], 0
	jmp	.L37
.L39:
	mov	eax, DWORD PTR -892[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L38
	mov	edx, DWORD PTR -892[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR client_fifo2[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -892[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rdx, QWORD PTR thread_track[rip+8]
	mov	eax, DWORD PTR -892[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rcx+rax], rdx
	mov	eax, DWORD PTR -892[rbp]
	mov	esi, eax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L36
.L38:
	add	DWORD PTR -892[rbp], 1
.L37:
	mov	eax, DWORD PTR warehouse_size[rip]
	cmp	DWORD PTR -892[rbp], eax
	jl	.L39
.L36:
	lea	rax, -560[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	mov	DWORD PTR -832[rbp], 0
	lea	rdi, .LC42[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L41
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -832[rbp]
	mov	esi, eax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L40
.L41:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC44[rip]
	call	fwrite@PLT
.L40:
	lea	rax, -560[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L43
	mov	DWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC45[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L44
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC46[rip]
	call	puts@PLT
	mov	eax, DWORD PTR client_fifo2[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L45
.L44:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC47[rip]
	call	fwrite@PLT
.L45:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L43:
	lea	rax, -560[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L46
	mov	DWORD PTR -832[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC48[rip]
	call	puts@PLT
	lea	rcx, -224[rbp]
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L47
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -224[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -832[rbp]
	mov	eax, DWORD PTR -832[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	lea	rcx, warehouse[rip]
	add	rax, rcx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR client_fifo2[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L48
.L47:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC50[rip]
	call	fwrite@PLT
.L48:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L46:
	lea	rax, -560[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L49
	mov	QWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -888[rbp], 0
	jmp	.L50
.L52:
	mov	eax, DWORD PTR -888[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -832[rbp]
	cmp	rdx, rax
	jne	.L51
	mov	eax, DWORD PTR -888[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -888[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -888[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
.L51:
	add	DWORD PTR -888[rbp], 1
.L50:
	cmp	DWORD PTR -888[rbp], 9999
	jle	.L52
	mov	QWORD PTR thread_track[rip+8], 0
.L49:
	lea	rax, -560[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L34
	mov	QWORD PTR -832[rbp], 0
	mov	DWORD PTR -844[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC52[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -884[rbp], 0
	jmp	.L53
.L55:
	mov	eax, DWORD PTR -884[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -832[rbp]
	cmp	rdx, rax
	jne	.L54
	mov	eax, DWORD PTR -884[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -884[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -884[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
.L54:
	add	DWORD PTR -884[rbp], 1
.L53:
	cmp	DWORD PTR -884[rbp], 9999
	jle	.L55
	mov	QWORD PTR thread_track[rip+8], 0
	mov	DWORD PTR processes[rip+4], 0
.L34:
	mov	eax, DWORD PTR server_fifo3[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -688[rbp+rax*8]
	mov	eax, DWORD PTR server_fifo3[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L56
	mov	eax, DWORD PTR server_fifo3[rip]
	lea	rcx, -448[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -560[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	eax, 0
	call	green
	lea	rax, -560[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L57
	mov	DWORD PTR -832[rbp], 0
	lea	rcx, -832[rbp]
	lea	rdx, -840[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	rsi, rax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	QWORD PTR thread_track[rip+16], rax
	mov	eax, DWORD PTR thread_track_count[rip]
	add	eax, 1
	mov	DWORD PTR thread_track_count[rip], eax
	mov	eax, DWORD PTR -832[rbp]
	mov	DWORD PTR processes[rip+8], eax
.L57:
	lea	rax, -560[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L58
	lea	rdi, .LC54[rip]
	call	puts@PLT
	mov	DWORD PTR -880[rbp], 0
	jmp	.L59
.L61:
	mov	eax, DWORD PTR -880[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L60
	mov	edx, DWORD PTR -880[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR client_fifo3[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -880[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rdx, QWORD PTR thread_track[rip+16]
	mov	eax, DWORD PTR -880[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rcx+rax], rdx
	mov	eax, DWORD PTR -880[rbp]
	mov	esi, eax
	lea	rdi, .LC55[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L58
.L60:
	add	DWORD PTR -880[rbp], 1
.L59:
	mov	eax, DWORD PTR warehouse_size[rip]
	cmp	DWORD PTR -880[rbp], eax
	jl	.L61
.L58:
	lea	rax, -560[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L62
	mov	DWORD PTR -832[rbp], 0
	lea	rdi, .LC56[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L63
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -832[rbp]
	mov	esi, eax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L62
.L63:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC58[rip]
	call	fwrite@PLT
.L62:
	lea	rax, -560[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L65
	mov	DWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC59[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L66
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC60[rip]
	call	puts@PLT
	mov	eax, DWORD PTR client_fifo3[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L67
.L66:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC61[rip]
	call	fwrite@PLT
.L67:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L65:
	lea	rax, -560[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
	mov	DWORD PTR -832[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC62[rip]
	call	puts@PLT
	lea	rcx, -224[rbp]
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L69
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -224[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -832[rbp]
	mov	eax, DWORD PTR -832[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	lea	rcx, warehouse[rip]
	add	rax, rcx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR client_fifo3[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L70
.L69:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC64[rip]
	call	fwrite@PLT
.L70:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L68:
	lea	rax, -560[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L71
	mov	QWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC65[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -876[rbp], 0
	jmp	.L72
.L74:
	mov	eax, DWORD PTR -876[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -832[rbp]
	cmp	rdx, rax
	jne	.L73
	mov	eax, DWORD PTR -876[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -876[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -876[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
.L73:
	add	DWORD PTR -876[rbp], 1
.L72:
	cmp	DWORD PTR -876[rbp], 9999
	jle	.L74
	mov	QWORD PTR thread_track[rip+16], 0
.L71:
	lea	rax, -560[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L56
	mov	QWORD PTR -832[rbp], 0
	lea	rdi, .LC38[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -872[rbp], 0
	jmp	.L75
.L77:
	mov	eax, DWORD PTR -872[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -832[rbp]
	cmp	rdx, rax
	jne	.L76
	mov	eax, DWORD PTR -872[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -872[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -872[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
.L76:
	add	DWORD PTR -872[rbp], 1
.L75:
	cmp	DWORD PTR -872[rbp], 9999
	jle	.L77
	mov	QWORD PTR thread_track[rip+16], 0
	mov	DWORD PTR processes[rip+8], 0
.L56:
	mov	eax, DWORD PTR server_fifo4[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -688[rbp+rax*8]
	mov	eax, DWORD PTR server_fifo4[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L99
	mov	eax, DWORD PTR server_fifo4[rip]
	lea	rcx, -448[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -560[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	eax, 0
	call	yellow
	lea	rax, -560[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L78
	mov	DWORD PTR -832[rbp], 0
	lea	rcx, -832[rbp]
	lea	rdx, -840[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	rsi, rax
	lea	rdi, .LC66[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	QWORD PTR thread_track[rip+24], rax
	mov	eax, DWORD PTR thread_track_count[rip]
	add	eax, 1
	mov	DWORD PTR thread_track_count[rip], eax
	mov	eax, DWORD PTR -832[rbp]
	mov	DWORD PTR processes[rip+12], eax
.L78:
	lea	rax, -560[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L79
	lea	rdi, .LC67[rip]
	call	puts@PLT
	mov	DWORD PTR -868[rbp], 0
	jmp	.L80
.L82:
	mov	eax, DWORD PTR -868[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L81
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	edx, DWORD PTR -868[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR client_fifo4[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -868[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rdx, QWORD PTR thread_track[rip+24]
	mov	eax, DWORD PTR -868[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rcx+rax], rdx
	mov	eax, DWORD PTR -868[rbp]
	mov	esi, eax
	lea	rdi, .LC68[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L79
.L81:
	add	DWORD PTR -868[rbp], 1
.L80:
	mov	eax, DWORD PTR warehouse_size[rip]
	cmp	DWORD PTR -868[rbp], eax
	jl	.L82
.L79:
	lea	rax, -560[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L83
	mov	DWORD PTR -832[rbp], 0
	lea	rdi, .LC69[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L84
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -832[rbp]
	mov	esi, eax
	lea	rdi, .LC70[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L84:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC71[rip]
	call	fwrite@PLT
.L83:
	lea	rax, -560[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L86
	mov	DWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC72[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L87
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC73[rip]
	call	puts@PLT
	mov	eax, DWORD PTR client_fifo4[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L88
.L87:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC74[rip]
	call	fwrite@PLT
.L88:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L86:
	lea	rax, -560[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L89
	mov	DWORD PTR -832[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC75[rip]
	call	puts@PLT
	lea	rcx, -224[rbp]
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L90
	mov	eax, DWORD PTR -832[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -224[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -832[rbp]
	mov	eax, DWORD PTR -832[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	lea	rcx, warehouse[rip]
	add	rax, rcx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC76[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR client_fifo4[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L91
.L90:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC77[rip]
	call	fwrite@PLT
.L91:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L89:
	lea	rax, -560[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L92
	mov	QWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC78[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -864[rbp], 0
	jmp	.L93
.L95:
	mov	eax, DWORD PTR -864[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -832[rbp]
	cmp	rdx, rax
	jne	.L94
	mov	eax, DWORD PTR -864[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -864[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -864[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
.L94:
	add	DWORD PTR -864[rbp], 1
.L93:
	cmp	DWORD PTR -864[rbp], 9999
	jle	.L95
	mov	QWORD PTR thread_track[rip+24], 0
.L92:
	lea	rax, -560[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L99
	mov	QWORD PTR -832[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC38[rip]
	call	puts@PLT
	lea	rdx, -832[rbp]
	lea	rax, -448[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -860[rbp], 0
	jmp	.L96
.L98:
	mov	eax, DWORD PTR -860[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -832[rbp]
	cmp	rdx, rax
	jne	.L97
	mov	eax, DWORD PTR -860[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -860[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -860[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 0
.L97:
	add	DWORD PTR -860[rbp], 1
.L96:
	cmp	DWORD PTR -860[rbp], 9999
	jle	.L98
	mov	QWORD PTR thread_track[rip+24], 0
	mov	DWORD PTR processes[rip+12], 0
	jmp	.L99
.L100:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L101
	call	__stack_chk_fail@PLT
.L101:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC79:
	.string	"shell> "
.LC80:
	.string	"\n"
.LC81:
	.string	" "
.LC82:
	.string	"list"
.LC83:
	.string	"Client\tID"
.LC84:
	.string	"%d\t"
.LC85:
	.string	"%ld\n"
	.align 8
.LC86:
	.string	"List of Entries by Client %ld\n"
.LC87:
	.string	"ID\t\t\tAttribute Name\t\tIs Valid"
.LC88:
	.string	"%ld\t\t"
.LC89:
	.string	"%s\t\t"
.LC90:
	.string	"%d\n"
.LC91:
	.string	"dump"
.LC92:
	.string	"Index: %d\t"
.LC93:
	.string	"Warehouse Record ID: %ld\t"
.LC94:
	.string	"Warehouse Record Name: %s\t"
.LC95:
	.string	"Warehouse Record Valid: %d\n"
.LC96:
	.string	"exit"
	.text
	.globl	handler1
	.type	handler1, @function
handler1:
.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, 1392
	mov	DWORD PTR -1380[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1352[rbp], 0
	mov	eax, 0
	call	reset
.L121:
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC79[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -528[rbp]
	lea	rsi, .LC80[rip]
	mov	rdi, rax
	call	strtok@PLT
	lea	rdx, -528[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC81[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1336[rbp], rax
	mov	rax, QWORD PTR -1336[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -1328[rbp], rax
	mov	QWORD PTR -1320[rbp], 0
	mov	rax, QWORD PTR -1328[rbp]
	mov	rdi, rax
	call	strlwr
	mov	QWORD PTR -1328[rbp], rax
	mov	rax, QWORD PTR -1328[rbp]
	lea	rsi, .LC82[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L103
	lea	rdx, -1344[rbp]
	lea	rax, -528[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -1348[rbp], eax
	cmp	DWORD PTR -1348[rbp], -1
	jne	.L104
	lea	rdi, .LC83[rip]
	call	puts@PLT
	mov	DWORD PTR -1364[rbp], 0
	jmp	.L105
.L107:
	mov	eax, DWORD PTR -1364[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, thread_track[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L106
	mov	eax, DWORD PTR -1364[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC84[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1364[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, thread_track[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC85[rip]
	mov	eax, 0
	call	printf@PLT
.L106:
	add	DWORD PTR -1364[rbp], 1
.L105:
	mov	eax, DWORD PTR thread_track_count[rip]
	cmp	DWORD PTR -1364[rbp], eax
	jl	.L107
	jmp	.L108
.L104:
	mov	rax, QWORD PTR -1344[rbp]
	mov	rsi, rax
	lea	rdi, .LC86[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC87[rip]
	call	puts@PLT
	mov	DWORD PTR -1360[rbp], 0
	jmp	.L109
.L111:
	mov	eax, DWORD PTR -1360[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -1344[rbp]
	cmp	rdx, rax
	jne	.L110
	mov	eax, DWORD PTR -1360[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L110
	mov	eax, DWORD PTR -1360[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC88[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1360[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC89[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1360[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC90[rip]
	mov	eax, 0
	call	printf@PLT
.L110:
	add	DWORD PTR -1360[rbp], 1
.L109:
	mov	eax, DWORD PTR warehouse_size[rip]
	cmp	DWORD PTR -1360[rbp], eax
	jl	.L111
.L108:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -1328[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L112
.L103:
	mov	rax, QWORD PTR -1328[rbp]
	lea	rsi, .LC91[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L113
	mov	DWORD PTR -1356[rbp], 0
	jmp	.L114
.L115:
	mov	eax, DWORD PTR -1356[rbp]
	mov	esi, eax
	lea	rdi, .LC92[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1356[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip+104]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC93[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1356[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, warehouse[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC94[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1356[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, warehouse[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC95[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1356[rbp], 1
.L114:
	mov	eax, DWORD PTR warehouse_size[rip]
	cmp	DWORD PTR -1356[rbp], eax
	jl	.L115
	mov	rax, QWORD PTR -1328[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L112
.L113:
	mov	rax, QWORD PTR -1328[rbp]
	lea	rsi, .LC96[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L116
	mov	eax, DWORD PTR processes[rip]
	test	eax, eax
	jle	.L117
	mov	eax, DWORD PTR processes[rip]
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
.L117:
	mov	eax, DWORD PTR processes[rip+4]
	test	eax, eax
	jle	.L118
	mov	eax, DWORD PTR processes[rip+4]
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
.L118:
	mov	eax, DWORD PTR processes[rip+8]
	test	eax, eax
	jle	.L119
	mov	eax, DWORD PTR processes[rip+8]
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
.L119:
	mov	eax, DWORD PTR processes[rip+12]
	test	eax, eax
	jle	.L120
	mov	eax, DWORD PTR processes[rip+12]
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
.L120:
	mov	eax, DWORD PTR server_fifo1[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR client_fifo1[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR server_fifo2[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR client_fifo2[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR server_fifo3[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR client_fifo3[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR server_fifo4[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR client_fifo4[rip]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -1328[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -1352[rbp], 1
	mov	edi, 0
	call	exit@PLT
.L116:
	cmp	DWORD PTR -1352[rbp], 0
	je	.L121
.L112:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L122
	call	__stack_chk_fail@PLT
.L122:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handler1, .-handler1
	.globl	strlwr
	.type	strlwr, @function
strlwr:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L124
.L125:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -8[rbp], 1
.L124:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L125
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	strlwr, .-strlwr
	.section	.rodata
.LC97:
	.string	"\033[1;31m"
	.text
	.globl	red
	.type	red, @function
red:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC97[rip]
	call	fwrite@PLT
	lea	rdi, .LC97[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	red, .-red
	.section	.rodata
.LC98:
	.string	"\033[1;33m"
	.text
	.globl	yellow
	.type	yellow, @function
yellow:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC98[rip]
	call	fwrite@PLT
	lea	rdi, .LC98[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	yellow, .-yellow
	.section	.rodata
.LC99:
	.string	"\033[1;32m"
	.text
	.globl	green
	.type	green, @function
green:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC99[rip]
	call	fwrite@PLT
	lea	rdi, .LC99[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	green, .-green
	.section	.rodata
.LC100:
	.string	"\033[1;34m"
	.text
	.globl	blue
	.type	blue, @function
blue:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC100[rip]
	call	fwrite@PLT
	lea	rdi, .LC100[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	blue, .-blue
	.section	.rodata
.LC101:
	.string	"\033[0m"
	.text
	.globl	reset
	.type	reset, @function
reset:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC101[rip]
	call	fwrite@PLT
	lea	rdi, .LC101[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	reset, .-reset
	.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	"84904.c"
	.text
	.comm	thread_track,80,4
	.global	thread_track_count
	.bss
	.align	2
	.type	thread_track_count, %object
	.size	thread_track_count, 4
thread_track_count:
	.space	4
	.comm	processes,80,4
	.global	total_collections
	.align	2
	.type	total_collections, %object
	.size	total_collections, 4
total_collections:
	.space	4
	.comm	warehouse,1080000,4
	.global	warehouse_size
	.align	2
	.type	warehouse_size, %object
	.size	warehouse_size, 4
warehouse_size:
	.space	4
	.global	server_fifo1
	.align	2
	.type	server_fifo1, %object
	.size	server_fifo1, 4
server_fifo1:
	.space	4
	.global	client_fifo1
	.align	2
	.type	client_fifo1, %object
	.size	client_fifo1, 4
client_fifo1:
	.space	4
	.global	server_fifo2
	.align	2
	.type	server_fifo2, %object
	.size	server_fifo2, 4
server_fifo2:
	.space	4
	.global	client_fifo2
	.align	2
	.type	client_fifo2, %object
	.size	client_fifo2, 4
client_fifo2:
	.space	4
	.global	server_fifo3
	.align	2
	.type	server_fifo3, %object
	.size	server_fifo3, 4
server_fifo3:
	.space	4
	.global	client_fifo3
	.align	2
	.type	client_fifo3, %object
	.size	client_fifo3, 4
client_fifo3:
	.space	4
	.global	server_fifo4
	.align	2
	.type	server_fifo4, %object
	.size	server_fifo4, 4
server_fifo4:
	.space	4
	.global	client_fifo4
	.align	2
	.type	client_fifo4, %object
	.size	client_fifo4, 4
client_fifo4:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"You need to pass in warehouse size\000"
	.align	2
.LC1:
	.ascii	"Warehouse size is too big. Please try again.\000"
	.align	2
.LC2:
	.ascii	"fifo_server1\000"
	.align	2
.LC3:
	.ascii	"fifo_client1\000"
	.align	2
.LC4:
	.ascii	"fifo_server2\000"
	.align	2
.LC5:
	.ascii	"fifo_client2\000"
	.align	2
.LC6:
	.ascii	"fifo_server3\000"
	.align	2
.LC7:
	.ascii	"fifo_client3\000"
	.align	2
.LC8:
	.ascii	"fifo_server4\000"
	.align	2
.LC9:
	.ascii	"fifo_client4\000"
	.align	2
.LC10:
	.ascii	"%s\000"
	.align	2
.LC11:
	.ascii	"Thread\000"
	.align	2
.LC12:
	.ascii	"%*s %ld %d\000"
	.align	2
.LC13:
	.ascii	"Started Session with Client 1. Thread ID is %ld\012"
	.ascii	"\000"
	.align	2
.LC14:
	.ascii	"Alloc\000"
	.align	2
.LC15:
	.ascii	"Recieved Alloc Message from Client 1!\000"
	.align	2
.LC16:
	.ascii	"%d\000"
	.align	2
.LC17:
	.ascii	"Space Allocated at %d for Client 1\012\000"
	.align	2
.LC18:
	.ascii	"Dealloc\000"
	.align	2
.LC19:
	.ascii	"Recieved Dealloc Message from Client 1!\000"
	.align	2
.LC20:
	.ascii	"%*s %d\000"
	.align	2
.LC21:
	.ascii	"Dealloc ID: %d\012\000"
	.align	2
.LC22:
	.ascii	"%d has been removed from database (Client 1)\012\000"
	.align	2
.LC23:
	.ascii	"Error in dealloc. Space was not allocated (Client 1"
	.ascii	")\012\000"
	.align	2
.LC24:
	.ascii	"Read\000"
	.align	2
.LC25:
	.ascii	"Recieved Read Message from Client 1\000"
	.align	2
.LC26:
	.ascii	"Sending value to client 1...\000"
	.align	2
.LC27:
	.ascii	"Read failed due to invalid address (Client 1)\012\000"
	.align	2
.LC28:
	.ascii	"Store\000"
	.align	2
.LC29:
	.ascii	"Recieved Store Message from Client 1\000"
	.align	2
.LC30:
	.ascii	"%*s %d \"%[^\"]\"\000"
	.align	2
.LC31:
	.ascii	"Stored %s from Client 1 at Index %d\012\000"
	.align	2
.LC32:
	.ascii	"Store Successful\012\000"
	.align	2
.LC33:
	.ascii	"Error in Storing. Warehouse not allocated (Client 1"
	.ascii	")\012\000"
	.align	2
.LC34:
	.ascii	"Close\000"
	.align	2
.LC35:
	.ascii	"Recieved Close Message from Client 1!\000"
	.align	2
.LC36:
	.ascii	"%*s %ld\000"
	.align	2
.LC37:
	.ascii	"Exit\000"
	.align	2
.LC38:
	.ascii	"Recieved Exit Message from Client 1!\000"
	.align	2
.LC39:
	.ascii	"Started Session with Client 2. Thread ID is %ld\012"
	.ascii	"\000"
	.align	2
.LC40:
	.ascii	"Recieved Alloc Message from Client 2!\000"
	.align	2
.LC41:
	.ascii	"Space Allocated at %d for Client 2\012\000"
	.align	2
.LC42:
	.ascii	"Recieved Dealloc Message from Client 2!\000"
	.align	2
.LC43:
	.ascii	"%d has been removed from database (Client 2)\012\000"
	.align	2
.LC44:
	.ascii	"Error in dealloc. Space was not allocated (Client 2"
	.ascii	")\012\000"
	.align	2
.LC45:
	.ascii	"Recieved Read Message from Client 2!\000"
	.align	2
.LC46:
	.ascii	"Sending value to client 2...\000"
	.align	2
.LC47:
	.ascii	"Read failed due to invalid address (Client 2)\012\000"
	.align	2
.LC48:
	.ascii	"Recieved Store Message from Client 2!\000"
	.align	2
.LC49:
	.ascii	"Stored %s from Client 2 at Index %d\012\000"
	.align	2
.LC50:
	.ascii	"Error in Storing. Warehouse not allocated (Client 2"
	.ascii	")\012\000"
	.align	2
.LC51:
	.ascii	"Recieved Close Message from Client 2!\000"
	.align	2
.LC52:
	.ascii	"Recieved Exit Message from Client 2!\000"
	.align	2
.LC53:
	.ascii	"Started Session with Client 3. Thread ID is %ld\012"
	.ascii	"\000"
	.align	2
.LC54:
	.ascii	"Recieved Alloc Message from Client 3!\000"
	.align	2
.LC55:
	.ascii	"Space Allocated at %d for Client 3\012\000"
	.align	2
.LC56:
	.ascii	"Recieved Dealloc Message from Client 3!\000"
	.align	2
.LC57:
	.ascii	"%d has been removed from database (Client 3)\012\000"
	.align	2
.LC58:
	.ascii	"Error in dealloc. Space was not allocated (Client 3"
	.ascii	")\012\000"
	.align	2
.LC59:
	.ascii	"Recieved Read Message from Client 3!\000"
	.align	2
.LC60:
	.ascii	"Sending value to client 3...\000"
	.align	2
.LC61:
	.ascii	"Read failed due to invalid address (Client 3)\012\000"
	.align	2
.LC62:
	.ascii	"Recieved Store Message from Client 3!\000"
	.align	2
.LC63:
	.ascii	"Stored %s from Client 3 at Index %d\012\000"
	.align	2
.LC64:
	.ascii	"Error in Storing. Warehouse not allocated (Client 3"
	.ascii	")\012\000"
	.align	2
.LC65:
	.ascii	"Recieved Close Message from Client 3!\000"
	.align	2
.LC66:
	.ascii	"Started Session with Client 4. Thread ID is %ld\012"
	.ascii	"\000"
	.align	2
.LC67:
	.ascii	"Recieved Alloc Message from Client 4!\000"
	.align	2
.LC68:
	.ascii	"Space Allocated at %d for Client 4\012\000"
	.align	2
.LC69:
	.ascii	"Recieved Dealloc Message from Client 4!\000"
	.align	2
.LC70:
	.ascii	"%d has been removed from database (Client 4)\012\000"
	.align	2
.LC71:
	.ascii	"Error in dealloc. Space was not allocated (Client 4"
	.ascii	")\012\000"
	.align	2
.LC72:
	.ascii	"Recieved Read Message from Client 4\000"
	.align	2
.LC73:
	.ascii	"Sending value to client 4...\000"
	.align	2
.LC74:
	.ascii	"Read failed due to invalid address (Client 4)\012\000"
	.align	2
.LC75:
	.ascii	"Recieved Store Message from Client 4\000"
	.align	2
.LC76:
	.ascii	"Stored %s from Client 4 at Index %d\012\000"
	.align	2
.LC77:
	.ascii	"Error in Storing. Warehouse not allocated (Client 4"
	.ascii	")\012\000"
	.align	2
.LC78:
	.ascii	"Recieved Close Message from Client 4!\000"
	.align	2
.LC79:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 856
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #864
	str	r0, [fp, #-856]
	str	r1, [fp, #-860]
	ldr	r3, .L104
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-856]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L104+4
	bl	puts
	mvn	r3, #0
	b	.L102
.L2:
	ldr	r3, [fp, #-860]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-780]
	ldr	r0, [fp, #-780]
	bl	atoi
	mov	r3, r0
	ldr	r2, .L104+8
	str	r3, [r2]
	ldr	r3, .L104+8
	ldr	r3, [r3]
	ldr	r2, .L104+12
	cmp	r3, r2
	ble	.L4
	ldr	r0, .L104+16
	bl	puts
	mvn	r3, #0
	b	.L102
.L4:
	mov	r3, #0
	str	r3, [fp, #-844]
	b	.L5
.L6:
	ldr	r1, .L104+140
	ldr	r2, [fp, #-844]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L104+140
	ldr	r2, [fp, #-844]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-844]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+140
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-844]
	add	r3, r3, #1
	str	r3, [fp, #-844]
.L5:
	ldr	r3, .L104+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-844]
	cmp	r2, r3
	blt	.L6
	mov	r3, #0
	str	r3, [fp, #-840]
	b	.L7
.L8:
	ldr	r2, .L104+332
	ldr	r3, [fp, #-840]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-840]
	add	r3, r3, #1
	str	r3, [fp, #-840]
.L7:
	ldr	r3, [fp, #-840]
	cmp	r3, #19
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-836]
	b	.L9
.L10:
	ldr	r2, .L104+324
	ldr	r3, [fp, #-836]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-836]
	add	r3, r3, #1
	str	r3, [fp, #-836]
.L9:
	ldr	r3, [fp, #-836]
	cmp	r3, #19
	ble	.L10
	mov	r1, #2
	ldr	r0, .L104+20
	bl	open
	mov	r3, r0
	ldr	r2, .L104+24
	str	r3, [r2]
	mov	r1, #2
	ldr	r0, .L104+28
	bl	open
	mov	r3, r0
	ldr	r2, .L104+32
	str	r3, [r2]
	mov	r1, #2
	ldr	r0, .L104+36
	bl	open
	mov	r3, r0
	ldr	r2, .L104+40
	str	r3, [r2]
	mov	r1, #2
	ldr	r0, .L104+44
	bl	open
	mov	r3, r0
	ldr	r2, .L104+172
	str	r3, [r2]
	mov	r1, #2
	ldr	r0, .L104+48
	bl	open
	mov	r3, r0
	ldr	r2, .L104+188
	str	r3, [r2]
	mov	r1, #2
	ldr	r0, .L104+52
	bl	open
	mov	r3, r0
	ldr	r2, .L104+264
	str	r3, [r2]
	mov	r1, #2
	ldr	r0, .L104+56
	bl	open
	mov	r3, r0
	ldr	r2, .L104+304
	str	r3, [r2]
	mov	r1, #2
	ldr	r0, .L104+60
	bl	open
	mov	r3, r0
	ldr	r2, .L104+348
	str	r3, [r2]
	ldr	r1, .L104+64
	mov	r0, #2
	bl	signal
	mov	r3, #0
	str	r3, [fp, #-508]
	sub	r3, fp, #504
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-852]
	mov	r3, #0
	str	r3, [fp, #-408]
	sub	r3, fp, #404
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-308]
	sub	r3, fp, #304
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-776]
	sub	r3, fp, #764
	str	r3, [fp, #-772]
	mov	r3, #0
	str	r3, [fp, #-832]
	b	.L11
.L12:
	ldr	r3, [fp, #-772]
	ldr	r2, [fp, #-832]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-832]
	add	r3, r3, #1
	str	r3, [fp, #-832]
.L11:
	ldr	r3, [fp, #-832]
	cmp	r3, #31
	bls	.L12
	ldr	r3, .L104+24
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-760]
	ldr	r3, .L104+24
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-760]
	ldr	r3, .L104+40
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-760]
	ldr	r3, .L104+40
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-760]
	ldr	r3, .L104+188
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-760]
	ldr	r3, .L104+188
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-760]
	ldr	r3, .L104+304
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-760]
	ldr	r3, .L104+304
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-760]
.L101:
	sub	r3, fp, #636
	sub	r1, fp, #764
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L104+304
	ldr	r3, [r3]
	add	r0, r3, #1
	sub	r1, fp, #636
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-776]
	ldr	r3, [fp, #-776]
	cmp	r3, #0
	ble	.L101
	ldr	r3, .L104+24
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-632]
	ldr	r3, .L104+24
	ldr	r3, [r3]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L104+24
	ldr	r3, [r3]
	sub	r1, fp, #408
	mov	r2, #100
	mov	r0, r3
	bl	read
	sub	r2, fp, #508
	sub	r3, fp, #408
	ldr	r1, .L104+308
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r0, #1
	bl	sleep
	bl	red
	sub	r3, fp, #508
	ldr	r1, .L104+312
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-848]
	sub	r3, fp, #848
	sub	r2, fp, #852
	sub	r0, fp, #408
	ldr	r1, .L104+316
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-852]
	mov	r1, r3
	ldr	r0, .L104+68
	bl	printf
	ldr	r3, [fp, #-852]
	ldr	r2, .L104+324
	str	r3, [r2]
	ldr	r3, .L104+328
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L104+328
	str	r3, [r2]
	ldr	r3, [fp, #-848]
	ldr	r2, .L104+332
	str	r3, [r2]
.L15:
	sub	r3, fp, #508
	ldr	r1, .L104+336
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L104+72
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-828]
	b	.L17
.L19:
	ldr	r1, .L104+140
	ldr	r2, [fp, #-828]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	ldr	r2, [fp, #-828]
	ldr	r1, .L104+344
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L104+32
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	ldr	r1, .L104+140
	ldr	r2, [fp, #-828]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L104+324
	ldr	r1, [r3]
	ldr	r0, .L104+140
	ldr	r2, [fp, #-828]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #104
	str	r1, [r3]
	ldr	r1, [fp, #-828]
	ldr	r0, .L104+76
	bl	printf
	b	.L16
.L18:
	ldr	r3, [fp, #-828]
	add	r3, r3, #1
	str	r3, [fp, #-828]
.L17:
	ldr	r3, .L104+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-828]
	cmp	r2, r3
	blt	.L19
.L16:
	sub	r3, fp, #508
	ldr	r1, .L104+208
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	str	r3, [fp, #-848]
	ldr	r0, .L104+80
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+232
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L104+84
	bl	printf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+140
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L21
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+140
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+140
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+140
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L104+88
	bl	printf
	b	.L20
.L21:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L104+92
	bl	fwrite
.L20:
	sub	r3, fp, #508
	ldr	r1, .L104+224
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+96
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+232
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+140
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L24
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+140
	add	r3, r3, r2
	add	r2, r3, #4
	sub	r3, fp, #108
	ldr	r1, .L104+308
	mov	r0, r3
	bl	sprintf
	ldr	r0, .L104+100
	bl	puts
	ldr	r3, .L104+32
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	b	.L25
.L24:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L104+104
	bl	fwrite
.L25:
	ldr	r3, .L104+276
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L23:
	sub	r3, fp, #508
	ldr	r1, .L104+244
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+108
	bl	puts
	sub	r3, fp, #208
	sub	r2, fp, #848
	sub	r0, fp, #408
	ldr	r1, .L104+252
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+140
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L27
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+140
	add	r3, r3, r2
	add	r3, r3, #4
	sub	r2, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+140
	add	r3, r3, r2
	add	r3, r3, #4
	ldr	r2, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L104+112
	bl	printf
	sub	r3, fp, #108
	ldr	r1, .L104+260
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L104+32
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	b	.L28
.L27:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L104+116
	bl	fwrite
.L28:
	ldr	r3, .L104+276
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L26:
	sub	r3, fp, #508
	ldr	r1, .L104+280
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+120
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+296
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-824]
	b	.L30
.L32:
	ldr	r1, .L104+140
	ldr	r2, [fp, #-824]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bne	.L31
	ldr	r1, .L104+140
	ldr	r2, [fp, #-824]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L104+140
	ldr	r2, [fp, #-824]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-824]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+140
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
.L31:
	ldr	r3, [fp, #-824]
	add	r3, r3, #1
	str	r3, [fp, #-824]
.L30:
	ldr	r3, [fp, #-824]
	ldr	r2, .L104+300
	cmp	r3, r2
	ble	.L32
	ldr	r3, .L104+324
	mov	r2, #0
	str	r2, [r3]
.L29:
	sub	r3, fp, #508
	ldr	r1, .L104+288
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+292
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+296
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-820]
	b	.L33
.L35:
	ldr	r1, .L104+140
	ldr	r2, [fp, #-820]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bne	.L34
	ldr	r1, .L104+140
	ldr	r2, [fp, #-820]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L104+140
	ldr	r2, [fp, #-820]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-820]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+140
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
.L34:
	ldr	r3, [fp, #-820]
	add	r3, r3, #1
	str	r3, [fp, #-820]
.L33:
	ldr	r3, [fp, #-820]
	ldr	r2, .L104+300
	cmp	r3, r2
	ble	.L35
	ldr	r3, .L104+324
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L104+332
	mov	r2, #0
	str	r2, [r3]
.L14:
	ldr	r3, .L104+40
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-632]
	ldr	r3, .L104+40
	ldr	r3, [r3]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L36
	ldr	r3, .L104+40
	ldr	r3, [r3]
	sub	r1, fp, #408
	mov	r2, #100
	mov	r0, r3
	bl	read
	sub	r2, fp, #508
	sub	r3, fp, #408
	ldr	r1, .L104+308
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r0, #1
	bl	sleep
	bl	blue
	sub	r3, fp, #508
	ldr	r1, .L104+312
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	mov	r3, #0
	str	r3, [fp, #-848]
	sub	r3, fp, #848
	sub	r2, fp, #852
	sub	r0, fp, #408
	ldr	r1, .L104+316
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-852]
	mov	r1, r3
	ldr	r0, .L104+124
	bl	printf
	ldr	r3, [fp, #-852]
	ldr	r2, .L104+324
	str	r3, [r2, #4]
	ldr	r3, .L104+328
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L104+328
	str	r3, [r2]
	ldr	r3, [fp, #-848]
	ldr	r2, .L104+332
	str	r3, [r2, #4]
.L37:
	sub	r3, fp, #508
	ldr	r1, .L104+336
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L104+128
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-816]
	b	.L39
.L41:
	ldr	r1, .L104+140
	ldr	r2, [fp, #-816]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L40
	sub	r3, fp, #108
	ldr	r2, [fp, #-816]
	ldr	r1, .L104+344
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L104+172
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	ldr	r1, .L104+140
	ldr	r2, [fp, #-816]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L104+324
	ldr	r1, [r3, #4]
	ldr	r0, .L104+140
	ldr	r2, [fp, #-816]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #104
	str	r1, [r3]
	ldr	r1, [fp, #-816]
	ldr	r0, .L104+132
	bl	printf
	b	.L38
.L105:
	.align	2
.L104:
	.word	.LC79
	.word	.LC0
	.word	warehouse_size
	.word	10000
	.word	.LC1
	.word	.LC2
	.word	server_fifo1
	.word	.LC3
	.word	client_fifo1
	.word	.LC4
	.word	server_fifo2
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	handler1
	.word	.LC13
	.word	.LC15
	.word	.LC17
	.word	.LC19
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC29
	.word	.LC31
	.word	.LC33
	.word	.LC35
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	warehouse
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	client_fifo2
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	server_fifo3
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	warehouse_size
	.word	.LC18
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC24
	.word	.LC59
	.word	.LC20
	.word	.LC60
	.word	.LC61
	.word	.LC28
	.word	.LC62
	.word	.LC30
	.word	.LC63
	.word	.LC32
	.word	client_fifo3
	.word	stderr
	.word	.LC64
	.word	stdout
	.word	.LC34
	.word	.LC65
	.word	.LC37
	.word	.LC38
	.word	.LC36
	.word	9999
	.word	server_fifo4
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC66
	.word	thread_track
	.word	thread_track_count
	.word	processes
	.word	.LC14
	.word	.LC67
	.word	.LC16
	.word	client_fifo4
	.word	warehouse
.L40:
	ldr	r3, [fp, #-816]
	add	r3, r3, #1
	str	r3, [fp, #-816]
.L39:
	ldr	r3, .L104+204
	ldr	r3, [r3]
	ldr	r2, [fp, #-816]
	cmp	r2, r3
	blt	.L41
.L38:
	sub	r3, fp, #508
	ldr	r1, .L104+208
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	mov	r3, #0
	str	r3, [fp, #-848]
	ldr	r0, .L104+136
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+232
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+140
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L43
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+140
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L104+144
	bl	printf
	b	.L42
.L43:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L104+148
	bl	fwrite
.L42:
	sub	r3, fp, #508
	ldr	r1, .L104+224
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+152
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+232
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+352
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L46
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r2, r3, #4
	sub	r3, fp, #108
	ldr	r1, .L104+308
	mov	r0, r3
	bl	sprintf
	ldr	r0, .L104+156
	bl	puts
	ldr	r3, .L104+172
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	b	.L47
.L46:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L104+160
	bl	fwrite
.L47:
	ldr	r3, .L104+276
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L45:
	sub	r3, fp, #508
	ldr	r1, .L104+244
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+164
	bl	puts
	sub	r3, fp, #208
	sub	r2, fp, #848
	sub	r0, fp, #408
	ldr	r1, .L104+252
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+352
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L49
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r3, r3, #4
	sub	r2, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r3, r3, #4
	ldr	r2, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L104+168
	bl	printf
	sub	r3, fp, #108
	ldr	r1, .L104+260
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L104+172
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	b	.L50
.L49:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L104+176
	bl	fwrite
.L50:
	ldr	r3, .L104+276
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L48:
	sub	r3, fp, #508
	ldr	r1, .L104+280
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+180
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+296
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-812]
	b	.L52
.L54:
	ldr	r1, .L104+352
	ldr	r2, [fp, #-812]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bne	.L53
	ldr	r1, .L104+352
	ldr	r2, [fp, #-812]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L104+352
	ldr	r2, [fp, #-812]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-812]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
.L53:
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
.L52:
	ldr	r3, [fp, #-812]
	ldr	r2, .L104+300
	cmp	r3, r2
	ble	.L54
	ldr	r3, .L104+324
	mov	r2, #0
	str	r2, [r3, #4]
.L51:
	sub	r3, fp, #508
	ldr	r1, .L104+288
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-768]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+184
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+296
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-808]
	b	.L55
.L57:
	ldr	r1, .L104+352
	ldr	r2, [fp, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bne	.L56
	ldr	r1, .L104+352
	ldr	r2, [fp, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L104+352
	ldr	r2, [fp, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-808]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
.L56:
	ldr	r3, [fp, #-808]
	add	r3, r3, #1
	str	r3, [fp, #-808]
.L55:
	ldr	r3, [fp, #-808]
	ldr	r2, .L104+300
	cmp	r3, r2
	ble	.L57
	ldr	r3, .L104+324
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L104+332
	mov	r2, #0
	str	r2, [r3, #4]
.L36:
	ldr	r3, .L104+188
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-632]
	ldr	r3, .L104+188
	ldr	r3, [r3]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L104+188
	ldr	r3, [r3]
	sub	r1, fp, #408
	mov	r2, #100
	mov	r0, r3
	bl	read
	sub	r2, fp, #508
	sub	r3, fp, #408
	ldr	r1, .L104+308
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r0, #1
	bl	sleep
	bl	green
	sub	r3, fp, #508
	ldr	r1, .L104+312
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	mov	r3, #0
	str	r3, [fp, #-848]
	sub	r3, fp, #848
	sub	r2, fp, #852
	sub	r0, fp, #408
	ldr	r1, .L104+316
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-852]
	mov	r1, r3
	ldr	r0, .L104+192
	bl	printf
	ldr	r3, [fp, #-852]
	ldr	r2, .L104+324
	str	r3, [r2, #8]
	ldr	r3, .L104+328
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L104+328
	str	r3, [r2]
	ldr	r3, [fp, #-848]
	ldr	r2, .L104+332
	str	r3, [r2, #8]
.L59:
	sub	r3, fp, #508
	ldr	r1, .L104+336
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	ldr	r0, .L104+196
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-804]
	b	.L61
.L63:
	ldr	r1, .L104+352
	ldr	r2, [fp, #-804]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L62
	sub	r3, fp, #108
	ldr	r2, [fp, #-804]
	ldr	r1, .L104+344
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L104+264
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	ldr	r1, .L104+352
	ldr	r2, [fp, #-804]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L104+324
	ldr	r1, [r3, #8]
	ldr	r0, .L104+352
	ldr	r2, [fp, #-804]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #104
	str	r1, [r3]
	ldr	r1, [fp, #-804]
	ldr	r0, .L104+200
	bl	printf
	b	.L60
.L62:
	ldr	r3, [fp, #-804]
	add	r3, r3, #1
	str	r3, [fp, #-804]
.L61:
	ldr	r3, .L104+204
	ldr	r3, [r3]
	ldr	r2, [fp, #-804]
	cmp	r2, r3
	blt	.L63
.L60:
	sub	r3, fp, #508
	ldr	r1, .L104+208
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	mov	r3, #0
	str	r3, [fp, #-848]
	ldr	r0, .L104+212
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+232
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+352
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L65
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+352
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L104+216
	bl	printf
	b	.L64
.L65:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L104+220
	bl	fwrite
.L64:
	sub	r3, fp, #508
	ldr	r1, .L104+224
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+228
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+232
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+352
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L68
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r2, r3, #4
	sub	r3, fp, #108
	ldr	r1, .L104+308
	mov	r0, r3
	bl	sprintf
	ldr	r0, .L104+236
	bl	puts
	ldr	r3, .L104+264
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	b	.L69
.L68:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L104+240
	bl	fwrite
.L69:
	ldr	r3, .L104+276
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L67:
	sub	r3, fp, #508
	ldr	r1, .L104+244
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+248
	bl	puts
	sub	r3, fp, #208
	sub	r2, fp, #848
	sub	r0, fp, #408
	ldr	r1, .L104+252
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L104+352
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L71
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r3, r3, #4
	sub	r2, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r3, r3, #4
	ldr	r2, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L104+256
	bl	printf
	sub	r3, fp, #108
	ldr	r1, .L104+260
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L104+264
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	b	.L72
.L71:
	ldr	r3, .L104+268
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L104+272
	bl	fwrite
.L72:
	ldr	r3, .L104+276
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L70:
	sub	r3, fp, #508
	ldr	r1, .L104+280
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L73
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L104+284
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+296
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-800]
	b	.L74
.L76:
	ldr	r1, .L104+352
	ldr	r2, [fp, #-800]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bne	.L75
	ldr	r1, .L104+352
	ldr	r2, [fp, #-800]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L104+352
	ldr	r2, [fp, #-800]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-800]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
.L75:
	ldr	r3, [fp, #-800]
	add	r3, r3, #1
	str	r3, [fp, #-800]
.L74:
	ldr	r3, [fp, #-800]
	ldr	r2, .L104+300
	cmp	r3, r2
	ble	.L76
	ldr	r3, .L104+324
	mov	r2, #0
	str	r2, [r3, #8]
.L73:
	sub	r3, fp, #508
	ldr	r1, .L104+288
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	mov	r3, #0
	str	r3, [fp, #-848]
	ldr	r0, .L104+292
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L104+296
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-796]
	b	.L77
.L79:
	ldr	r1, .L104+352
	ldr	r2, [fp, #-796]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bne	.L78
	ldr	r1, .L104+352
	ldr	r2, [fp, #-796]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L104+352
	ldr	r2, [fp, #-796]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-796]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L104+352
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
.L78:
	ldr	r3, [fp, #-796]
	add	r3, r3, #1
	str	r3, [fp, #-796]
.L77:
	ldr	r3, [fp, #-796]
	ldr	r2, .L104+300
	cmp	r3, r2
	ble	.L79
	ldr	r3, .L104+324
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L104+332
	mov	r2, #0
	str	r2, [r3, #8]
.L58:
	ldr	r3, .L104+304
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-632]
	ldr	r3, .L104+304
	ldr	r3, [r3]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L101
	ldr	r3, .L104+304
	ldr	r3, [r3]
	sub	r1, fp, #408
	mov	r2, #100
	mov	r0, r3
	bl	read
	sub	r2, fp, #508
	sub	r3, fp, #408
	ldr	r1, .L104+308
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r0, #1
	bl	sleep
	bl	yellow
	sub	r3, fp, #508
	ldr	r1, .L104+312
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
	mov	r3, #0
	str	r3, [fp, #-848]
	sub	r3, fp, #848
	sub	r2, fp, #852
	sub	r0, fp, #408
	ldr	r1, .L104+316
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-852]
	mov	r1, r3
	ldr	r0, .L104+320
	bl	printf
	ldr	r3, [fp, #-852]
	ldr	r2, .L104+324
	str	r3, [r2, #12]
	ldr	r3, .L104+328
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L104+328
	str	r3, [r2]
	ldr	r3, [fp, #-848]
	ldr	r2, .L104+332
	str	r3, [r2, #12]
.L80:
	sub	r3, fp, #508
	ldr	r1, .L104+336
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	ldr	r0, .L104+340
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-792]
	b	.L82
.L84:
	ldr	r1, .L104+352
	ldr	r2, [fp, #-792]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L83
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	ldr	r2, [fp, #-792]
	ldr	r1, .L104+344
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L104+348
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	ldr	r1, .L104+352
	ldr	r2, [fp, #-792]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L106
	ldr	r1, [r3, #12]
	ldr	r0, .L106+4
	ldr	r2, [fp, #-792]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #104
	str	r1, [r3]
	ldr	r1, [fp, #-792]
	ldr	r0, .L106+8
	bl	printf
	b	.L81
.L83:
	ldr	r3, [fp, #-792]
	add	r3, r3, #1
	str	r3, [fp, #-792]
.L82:
	ldr	r3, .L106+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-792]
	cmp	r2, r3
	blt	.L84
.L81:
	sub	r3, fp, #508
	ldr	r1, .L106+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L85
	mov	r3, #0
	str	r3, [fp, #-848]
	ldr	r0, .L106+20
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L106+24
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L106+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L86
	ldr	r2, [fp, #-848]
	ldr	r1, .L106+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L106+28
	bl	printf
	b	.L85
.L86:
	ldr	r3, .L106+32
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L106+36
	bl	fwrite
.L85:
	sub	r3, fp, #508
	ldr	r1, .L106+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L106+44
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L106+24
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L106+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L89
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L106+4
	add	r3, r3, r2
	add	r2, r3, #4
	sub	r3, fp, #108
	ldr	r1, .L106+48
	mov	r0, r3
	bl	sprintf
	ldr	r0, .L106+52
	bl	puts
	ldr	r3, .L106+56
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	b	.L90
.L89:
	ldr	r3, .L106+32
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L106+60
	bl	fwrite
.L90:
	ldr	r3, .L106+64
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L88:
	sub	r3, fp, #508
	ldr	r1, .L106+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L106+72
	bl	puts
	sub	r3, fp, #208
	sub	r2, fp, #848
	sub	r0, fp, #408
	ldr	r1, .L106+76
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-848]
	ldr	r1, .L106+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L92
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L106+4
	add	r3, r3, r2
	add	r3, r3, #4
	sub	r2, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-848]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L106+4
	add	r3, r3, r2
	add	r3, r3, #4
	ldr	r2, [fp, #-848]
	mov	r1, r3
	ldr	r0, .L106+80
	bl	printf
	sub	r3, fp, #108
	ldr	r1, .L106+84
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L106+56
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	write
	b	.L93
.L92:
	ldr	r3, .L106+32
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L106+88
	bl	fwrite
.L93:
	ldr	r3, .L106+64
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L91:
	sub	r3, fp, #508
	ldr	r1, .L106+92
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L94
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L106+96
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L106+100
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-788]
	b	.L95
.L97:
	ldr	r1, .L106+4
	ldr	r2, [fp, #-788]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bne	.L96
	ldr	r1, .L106+4
	ldr	r2, [fp, #-788]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L106+4
	ldr	r2, [fp, #-788]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-788]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L106+4
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
.L96:
	ldr	r3, [fp, #-788]
	add	r3, r3, #1
	str	r3, [fp, #-788]
.L95:
	ldr	r3, [fp, #-788]
	ldr	r2, .L106+104
	cmp	r3, r2
	ble	.L97
	ldr	r3, .L106
	mov	r2, #0
	str	r2, [r3, #12]
.L94:
	sub	r3, fp, #508
	ldr	r1, .L106+108
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L101
	mov	r3, #0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L106+112
	bl	puts
	sub	r2, fp, #848
	sub	r3, fp, #408
	ldr	r1, .L106+100
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-784]
	b	.L98
.L100:
	ldr	r1, .L106+4
	ldr	r2, [fp, #-784]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-848]
	cmp	r2, r3
	bne	.L99
	ldr	r1, .L106+4
	ldr	r2, [fp, #-784]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L106+4
	ldr	r2, [fp, #-784]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-784]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L106+4
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
.L99:
	ldr	r3, [fp, #-784]
	add	r3, r3, #1
	str	r3, [fp, #-784]
.L98:
	ldr	r3, [fp, #-784]
	ldr	r2, .L106+104
	cmp	r3, r2
	ble	.L100
	ldr	r3, .L106
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L106+116
	mov	r2, #0
	str	r2, [r3, #12]
	b	.L101
.L102:
	ldr	r2, .L106+120
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L103
	bl	__stack_chk_fail
.L103:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L107:
	.align	2
.L106:
	.word	thread_track
	.word	warehouse
	.word	.LC68
	.word	warehouse_size
	.word	.LC18
	.word	.LC69
	.word	.LC20
	.word	.LC70
	.word	stderr
	.word	.LC71
	.word	.LC24
	.word	.LC72
	.word	.LC10
	.word	.LC73
	.word	client_fifo4
	.word	.LC74
	.word	stdout
	.word	.LC28
	.word	.LC75
	.word	.LC30
	.word	.LC76
	.word	.LC32
	.word	.LC77
	.word	.LC34
	.word	.LC78
	.word	.LC36
	.word	9999
	.word	.LC37
	.word	.LC38
	.word	processes
	.word	.LC79
	.size	main, .-main
	.section	.rodata
	.align	2
.LC80:
	.ascii	"shell> \000"
	.align	2
.LC81:
	.ascii	"\012\000"
	.align	2
.LC82:
	.ascii	" \000"
	.align	2
.LC83:
	.ascii	"list\000"
	.align	2
.LC84:
	.ascii	"Client\011ID\000"
	.align	2
.LC85:
	.ascii	"%d\011\000"
	.align	2
.LC86:
	.ascii	"%ld\012\000"
	.align	2
.LC87:
	.ascii	"List of Entries by Client %ld\012\000"
	.align	2
.LC88:
	.ascii	"ID\011\011\011Attribute Name\011\011Is Valid\000"
	.align	2
.LC89:
	.ascii	"%ld\011\011\000"
	.align	2
.LC90:
	.ascii	"%s\011\011\000"
	.align	2
.LC91:
	.ascii	"%d\012\000"
	.align	2
.LC92:
	.ascii	"dump\000"
	.align	2
.LC93:
	.ascii	"Index: %d\011\000"
	.align	2
.LC94:
	.ascii	"Warehouse Record ID: %ld\011\000"
	.align	2
.LC95:
	.ascii	"Warehouse Record Name: %s\011\000"
	.align	2
.LC96:
	.ascii	"Warehouse Record Valid: %d\012\000"
	.align	2
.LC97:
	.ascii	"exit\000"
	.align	2
.LC98:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handler1
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler1, %function
handler1:
	@ args = 0, pretend = 0, frame = 952
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #952
	str	r0, [fp, #-952]
	ldr	r3, .L129
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-932]
	bl	reset
.L127:
	mov	r0, #1
	bl	sleep
	mov	r0, #10
	bl	putchar
	ldr	r0, .L129+4
	bl	printf
	ldr	r3, .L129+8
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #255
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #520
	ldr	r1, .L129+12
	mov	r0, r3
	bl	strtok
	sub	r2, fp, #520
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #264
	ldr	r1, .L129+16
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-928]
	ldr	r0, [fp, #-928]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-920]
	mov	r3, #0
	str	r3, [fp, #-916]
	ldr	r3, [fp, #-920]
	mov	r0, r3
	bl	strlwr
	mov	r3, r0
	str	r3, [fp, #-920]
	ldr	r3, [fp, #-920]
	ldr	r1, .L129+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L109
	sub	r2, fp, #948
	sub	r3, fp, #520
	ldr	r1, .L129+24
	mov	r0, r3
	bl	__isoc99_sscanf
	str	r0, [fp, #-924]
	ldr	r3, [fp, #-924]
	cmn	r3, #1
	bne	.L110
	ldr	r0, .L129+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-944]
	b	.L111
.L113:
	ldr	r2, .L129+32
	ldr	r3, [fp, #-944]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L112
	ldr	r3, [fp, #-944]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L129+36
	bl	printf
	ldr	r2, .L129+32
	ldr	r3, [fp, #-944]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L129+40
	bl	printf
.L112:
	ldr	r3, [fp, #-944]
	add	r3, r3, #1
	str	r3, [fp, #-944]
.L111:
	ldr	r3, .L129+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-944]
	cmp	r2, r3
	blt	.L113
	b	.L114
.L110:
	ldr	r3, [fp, #-948]
	mov	r1, r3
	ldr	r0, .L129+48
	bl	printf
	ldr	r0, .L129+52
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-940]
	b	.L115
.L117:
	ldr	r1, .L129+56
	ldr	r2, [fp, #-940]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r2, [r3]
	ldr	r3, [fp, #-948]
	cmp	r2, r3
	bne	.L116
	ldr	r1, .L129+56
	ldr	r2, [fp, #-940]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L116
	ldr	r1, .L129+56
	ldr	r2, [fp, #-940]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L129+60
	bl	printf
	ldr	r2, [fp, #-940]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L129+56
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L129+64
	bl	printf
	ldr	r1, .L129+56
	ldr	r2, [fp, #-940]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L129+68
	bl	printf
.L116:
	ldr	r3, [fp, #-940]
	add	r3, r3, #1
	str	r3, [fp, #-940]
.L115:
	ldr	r3, .L129+72
	ldr	r3, [r3]
	ldr	r2, [fp, #-940]
	cmp	r2, r3
	blt	.L117
.L114:
	ldr	r3, .L129+76
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-920]
	mov	r0, r3
	bl	free
	b	.L118
.L109:
	ldr	r3, [fp, #-920]
	ldr	r1, .L129+80
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L119
	mov	r3, #0
	str	r3, [fp, #-936]
	b	.L120
.L121:
	ldr	r1, [fp, #-936]
	ldr	r0, .L129+84
	bl	printf
	ldr	r1, .L129+56
	ldr	r2, [fp, #-936]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L129+88
	bl	printf
	ldr	r2, [fp, #-936]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L129+56
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L129+92
	bl	printf
	ldr	r1, .L129+56
	ldr	r2, [fp, #-936]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L129+96
	bl	printf
	ldr	r3, [fp, #-936]
	add	r3, r3, #1
	str	r3, [fp, #-936]
.L120:
	ldr	r3, .L129+72
	ldr	r3, [r3]
	ldr	r2, [fp, #-936]
	cmp	r2, r3
	blt	.L121
	ldr	r3, [fp, #-920]
	mov	r0, r3
	bl	free
	b	.L118
.L119:
	ldr	r3, [fp, #-920]
	ldr	r1, .L129+100
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L122
	ldr	r3, .L129+104
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L123
	ldr	r3, .L129+104
	ldr	r3, [r3]
	mov	r1, #15
	mov	r0, r3
	bl	kill
.L123:
	ldr	r3, .L129+104
	ldr	r3, [r3, #4]
	cmp	r3, #0
	ble	.L124
	ldr	r3, .L129+104
	ldr	r3, [r3, #4]
	mov	r1, #15
	mov	r0, r3
	bl	kill
.L124:
	ldr	r3, .L129+104
	ldr	r3, [r3, #8]
	cmp	r3, #0
	ble	.L125
	ldr	r3, .L129+104
	ldr	r3, [r3, #8]
	mov	r1, #15
	mov	r0, r3
	bl	kill
.L125:
	ldr	r3, .L129+104
	ldr	r3, [r3, #12]
	cmp	r3, #0
	ble	.L126
	ldr	r3, .L129+104
	ldr	r3, [r3, #12]
	mov	r1, #15
	mov	r0, r3
	bl	kill
.L126:
	ldr	r3, .L129+108
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L129+112
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L129+116
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L129+120
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L129+124
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L129+128
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L129+132
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L129+136
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-920]
	mov	r0, r3
	bl	free
	mov	r3, #1
	str	r3, [fp, #-932]
	mov	r0, #0
	bl	exit
.L122:
	ldr	r3, [fp, #-932]
	cmp	r3, #0
	beq	.L127
.L118:
	nop
	ldr	r3, .L129
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L128
	bl	__stack_chk_fail
.L128:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L130:
	.align	2
.L129:
	.word	.LC98
	.word	.LC80
	.word	stdin
	.word	.LC81
	.word	.LC82
	.word	.LC83
	.word	.LC36
	.word	.LC84
	.word	thread_track
	.word	.LC85
	.word	.LC86
	.word	thread_track_count
	.word	.LC87
	.word	.LC88
	.word	warehouse
	.word	.LC89
	.word	.LC90
	.word	.LC91
	.word	warehouse_size
	.word	stdout
	.word	.LC92
	.word	.LC93
	.word	.LC94
	.word	.LC95
	.word	.LC96
	.word	.LC97
	.word	processes
	.word	server_fifo1
	.word	client_fifo1
	.word	server_fifo2
	.word	client_fifo2
	.word	server_fifo3
	.word	client_fifo3
	.word	server_fifo4
	.word	client_fifo4
	.size	handler1, .-handler1
	.align	2
	.global	strlwr
	.syntax unified
	.arm
	.fpu softvfp
	.type	strlwr, %function
strlwr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L132
.L133:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L132:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L133
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strlwr, .-strlwr
	.section	.rodata
	.align	2
.LC99:
	.ascii	"\033[1;31m\000"
	.text
	.align	2
	.global	red
	.syntax unified
	.arm
	.fpu softvfp
	.type	red, %function
red:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L136
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L136+4
	bl	fwrite
	ldr	r0, .L136+4
	bl	printf
	nop
	pop	{fp, pc}
.L137:
	.align	2
.L136:
	.word	stderr
	.word	.LC99
	.size	red, .-red
	.section	.rodata
	.align	2
.LC100:
	.ascii	"\033[1;33m\000"
	.text
	.align	2
	.global	yellow
	.syntax unified
	.arm
	.fpu softvfp
	.type	yellow, %function
yellow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L139
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L139+4
	bl	fwrite
	ldr	r0, .L139+4
	bl	printf
	nop
	pop	{fp, pc}
.L140:
	.align	2
.L139:
	.word	stderr
	.word	.LC100
	.size	yellow, .-yellow
	.section	.rodata
	.align	2
.LC101:
	.ascii	"\033[1;32m\000"
	.text
	.align	2
	.global	green
	.syntax unified
	.arm
	.fpu softvfp
	.type	green, %function
green:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L142
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L142+4
	bl	fwrite
	ldr	r0, .L142+4
	bl	printf
	nop
	pop	{fp, pc}
.L143:
	.align	2
.L142:
	.word	stderr
	.word	.LC101
	.size	green, .-green
	.section	.rodata
	.align	2
.LC102:
	.ascii	"\033[1;34m\000"
	.text
	.align	2
	.global	blue
	.syntax unified
	.arm
	.fpu softvfp
	.type	blue, %function
blue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L145
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L145+4
	bl	fwrite
	ldr	r0, .L145+4
	bl	printf
	nop
	pop	{fp, pc}
.L146:
	.align	2
.L145:
	.word	stderr
	.word	.LC102
	.size	blue, .-blue
	.section	.rodata
	.align	2
.LC103:
	.ascii	"\033[0m\000"
	.text
	.align	2
	.global	reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset, %function
reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L148
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L148+4
	bl	fwrite
	ldr	r0, .L148+4
	bl	printf
	nop
	pop	{fp, pc}
.L149:
	.align	2
.L148:
	.word	stderr
	.word	.LC103
	.size	reset, .-reset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
