	.file	"622336.c"
	.intel_syntax noprefix
	.text
	.globl	maxpeds
	.bss
	.align 4
	.type	maxpeds, @object
	.size	maxpeds, 4
maxpeds:
	.zero	4
	.globl	speeddown
	.data
	.align 4
	.type	speeddown, @object
	.size	speeddown, 4
speeddown:
	.long	1
	.globl	msqid
	.bss
	.align 4
	.type	msqid, @object
	.size	msqid, 4
msqid:
	.zero	4
	.globl	shmid
	.align 4
	.type	shmid, @object
	.size	shmid, 4
shmid:
	.zero	4
	.globl	shmidp
	.align 4
	.type	shmidp, @object
	.size	shmidp, 4
shmidp:
	.zero	4
	.globl	mnpid
	.align 4
	.type	mnpid, @object
	.size	mnpid, 4
mnpid:
	.zero	4
	.globl	randinterval
	.data
	.align 4
	.type	randinterval, @object
	.size	randinterval, 4
randinterval:
	.long	35
	.globl	numpeds
	.bss
	.align 4
	.type	numpeds, @object
	.size	numpeds, 4
numpeds:
	.zero	4
	.globl	peds
	.align 8
	.type	peds, @object
	.size	peds, 8
peds:
	.zero	8
	.globl	light_state
	.align 8
	.type	light_state, @object
	.size	light_state, 8
light_state:
	.zero	8
	.globl	movethr
	.align 8
	.type	movethr, @object
	.size	movethr, 8
movethr:
	.zero	8
	.globl	can_run
	.data
	.align 4
	.type	can_run, @object
	.size	can_run, 4
can_run:
	.long	1
	.globl	direction
	.align 32
	.type	direction, @object
	.size	direction, 112
direction:
	.long	237
	.long	-15
	.long	0
	.long	1
	.long	0
	.long	145
	.long	-1
	.long	397
	.long	495
	.long	0
	.long	-1
	.long	0
	.long	335
	.long	-1
	.long	-15
	.long	318
	.long	1
	.long	0
	.long	200
	.long	0
	.long	-1
	.long	655
	.long	156
	.long	-1
	.long	0
	.long	415
	.long	0
	.long	-1
	.text
	.globl	string_to_uint
	.type	string_to_uint, @function
string_to_uint:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L4:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -12[rbp], eax
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	mov	QWORD PTR -8[rbp], rax
.L2:
	cmp	QWORD PTR -8[rbp], 47
	jbe	.L3
	cmp	QWORD PTR -8[rbp], 57
	jbe	.L4
.L3:
	cmp	QWORD PTR -32[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L5:
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	string_to_uint, .-string_to_uint
	.globl	send_server_message
	.type	send_server_message, @function
send_server_message:
.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, 304
	mov	QWORD PTR -296[rbp], rdi
	mov	DWORD PTR -300[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -288[rbp], 10
	mov	DWORD PTR -280[rbp], 12
	mov	rax, QWORD PTR -296[rbp]
	lea	rdx, -288[rbp]
	add	rdx, 12
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR msqid[rip]
	mov	edx, DWORD PTR -300[rbp]
	lea	rsi, -288[rbp]
	mov	ecx, edx
	mov	edx, 260
	mov	edi, eax
	call	msgsnd@PLT
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	send_server_message, .-send_server_message
	.section	.rodata
	.align 8
.LC0:
	.string	"\033[0;32;34mPr\303\263ba nawi\304\205zania po\305\202\304\205czenia z serwerem...\033[0m"
	.align 8
.LC1:
	.string	"\033[0;32;31mNie mo\305\274na po\305\202\304\205czy\304\207 si\304\231 z kolejk\304\205 komunikat\303\263w.\n\033[0m"
	.align 8
.LC2:
	.string	"\033[0;32;31mOdebrano nieprawid\305\202owy pakiet danych od serwera.\n\033[0m"
	.align 8
.LC3:
	.string	"\033[0;32;32mNawi\304\205zano po\305\202\304\205czenie z serwerem\033[0m."
	.align 8
.LC4:
	.string	"\033[0;32;32mPo\305\202\304\205czenie zosta\305\202o ustanowione.\033[0m"
	.text
	.globl	server_handshake
	.type	server_handshake, @function
server_handshake:
.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	QWORD PTR -288[rbp], 10
	mov	DWORD PTR -280[rbp], 28
	mov	eax, DWORD PTR msqid[rip]
	lea	rsi, -288[rbp]
	mov	ecx, 0
	mov	edx, 260
	mov	edi, eax
	call	msgsnd@PLT
	test	eax, eax
	jns	.L11
	mov	eax, 1
	jmp	.L16
.L11:
	mov	eax, DWORD PTR msqid[rip]
	lea	rsi, -288[rbp]
	mov	r8d, 0
	mov	ecx, 12
	mov	edx, 260
	mov	edi, eax
	call	msgrcv@PLT
	test	rax, rax
	jns	.L13
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L16
.L13:
	mov	eax, DWORD PTR -280[rbp]
	cmp	eax, 32
	jne	.L14
	movzx	eax, BYTE PTR -276[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -275[rbp]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR -274[rbp]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	movzx	eax, BYTE PTR -273[rbp]
	movzx	eax, al
	sal	eax, 22
	or	eax, edx
	mov	DWORD PTR maxpeds[rip], eax
	movzx	eax, BYTE PTR -272[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -271[rbp]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR -270[rbp]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	movzx	eax, BYTE PTR -269[rbp]
	movzx	eax, al
	sal	eax, 22
	or	eax, edx
	mov	DWORD PTR speeddown[rip], eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	esi, 0
	lea	rdi, .LC4[rip]
	call	send_server_message
	mov	eax, 0
	jmp	.L16
.L14:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	server_handshake, .-server_handshake
	.section	.rodata
	.align 8
.LC5:
	.string	"\033[0;32;32mPo\305\202\304\205czenie zosta\305\202o zako\305\204czone.\033[0m"
	.text
	.globl	server_bye
	.type	server_bye, @function
server_bye:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 2048
	lea	rdi, .LC5[rip]
	call	send_server_message
	mov	QWORD PTR -288[rbp], 10
	mov	DWORD PTR -280[rbp], 252
	mov	eax, DWORD PTR msqid[rip]
	lea	rsi, -288[rbp]
	mov	ecx, 2048
	mov	edx, 260
	mov	edi, eax
	call	msgsnd@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	server_bye, .-server_bye
	.globl	random_create_ped
	.type	random_create_ped, @function
random_create_ped:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR interval.0[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR interval.0[rip], edx
	mov	edx, DWORD PTR randinterval[rip]
	cmp	eax, edx
	jl	.L28
	mov	DWORD PTR interval.0[rip], 0
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L20
	jmp	.L23
.L27:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	je	.L24
	add	DWORD PTR -8[rbp], 1
	jmp	.L23
.L24:
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 24[rax], 1
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR [rcx], eax
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR 4[rcx], eax
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR 8[rdx], eax
	call	rand@PLT
	mov	edx, eax
	mov	rsi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 3
	add	rsi, rax
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR 12[rsi], eax
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR 16[rcx], eax
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR 20[rcx], eax
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR 28[rcx], eax
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 32[rax], -1
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 28[rax]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L25
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 28[rax], -1
.L25:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, -1
	je	.L26
	mov	rcx, QWORD PTR peds[rip]
	mov	rsi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR 28[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR 32[rdx], eax
.L26:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rcx, rax
	lea	rdx, direction[rip+24]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L20
.L23:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR numpeds[rip]
	cmp	edx, eax
	jb	.L27
	jmp	.L20
.L28:
	nop
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	random_create_ped, .-random_create_ped
	.globl	move_pedestrian
	.type	move_pedestrian, @function
move_pedestrian:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -32[rbp], 0
	jmp	.L30
.L52:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR numpeds[rip]
	cmp	edx, eax
	je	.L31
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR numpeds[rip]
	cmp	edx, eax
	jbe	.L32
	jmp	.L33
.L34:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	sub	rax, 40
	add	rax, rcx
	mov	eax, DWORD PTR 36[rax]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	sub	DWORD PTR -32[rbp], 1
.L33:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR numpeds[rip]
	cmp	edx, eax
	ja	.L34
	jmp	.L31
.L32:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR numpeds[rip]
	cmp	edx, eax
	jnb	.L31
	jmp	.L35
.L51:
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L36
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
.L50:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jne	.L37
	mov	eax, DWORD PTR speeddown[rip]
	mov	edi, eax
	call	usleep@PLT
	jmp	.L38
.L37:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 660
	jg	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 500
	jg	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -20
	jl	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -20
	jge	.L40
.L39:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 32[rax]
	cmp	eax, -1
	je	.L41
	mov	rcx, QWORD PTR peds[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 32[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 28[rax], -1
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L54
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+24]
	mov	DWORD PTR [rdx+rax], -1
	jmp	.L54
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 2
	jne	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, 5[rax]
	mov	rsi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	sub	eax, 2
	cmp	ecx, eax
	jge	.L44
.L43:
	cmp	DWORD PTR -12[rbp], -1
	je	.L45
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 3
	jne	.L45
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L45
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, -2[rax]
	mov	rsi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	add	eax, 5
	cmp	ecx, eax
	jle	.L44
.L45:
	cmp	DWORD PTR -12[rbp], -1
	je	.L46
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L46
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L46
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	ecx, 5[rax]
	mov	rsi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR 4[rax]
	sub	eax, 2
	cmp	ecx, eax
	jge	.L44
.L46:
	cmp	DWORD PTR -12[rbp], -1
	je	.L47
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 1
	jne	.L47
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -16[rbp], eax
	jge	.L47
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	ecx, -2[rax]
	mov	rsi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR 4[rax]
	add	eax, 5
	cmp	ecx, eax
	jle	.L44
.L47:
	cmp	DWORD PTR -20[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L48
	mov	rdx, QWORD PTR light_state[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cdqe
	add	rax, 12
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L44
.L48:
	cmp	DWORD PTR -16[rbp], 0
	je	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L49
	mov	rdx, QWORD PTR light_state[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cdqe
	add	rax, 12
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L44
.L49:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
.L44:
	mov	eax, DWORD PTR speeddown[rip]
	mov	edi, eax
	call	usleep@PLT
	jmp	.L50
.L54:
	nop
.L38:
	jmp	.L50
.L36:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR 36[rdx], eax
	add	DWORD PTR -32[rbp], 1
.L35:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR numpeds[rip]
	cmp	edx, eax
	jb	.L51
.L31:
	call	random_create_ped
	mov	eax, DWORD PTR speeddown[rip]
	mov	edi, eax
	call	usleep@PLT
.L30:
	mov	eax, DWORD PTR can_run[rip]
	test	eax, eax
	jne	.L52
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	move_pedestrian, .-move_pedestrian
	.globl	reset_pedestrians
	.type	reset_pedestrians, @function
reset_pedestrians:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 0
	jmp	.L56
.L57:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 24[rax], 0
	add	DWORD PTR -4[rbp], 1
.L56:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR maxpeds[rip]
	cmp	edx, eax
	jb	.L57
	mov	DWORD PTR -4[rbp], 0
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+24]
	mov	DWORD PTR [rdx+rax], -1
	add	DWORD PTR -4[rbp], 1
.L58:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L59
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	reset_pedestrians, .-reset_pedestrians
	.section	.rodata
.LC6:
	.string	"\033[0;35m$ \033[0m"
.LC7:
	.string	"exit"
.LC8:
	.string	"reset"
	.align 8
.LC9:
	.string	"\033[0;33mPowr\303\263t pieszych do stanu pocz\304\205tkowego.\033[0m"
.LC10:
	.string	"max"
	.align 8
.LC11:
	.string	"\033[0;33mLimit wy\305\233wietlanych pieszych to: %d.\033[0m\n"
.LC12:
	.string	"current"
	.align 8
.LC13:
	.string	"\033[0;33mObecna ilo\305\233\304\207 wy\305\233wietlanych pieszych to: %d.\033[0m\n"
.LC14:
	.string	"help"
.LC15:
	.string	"Lista dost\304\231pnych komend:"
	.align 8
.LC16:
	.string	"  - \033[0;33mreset\033[0m    : powr\303\263t pieszych do stanu pocz\304\205tkowego;"
	.align 8
.LC17:
	.string	"  - \033[0;33mmax\033[0m      : najwi\304\231ksza mo\305\274liwa ilo\305\233\304\207 ustawionych pieszych;"
	.align 8
.LC18:
	.string	"  - \033[0;33mcurrent\033[0m  : aktualna ilo\305\233\304\207 ustawionych pieszych;"
	.align 8
.LC19:
	.string	"  - \033[0;33mival \033[0m\033[0;32;34m<?>\033[0m : przerwa pomi\304\231dzy kolejnymi losowaniami pieszych w 1/60 sek;"
	.align 8
.LC20:
	.string	"  - \033[0;33mhelp\033[0m     : pomoc, wy\305\233wietla list\304\231 komend;"
	.align 8
.LC21:
	.string	"  - \033[0;33mset \033[0m\033[0;32;34m<x>\033[0m  : zmiana ilo\305\233ci ustawionych pieszych, po komendzie set nale\305\274y poda\304\207 now\304\205 ilo\305\233\304\207 wy\305\233wietlanych pieszych;"
	.align 8
.LC22:
	.string	"  - \033[0;33mexit\033[0m     : wyj\305\233cie z programu;"
	.align 8
.LC23:
	.string	"Zmienne oznaczone jako x, y lub z nale\305\274y zamieni\304\207 odpowiednimi znakami lub cyframi. W przypadku gdy w miejscu zmiennej znajduje si\304\231 znak ? oznacza to, \305\274e argument ten nie jest obowi\304\205zkowy."
.LC24:
	.string	"set"
	.align 8
.LC25:
	.string	"\033[0;35mIlo\305\233\304\207 zamochod\303\263w nie mo\305\274e przekracza\304\207: %d.\033[0m\n"
	.align 8
.LC26:
	.string	"\033[0;36mZmieniono ilo\305\233\304\207 wy\305\233wietlanych pieszych na: %d.\033[0m\n"
.LC27:
	.string	"ival"
	.align 8
.LC28:
	.string	"\033[0;33mAktualna przerwa pomi\304\231dzy losowaniami pieszych: %d.\033[0m\n"
	.align 8
.LC29:
	.string	"\033[0;36mZmieniono przerw\304\231 pomi\304\231dzy losowaniami pieszych na: %d.\033[0m\n"
	.align 8
.LC30:
	.string	"\033[0;32;31mNieprawid\305\202owa komenda, wpisz help aby wy\305\233wietli\304\207 list\304\231 komend.\033[0m"
	.text
	.globl	command_manager
	.type	command_manager, @function
command_manager:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -572[rbp], 0
	mov	DWORD PTR -568[rbp], 1
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L61
.L80:
	mov	DWORD PTR -564[rbp], 0
	jmp	.L62
.L63:
	mov	eax, DWORD PTR -572[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -572[rbp], edx
	cdqe
	movzx	edx, BYTE PTR -573[rbp]
	mov	BYTE PTR -272[rbp+rax], dl
.L62:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -573[rbp], al
	cmp	BYTE PTR -573[rbp], 10
	jne	.L63
	mov	eax, DWORD PTR -572[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L64
	mov	DWORD PTR -568[rbp], 0
	mov	QWORD PTR -544[rbp], 12
	mov	DWORD PTR -536[rbp], 240
	mov	eax, DWORD PTR msqid[rip]
	lea	rsi, -544[rbp]
	mov	ecx, 2048
	mov	edx, 260
	mov	edi, eax
	call	msgsnd@PLT
	mov	DWORD PTR -564[rbp], 1
	jmp	.L65
.L64:
	lea	rax, -272[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L66
	mov	esi, 0
	lea	rdi, .LC9[rip]
	call	send_server_message
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	QWORD PTR -544[rbp], 12
	mov	DWORD PTR -536[rbp], 226
	mov	eax, DWORD PTR msqid[rip]
	lea	rsi, -544[rbp]
	mov	ecx, 2048
	mov	edx, 260
	mov	edi, eax
	call	msgsnd@PLT
	mov	DWORD PTR -564[rbp], 1
	jmp	.L65
.L66:
	lea	rax, -272[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L67
	mov	eax, DWORD PTR maxpeds[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -564[rbp], 1
	jmp	.L65
.L67:
	lea	rax, -272[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
	mov	eax, DWORD PTR numpeds[rip]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -564[rbp], 1
	jmp	.L65
.L68:
	lea	rax, -272[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L65
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	DWORD PTR -564[rbp], 1
.L65:
	lea	rax, -272[rbp]
	mov	QWORD PTR -552[rbp], rax
	jmp	.L69
.L71:
	mov	rax, QWORD PTR -552[rbp]
	add	rax, 1
	mov	QWORD PTR -552[rbp], rax
.L69:
	mov	rax, QWORD PTR -552[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L70
	mov	rax, QWORD PTR -552[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L71
.L70:
	mov	rax, QWORD PTR -552[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L72
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -552[rbp], rdx
	mov	BYTE PTR [rax], 0
.L72:
	lea	rax, -272[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L73
	mov	rax, QWORD PTR -552[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L73
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -552[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	string_to_uint
	mov	DWORD PTR -560[rbp], eax
	mov	eax, DWORD PTR maxpeds[rip]
	cmp	DWORD PTR -560[rbp], eax
	jbe	.L74
	mov	eax, DWORD PTR maxpeds[rip]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR maxpeds[rip]
	mov	DWORD PTR -560[rbp], eax
.L74:
	mov	eax, DWORD PTR -560[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -544[rbp], 12
	mov	DWORD PTR -536[rbp], 225
	mov	eax, DWORD PTR -560[rbp]
	mov	DWORD PTR numpeds[rip], eax
	mov	eax, DWORD PTR numpeds[rip]
	mov	BYTE PTR -532[rbp], al
	mov	BYTE PTR -531[rbp], 0
	mov	eax, DWORD PTR msqid[rip]
	lea	rsi, -544[rbp]
	mov	ecx, 2048
	mov	edx, 260
	mov	edi, eax
	call	msgsnd@PLT
	mov	DWORD PTR -564[rbp], 1
	jmp	.L75
.L73:
	lea	rax, -272[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L75
	mov	rax, QWORD PTR -552[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L76
	mov	eax, DWORD PTR randinterval[rip]
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L77
.L76:
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -552[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	string_to_uint
	mov	DWORD PTR -556[rbp], eax
	mov	eax, DWORD PTR -556[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -544[rbp], 12
	mov	DWORD PTR -536[rbp], 227
	mov	eax, DWORD PTR -556[rbp]
	mov	DWORD PTR randinterval[rip], eax
	mov	eax, DWORD PTR randinterval[rip]
	mov	BYTE PTR -532[rbp], al
	mov	eax, DWORD PTR randinterval[rip]
	sar	eax, 8
	mov	BYTE PTR -531[rbp], al
	mov	eax, DWORD PTR randinterval[rip]
	sar	eax, 16
	mov	BYTE PTR -530[rbp], al
	mov	eax, DWORD PTR randinterval[rip]
	shr	eax, 24
	mov	BYTE PTR -529[rbp], al
	mov	eax, DWORD PTR msqid[rip]
	lea	rsi, -544[rbp]
	mov	ecx, 2048
	mov	edx, 260
	mov	edi, eax
	call	msgsnd@PLT
.L77:
	mov	DWORD PTR -564[rbp], 1
.L75:
	cmp	DWORD PTR -564[rbp], 0
	jne	.L78
	lea	rdi, .LC30[rip]
	call	puts@PLT
.L78:
	cmp	DWORD PTR -568[rbp], 0
	je	.L79
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L79:
	mov	DWORD PTR -572[rbp], 0
.L61:
	cmp	DWORD PTR -568[rbp], 0
	jne	.L80
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	command_manager, .-command_manager
	.globl	kill_all_entities
	.type	kill_all_entities, @function
kill_all_entities:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L84
.L85:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 36[rax]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	add	DWORD PTR -4[rbp], 1
.L84:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR numpeds[rip]
	cmp	edx, eax
	jb	.L85
	mov	rax, QWORD PTR movethr[rip]
	mov	esi, 9
	mov	rdi, rax
	call	pthread_kill@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	kill_all_entities, .-kill_all_entities
	.section	.rodata
.LC31:
	.string	"\033[2K\r"
	.align 8
.LC32:
	.string	"\033[0;32;31mWymuszone zako\305\204czenie dzia\305\202ania programu.\033[0m"
	.text
	.globl	client_out
	.type	client_out, @function
client_out:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	call	getpid@PLT
	mov	edx, DWORD PTR mnpid[rip]
	cmp	eax, edx
	jne	.L88
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC32[rip]
	call	puts@PLT
	call	kill_all_entities
.L88:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	client_out, .-client_out
	.section	.rodata
	.align 8
.LC33:
	.string	"\033[0;32;31mNie mo\305\274na po\305\202\304\205czy\304\207 si\304\231 z kolejk\304\205 komunikat\303\263w.\033[0m"
	.align 8
.LC34:
	.string	"=================================================\n@ \033[0;32;32mSymulator skrzy\305\274owania\033[0m\n@ \033[0;32;32mKlient pieszych\033[0m\n=================================================\n@ \033[0;32;34mKamil Bia\305\202y\033[0m\n================================================="
	.align 8
.LC35:
	.string	"\033[0;32;31mNie mo\305\274na nawi\304\205za\304\207 po\305\202\304\205czenia z serwerem.\033[0m"
	.align 8
.LC36:
	.string	"\033[0;32;31mPami\304\231\304\207 wsp\303\263\305\202dzielona nie istnieje.\033[0m"
	.align 8
.LC37:
	.string	"\033[0;32;31mB\305\202\304\205d podczas pobierania adresu pami\304\231ci wsp\303\263\305\202dzielonej.\033[0m"
	.align 8
.LC38:
	.string	"\033[0;32;31mPami\304\231\304\207 wsp\303\263\305\202dzielona dla pieszych nie istnieje!\033[0m"
	.align 8
.LC39:
	.string	"\033[0;32;31mWyst\304\205pi\305\202 b\305\202\304\205d podczas tworzenia w\304\205tku.\033[0m"
	.align 8
.LC40:
	.string	"\033[0;32;31mWyst\304\205pi\305\202 b\305\202ad podczas pobierania wiadomo\305\233ci.\033[0m"
	.align 8
.LC41:
	.string	"\033[0;33mZmieniono ilo\305\233\304\207 wy\305\233wietlanych pieszych na: %d\033[0m"
	.align 8
.LC42:
	.string	"\033[0;36mPrzechwycono sygna\305\202 zamkni\304\231cia.\033[0m"
	.align 8
.LC43:
	.string	"\033[0;36mPrzechwycono sygna\305\202 zamkni\304\231cia serwera.\033[0m"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 464
	mov	DWORD PTR -452[rbp], edi
	mov	QWORD PTR -464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -444[rbp], 1
	mov	DWORD PTR -440[rbp], 1
	call	getpid@PLT
	mov	DWORD PTR mnpid[rip], eax
	lea	rsi, client_out[rip]
	mov	edi, 2
	call	signal@PLT
	mov	esi, 0
	mov	edi, 8598
	call	msgget@PLT
	mov	DWORD PTR msqid[rip], eax
	mov	eax, DWORD PTR msqid[rip]
	test	eax, eax
	jns	.L90
	lea	rdi, .LC33[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L119
.L90:
	lea	rdi, .LC34[rip]
	call	puts@PLT
	call	server_handshake
	test	eax, eax
	je	.L92
	lea	rdi, .LC35[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L119
.L92:
	mov	edx, 0
	mov	esi, 64
	mov	edi, 24726
	call	shmget@PLT
	mov	DWORD PTR shmid[rip], eax
	mov	eax, DWORD PTR shmid[rip]
	test	eax, eax
	jns	.L93
	lea	rdi, .LC36[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L119
.L93:
	mov	eax, DWORD PTR shmid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR light_state[rip], rax
	mov	rax, QWORD PTR light_state[rip]
	cmp	rax, -1
	jne	.L94
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L119
.L94:
	mov	eax, DWORD PTR maxpeds[rip]
	mov	edx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 12699
	call	shmget@PLT
	mov	DWORD PTR shmidp[rip], eax
	mov	eax, DWORD PTR shmidp[rip]
	test	eax, eax
	jns	.L95
	lea	rdi, .LC38[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L119
.L95:
	mov	eax, DWORD PTR shmidp[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR peds[rip], rax
	mov	rax, QWORD PTR peds[rip]
	cmp	rax, -1
	jne	.L96
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L119
.L96:
	call	fork@PLT
	mov	DWORD PTR -428[rbp], eax
	cmp	DWORD PTR -428[rbp], 0
	jne	.L97
	call	command_manager
	jmp	.L119
.L97:
	mov	ecx, 0
	lea	rdx, move_pedestrian[rip]
	mov	esi, 0
	lea	rdi, movethr[rip]
	call	pthread_create@PLT
	test	eax, eax
	je	.L121
	mov	esi, 2048
	lea	rdi, .LC39[rip]
	call	send_server_message
	lea	rdi, .LC39[rip]
	call	puts@PLT
	jmp	.L121
.L117:
	mov	eax, DWORD PTR msqid[rip]
	lea	rsi, -416[rbp]
	mov	r8d, 0
	mov	ecx, 12
	mov	edx, 260
	mov	edi, eax
	call	msgrcv@PLT
	test	rax, rax
	jns	.L100
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	DWORD PTR -444[rbp], 0
	mov	DWORD PTR -440[rbp], 1
.L100:
	mov	eax, DWORD PTR -408[rbp]
	sub	eax, 225
	cmp	eax, 30
	ja	.L101
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L103[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L103[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L103:
	.long	.L107-.L103
	.long	.L106-.L103
	.long	.L105-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L104-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L101-.L103
	.long	.L102-.L103
	.text
.L107:
	movzx	eax, BYTE PTR -404[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -403[rbp]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	DWORD PTR -420[rbp], eax
	mov	eax, DWORD PTR -420[rbp]
	mov	DWORD PTR numpeds[rip], eax
	mov	edx, DWORD PTR numpeds[rip]
	lea	rax, -144[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -144[rbp]
	mov	esi, 2048
	mov	rdi, rax
	call	send_server_message
	mov	eax, DWORD PTR numpeds[rip]
	mov	DWORD PTR -436[rbp], eax
	jmp	.L108
.L116:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 24[rax], 0
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -436[rbp], eax
	jne	.L109
	mov	DWORD PTR -432[rbp], 0
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, direction[rip+24]
	mov	DWORD PTR [rdx+rax], -1
	mov	DWORD PTR -432[rbp], 0
	jmp	.L110
.L113:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	je	.L111
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	ecx, DWORD PTR 8[rax]
	mov	rsi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR 8[rax]
	cmp	ecx, eax
	jne	.L111
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 32[rax]
	cmp	DWORD PTR -436[rbp], eax
	je	.L112
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -432[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 32[rax]
	cmp	eax, -1
	jne	.L111
.L112:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rcx, rax
	lea	rdx, direction[rip+24]
	mov	eax, DWORD PTR -432[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L111:
	add	DWORD PTR -432[rbp], 1
.L110:
	mov	edx, DWORD PTR -432[rbp]
	mov	eax, DWORD PTR maxpeds[rip]
	cmp	edx, eax
	jb	.L113
.L109:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 32[rax]
	cmp	eax, -1
	je	.L114
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR peds[rip]
	mov	rdi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rdi
	mov	eax, DWORD PTR 32[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	eax, DWORD PTR 28[rcx]
	mov	DWORD PTR 28[rdx], eax
.L114:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, -1
	je	.L115
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR peds[rip]
	mov	rdi, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rdi
	mov	eax, DWORD PTR 28[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	eax, DWORD PTR 32[rcx]
	mov	DWORD PTR 32[rdx], eax
.L115:
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 32[rax], -1
	mov	rcx, QWORD PTR peds[rip]
	mov	eax, DWORD PTR -436[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 28[rax], -1
	add	DWORD PTR -436[rbp], 1
.L108:
	mov	edx, DWORD PTR -436[rbp]
	mov	eax, DWORD PTR maxpeds[rip]
	cmp	edx, eax
	jb	.L116
	jmp	.L101
.L106:
	call	reset_pedestrians
	jmp	.L101
.L105:
	movzx	eax, BYTE PTR -404[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -403[rbp]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR -402[rbp]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	movzx	eax, BYTE PTR -401[rbp]
	movzx	eax, al
	sal	eax, 22
	or	eax, edx
	mov	DWORD PTR -424[rbp], eax
	mov	eax, DWORD PTR -424[rbp]
	mov	DWORD PTR randinterval[rip], eax
	jmp	.L101
.L104:
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC42[rip]
	call	puts@PLT
	mov	DWORD PTR -444[rbp], 0
	mov	DWORD PTR -440[rbp], 1
	jmp	.L101
.L102:
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	DWORD PTR -444[rbp], 0
	mov	DWORD PTR -440[rbp], 0
	jmp	.L101
.L121:
	nop
.L101:
	cmp	DWORD PTR -444[rbp], 0
	jne	.L117
	mov	DWORD PTR can_run[rip], 0
	cmp	DWORD PTR -440[rbp], 0
	je	.L118
	call	server_bye
.L118:
	call	kill_all_entities
	mov	eax, 0
.L119:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L120
	call	__stack_chk_fail@PLT
.L120:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.local	interval.0
	.comm	interval.0,4,4
	.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	"622336.c"
	.text
	.global	maxpeds
	.bss
	.align	2
	.type	maxpeds, %object
	.size	maxpeds, 4
maxpeds:
	.space	4
	.global	speeddown
	.data
	.align	2
	.type	speeddown, %object
	.size	speeddown, 4
speeddown:
	.word	1
	.comm	msqid,4,4
	.comm	shmid,4,4
	.comm	shmidp,4,4
	.comm	mnpid,4,4
	.global	randinterval
	.align	2
	.type	randinterval, %object
	.size	randinterval, 4
randinterval:
	.word	35
	.global	numpeds
	.bss
	.align	2
	.type	numpeds, %object
	.size	numpeds, 4
numpeds:
	.space	4
	.comm	peds,4,4
	.comm	light_state,4,4
	.comm	movethr,4,4
	.global	can_run
	.data
	.align	2
	.type	can_run, %object
	.size	can_run, 4
can_run:
	.word	1
	.global	direction
	.align	2
	.type	direction, %object
	.size	direction, 112
direction:
	.word	237
	.word	-15
	.word	0
	.word	1
	.word	0
	.word	145
	.word	-1
	.word	397
	.word	495
	.word	0
	.word	-1
	.word	0
	.word	335
	.word	-1
	.word	-15
	.word	318
	.word	1
	.word	0
	.word	200
	.word	0
	.word	-1
	.word	655
	.word	156
	.word	-1
	.word	0
	.word	415
	.word	0
	.word	-1
	.text
	.align	2
	.global	string_to_uint
	.syntax unified
	.arm
	.fpu softvfp
	.type	string_to_uint, %function
string_to_uint:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #47
	bls	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #57
	bls	.L4
.L3:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
.L5:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	string_to_uint, .-string_to_uint
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_server_message
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_server_message, %function
send_server_message:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #10
	str	r3, [fp, #-272]
	mov	r3, #12
	str	r3, [fp, #-268]
	sub	r3, fp, #272
	add	r3, r3, #8
	ldr	r1, [fp, #-280]
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L10+4
	ldr	r0, [r3]
	sub	r1, fp, #272
	ldr	r3, [fp, #-284]
	mov	r2, #260
	bl	msgsnd
	mov	r3, r0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	msqid
	.size	send_server_message, .-send_server_message
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\033[0;32;34mPr\303\263ba nawi\304\205zania po\305\202"
	.ascii	"\304\205czenia z serwerem...\033[0m\000"
	.align	2
.LC2:
	.ascii	"\033[0;32;31mNie mo\305\274na po\305\202\304\205czy"
	.ascii	"\304\207 si\304\231 z kolejk\304\205 komunikat\303\263"
	.ascii	"w.\012\033[0m\000"
	.align	2
.LC3:
	.ascii	"\033[0;32;31mOdebrano nieprawid\305\202owy pakiet d"
	.ascii	"anych od serwera.\012\033[0m\000"
	.align	2
.LC4:
	.ascii	"\033[0;32;32mNawi\304\205zano po\305\202\304\205cze"
	.ascii	"nie z serwerem\033[0m.\000"
	.align	2
.LC5:
	.ascii	"\033[0;32;32mPo\305\202\304\205czenie zosta\305\202"
	.ascii	"o ustanowione.\033[0m\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server_handshake
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_handshake, %function
server_handshake:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L20+4
	bl	puts
	mov	r3, #10
	str	r3, [fp, #-272]
	mov	r3, #28
	str	r3, [fp, #-268]
	ldr	r3, .L20+8
	ldr	r0, [r3]
	sub	r1, fp, #272
	mov	r3, #0
	mov	r2, #260
	bl	msgsnd
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	mov	r3, #1
	b	.L18
.L13:
	ldr	r3, .L20+8
	ldr	r0, [r3]
	sub	r1, fp, #272
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #12
	mov	r2, #260
	bl	msgrcv
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L20+12
	bl	printf
	mov	r3, #1
	b	.L18
.L15:
	ldr	r3, [fp, #-268]
	cmp	r3, #32
	bne	.L16
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-263]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldrb	r3, [fp, #-262]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldrb	r3, [fp, #-261]	@ zero_extendqisi2
	lsl	r3, r3, #22
	orr	r3, r2, r3
	ldr	r2, .L20+16
	str	r3, [r2]
	ldrb	r3, [fp, #-260]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-259]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldrb	r3, [fp, #-258]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldrb	r3, [fp, #-257]	@ zero_extendqisi2
	lsl	r3, r3, #22
	orr	r3, r2, r3
	ldr	r2, .L20+20
	str	r3, [r2]
	ldr	r0, .L20+24
	bl	puts
	mov	r1, #0
	ldr	r0, .L20+28
	bl	send_server_message
	mov	r3, #0
	b	.L18
.L16:
	ldr	r0, .L20+32
	bl	printf
	mov	r3, #1
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	.LC1
	.word	msqid
	.word	.LC2
	.word	maxpeds
	.word	speeddown
	.word	.LC4
	.word	.LC5
	.word	.LC3
	.size	server_handshake, .-server_handshake
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\033[0;32;32mPo\305\202\304\205czenie zosta\305\202"
	.ascii	"o zako\305\204czone.\033[0m\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server_bye
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_bye, %function
server_bye:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #2048
	ldr	r0, .L24+4
	bl	send_server_message
	mov	r3, #10
	str	r3, [fp, #-272]
	mov	r3, #252
	str	r3, [fp, #-268]
	ldr	r3, .L24+8
	ldr	r0, [r3]
	sub	r1, fp, #272
	mov	r3, #2048
	mov	r2, #260
	bl	msgsnd
	nop
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	.LC7
	.word	msqid
	.size	server_bye, .-server_bye
	.align	2
	.global	random_create_ped
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_create_ped, %function
random_create_ped:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L35
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L35
	str	r2, [r1]
	ldr	r2, .L35+4
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L34
	ldr	r3, .L35
	mov	r2, #0
	str	r2, [r3]
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L26
	b	.L29
.L33:
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L29
.L30:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-8]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3, #24]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	ldr	r0, .L35+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3]
	str	r3, [r1]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	ldr	r0, .L35+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	str	r3, [r1, #4]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	bl	rand
	mov	r1, r0
	ldr	r3, .L35+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r0, r0, r3
	ldr	r3, .L35+16
	smull	ip, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	str	r2, [r0, #12]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	ldr	r0, .L35+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [r1, #16]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	ldr	r0, .L35+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #12
	ldr	r3, [r3]
	str	r3, [r1, #20]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	ldr	r0, .L35+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	str	r3, [r1, #28]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mvn	r2, #0
	str	r2, [r3, #32]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #28]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L31
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mvn	r2, #0
	str	r2, [r3, #28]
.L31:
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #28]
	cmn	r3, #1
	beq	.L32
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r3, .L35+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #28]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3, #32]
.L32:
	ldr	r1, .L35+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L26
.L29:
	ldr	r2, [fp, #-12]
	ldr	r3, .L35+20
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L33
	b	.L26
.L34:
	nop
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	interval.6904
	.word	randinterval
	.word	peds
	.word	direction
	.word	1431655766
	.word	numpeds
	.size	random_create_ped, .-random_create_ped
	.align	2
	.global	move_pedestrian
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_pedestrian, %function
move_pedestrian:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L38
.L60:
	ldr	r2, [fp, #-32]
	ldr	r3, .L63
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L39
	ldr	r2, [fp, #-32]
	ldr	r3, .L63
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L40
	b	.L41
.L42:
	ldr	r3, .L63+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, #40
	add	r3, r1, r3
	ldr	r3, [r3, #36]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L41:
	ldr	r2, [fp, #-32]
	ldr	r3, .L63
	ldr	r3, [r3]
	cmp	r2, r3
	bhi	.L42
	b	.L39
.L40:
	ldr	r2, [fp, #-32]
	ldr	r3, .L63
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L39
	b	.L43
.L59:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, .L63+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r3, [fp, #-20]
.L58:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L45
	ldr	r3, .L63+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	usleep
	b	.L46
.L45:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #660
	bgt	.L47
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmp	r3, #500
	bgt	.L47
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmn	r3, #20
	blt	.L47
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmn	r3, #20
	bge	.L48
.L47:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #32]
	cmn	r3, #1
	beq	.L49
	ldr	r3, .L63+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #32]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #28]
.L49:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r1, .L63+12
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L62
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r1, .L63+12
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	mvn	r2, #0
	str	r2, [r3]
	b	.L62
.L48:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r1, .L63+12
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r1, .L63+12
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L51
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #2
	bne	.L51
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L51
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r1, r3, #5
	ldr	r3, .L63+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3]
	sub	r3, r3, #2
	cmp	r1, r3
	bge	.L52
.L51:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L53
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #3
	bne	.L53
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L53
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	sub	r1, r3, #2
	ldr	r3, .L63+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3]
	add	r3, r3, #5
	cmp	r1, r3
	ble	.L52
.L53:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L54
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L54
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L54
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r1, r3, #5
	ldr	r3, .L63+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #4]
	sub	r3, r3, #2
	cmp	r1, r3
	bge	.L52
.L54:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L55
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #1
	bne	.L55
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L55
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	sub	r1, r3, #2
	ldr	r3, .L63+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #4]
	add	r3, r3, #5
	cmp	r1, r3
	ble	.L52
.L55:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L56
	ldr	r3, .L63+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r3, r3, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L52
.L56:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L57
	ldr	r3, .L63+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r3, r3, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L52
.L57:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
.L52:
	ldr	r3, .L63+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	usleep
	b	.L58
.L62:
	nop
.L46:
	b	.L58
.L44:
	ldr	r3, .L63+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L43:
	ldr	r2, [fp, #-32]
	ldr	r3, .L63
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L59
.L39:
	bl	random_create_ped
	ldr	r3, .L63+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	usleep
.L38:
	ldr	r3, .L63+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L60
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	numpeds
	.word	peds
	.word	speeddown
	.word	direction
	.word	light_state
	.word	can_run
	.size	move_pedestrian, .-move_pedestrian
	.align	2
	.global	reset_pedestrians
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_pedestrians, %function
reset_pedestrians:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L66
.L67:
	ldr	r3, .L70
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L66:
	ldr	r2, [fp, #-8]
	ldr	r3, .L70+4
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L67
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L68
.L69:
	ldr	r1, .L70+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L68:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L69
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L71:
	.align	2
.L70:
	.word	peds
	.word	maxpeds
	.word	direction
	.size	reset_pedestrians, .-reset_pedestrians
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\033[0;35m$ \033[0m\000"
	.align	2
.LC10:
	.ascii	"exit\000"
	.align	2
.LC11:
	.ascii	"reset\000"
	.align	2
.LC12:
	.ascii	"\033[0;33mPowr\303\263t pieszych do stanu pocz\304\205"
	.ascii	"tkowego.\033[0m\000"
	.align	2
.LC13:
	.ascii	"max\000"
	.align	2
.LC14:
	.ascii	"\033[0;33mLimit wy\305\233wietlanych pieszych to: %"
	.ascii	"d.\033[0m\012\000"
	.align	2
.LC15:
	.ascii	"current\000"
	.align	2
.LC16:
	.ascii	"\033[0;33mObecna ilo\305\233\304\207 wy\305\233wiet"
	.ascii	"lanych pieszych to: %d.\033[0m\012\000"
	.align	2
.LC17:
	.ascii	"help\000"
	.align	2
.LC18:
	.ascii	"Lista dost\304\231pnych komend:\000"
	.align	2
.LC19:
	.ascii	"  - \033[0;33mreset\033[0m    : powr\303\263t piesz"
	.ascii	"ych do stanu pocz\304\205tkowego;\000"
	.align	2
.LC20:
	.ascii	"  - \033[0;33mmax\033[0m      : najwi\304\231ksza m"
	.ascii	"o\305\274liwa ilo\305\233\304\207 ustawionych piesz"
	.ascii	"ych;\000"
	.align	2
.LC21:
	.ascii	"  - \033[0;33mcurrent\033[0m  : aktualna ilo\305\233"
	.ascii	"\304\207 ustawionych pieszych;\000"
	.align	2
.LC22:
	.ascii	"  - \033[0;33mival \033[0m\033[0;32;34m<?>\033[0m :"
	.ascii	" przerwa pomi\304\231dzy kolejnymi losowaniami pies"
	.ascii	"zych w 1/60 sek;\000"
	.align	2
.LC23:
	.ascii	"  - \033[0;33mhelp\033[0m     : pomoc, wy\305\233wi"
	.ascii	"etla list\304\231 komend;\000"
	.align	2
.LC24:
	.ascii	"  - \033[0;33mset \033[0m\033[0;32;34m<x>\033[0m  :"
	.ascii	" zmiana ilo\305\233ci ustawionych pieszych, po kome"
	.ascii	"ndzie set nale\305\274y poda\304\207 now\304\205 il"
	.ascii	"o\305\233\304\207 wy\305\233wietlanych pieszych;\000"
	.align	2
.LC25:
	.ascii	"  - \033[0;33mexit\033[0m     : wyj\305\233cie z pr"
	.ascii	"ogramu;\000"
	.align	2
.LC26:
	.ascii	"Zmienne oznaczone jako x, y lub z nale\305\274y zam"
	.ascii	"ieni\304\207 odpowiednimi znakami lub cyframi. W pr"
	.ascii	"zypadku gdy w miejscu zmiennej znajduje si\304\231 "
	.ascii	"znak ? oznacza to, \305\274e argument ten nie jest "
	.ascii	"obowi\304\205zkowy.\000"
	.align	2
.LC27:
	.ascii	"set\000"
	.align	2
.LC28:
	.ascii	"\033[0;35mIlo\305\233\304\207 zamochod\303\263w nie"
	.ascii	" mo\305\274e przekracza\304\207: %d.\033[0m\012\000"
	.align	2
.LC29:
	.ascii	"\033[0;36mZmieniono ilo\305\233\304\207 wy\305\233w"
	.ascii	"ietlanych pieszych na: %d.\033[0m\012\000"
	.align	2
.LC30:
	.ascii	"ival\000"
	.align	2
.LC31:
	.ascii	"\033[0;33mAktualna przerwa pomi\304\231dzy losowani"
	.ascii	"ami pieszych: %d.\033[0m\012\000"
	.align	2
.LC32:
	.ascii	"\033[0;36mZmieniono przerw\304\231 pomi\304\231dzy "
	.ascii	"losowaniami pieszych na: %d.\033[0m\012\000"
	.align	2
.LC33:
	.ascii	"\033[0;32;31mNieprawid\305\202owa komenda, wpisz he"
	.ascii	"lp aby wy\305\233wietli\304\207 list\304\231 komend"
	.ascii	".\033[0m\000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	command_manager
	.syntax unified
	.arm
	.fpu softvfp
	.type	command_manager, %function
command_manager:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	ldr	r3, .L95
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-548]
	mov	r3, #1
	str	r3, [fp, #-544]
	ldr	r0, .L95+4
	bl	printf
	b	.L73
.L92:
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L74
.L75:
	ldr	r3, [fp, #-548]
	add	r2, r3, #1
	str	r2, [fp, #-548]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-553]
	strb	r2, [r3, #-260]
.L74:
	ldr	r3, .L95+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-553]
	ldrb	r3, [fp, #-553]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L75
	sub	r2, fp, #264
	ldr	r3, [fp, #-548]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #264
	ldr	r1, .L95+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	mov	r3, #0
	str	r3, [fp, #-544]
	mov	r3, #12
	str	r3, [fp, #-528]
	mov	r3, #240
	str	r3, [fp, #-524]
	ldr	r3, .L95+16
	ldr	r0, [r3]
	sub	r1, fp, #528
	mov	r3, #2048
	mov	r2, #260
	bl	msgsnd
	mov	r3, #1
	str	r3, [fp, #-540]
	b	.L77
.L76:
	sub	r3, fp, #264
	ldr	r1, .L95+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	mov	r1, #0
	ldr	r0, .L95+24
	bl	send_server_message
	ldr	r0, .L95+24
	bl	puts
	mov	r3, #12
	str	r3, [fp, #-528]
	mov	r3, #226
	str	r3, [fp, #-524]
	ldr	r3, .L95+16
	ldr	r0, [r3]
	sub	r1, fp, #528
	mov	r3, #2048
	mov	r2, #260
	bl	msgsnd
	mov	r3, #1
	str	r3, [fp, #-540]
	b	.L77
.L78:
	sub	r3, fp, #264
	ldr	r1, .L95+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	ldr	r3, .L95+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L95+36
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-540]
	b	.L77
.L79:
	sub	r3, fp, #264
	ldr	r1, .L95+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
	ldr	r3, .L95+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L95+48
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-540]
	b	.L77
.L80:
	sub	r3, fp, #264
	ldr	r1, .L95+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r0, .L95+56
	bl	puts
	ldr	r0, .L95+60
	bl	puts
	ldr	r0, .L95+64
	bl	puts
	ldr	r0, .L95+68
	bl	puts
	ldr	r0, .L95+72
	bl	puts
	ldr	r0, .L95+76
	bl	puts
	ldr	r0, .L95+80
	bl	puts
	ldr	r0, .L95+84
	bl	puts
	ldr	r0, .L95+88
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-540]
.L77:
	sub	r3, fp, #264
	str	r3, [fp, #-552]
	b	.L81
.L83:
	ldr	r3, [fp, #-552]
	add	r3, r3, #1
	str	r3, [fp, #-552]
.L81:
	ldr	r3, [fp, #-552]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L82
	ldr	r3, [fp, #-552]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L83
.L82:
	ldr	r3, [fp, #-552]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L84
	ldr	r3, [fp, #-552]
	add	r2, r3, #1
	str	r2, [fp, #-552]
	mov	r2, #0
	strb	r2, [r3]
.L84:
	sub	r3, fp, #264
	ldr	r1, .L95+92
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-552]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-552]
	sub	r2, fp, #552
	mov	r1, r2
	mov	r0, r3
	bl	string_to_uint
	str	r0, [fp, #-536]
	ldr	r3, .L95+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-536]
	cmp	r2, r3
	bls	.L86
	ldr	r3, .L95+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L95+96
	bl	printf
	ldr	r3, .L95+32
	ldr	r3, [r3]
	str	r3, [fp, #-536]
.L86:
	ldr	r1, [fp, #-536]
	ldr	r0, .L95+100
	bl	printf
	mov	r3, #12
	str	r3, [fp, #-528]
	mov	r3, #225
	str	r3, [fp, #-524]
	ldr	r2, .L95+44
	ldr	r3, [fp, #-536]
	str	r3, [r2]
	ldr	r3, .L95+44
	ldr	r3, [r3]
	and	r3, r3, #255
	strb	r3, [fp, #-520]
	mov	r3, #0
	strb	r3, [fp, #-519]
	ldr	r3, .L95+16
	ldr	r0, [r3]
	sub	r1, fp, #528
	mov	r3, #2048
	mov	r2, #260
	bl	msgsnd
	mov	r3, #1
	str	r3, [fp, #-540]
	b	.L87
.L85:
	sub	r3, fp, #264
	ldr	r1, .L95+104
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L87
	ldr	r3, [fp, #-552]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L88
	ldr	r3, .L95+108
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L95+112
	bl	printf
	b	.L89
.L88:
	ldr	r3, [fp, #-552]
	sub	r2, fp, #552
	mov	r1, r2
	mov	r0, r3
	bl	string_to_uint
	str	r0, [fp, #-532]
	ldr	r1, [fp, #-532]
	ldr	r0, .L95+116
	bl	printf
	mov	r3, #12
	str	r3, [fp, #-528]
	mov	r3, #227
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-532]
	ldr	r2, .L95+108
	str	r3, [r2]
	ldr	r3, .L95+108
	ldr	r3, [r3]
	and	r3, r3, #255
	strb	r3, [fp, #-520]
	ldr	r3, .L95+108
	ldr	r3, [r3]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-519]
	ldr	r3, .L95+108
	ldr	r3, [r3]
	asr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-518]
	ldr	r3, .L95+108
	ldr	r3, [r3]
	lsr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-517]
	ldr	r3, .L95+16
	ldr	r0, [r3]
	sub	r1, fp, #528
	mov	r3, #2048
	mov	r2, #260
	bl	msgsnd
.L89:
	mov	r3, #1
	str	r3, [fp, #-540]
.L87:
	ldr	r3, [fp, #-540]
	cmp	r3, #0
	bne	.L90
	ldr	r0, .L95+120
	bl	puts
.L90:
	ldr	r3, [fp, #-544]
	cmp	r3, #0
	beq	.L91
	ldr	r0, .L95+4
	bl	printf
.L91:
	mov	r3, #0
	str	r3, [fp, #-548]
.L73:
	ldr	r3, [fp, #-544]
	cmp	r3, #0
	bne	.L92
	mov	r3, #0
	ldr	r2, .L95
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L94
	bl	__stack_chk_fail
.L94:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC34
	.word	.LC9
	.word	stdin
	.word	.LC10
	.word	msqid
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	maxpeds
	.word	.LC14
	.word	.LC15
	.word	numpeds
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	randinterval
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.size	command_manager, .-command_manager
	.align	2
	.global	kill_all_entities
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill_all_entities, %function
kill_all_entities:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L98
.L99:
	ldr	r3, .L100
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #36]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L98:
	ldr	r2, [fp, #-8]
	ldr	r3, .L100+4
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L99
	ldr	r3, .L100+8
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	pthread_kill
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	peds
	.word	numpeds
	.word	movethr
	.size	kill_all_entities, .-kill_all_entities
	.section	.rodata
	.align	2
.LC35:
	.ascii	"\033[2K\015\000"
	.align	2
.LC36:
	.ascii	"\033[0;32;31mWymuszone zako\305\204czenie dzia\305\202"
	.ascii	"ania programu.\033[0m\000"
	.text
	.align	2
	.global	client_out
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_out, %function
client_out:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	getpid
	mov	r2, r0
	ldr	r3, .L105
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L104
	ldr	r0, .L105+4
	bl	printf
	ldr	r0, .L105+8
	bl	puts
	bl	kill_all_entities
.L104:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L106:
	.align	2
.L105:
	.word	mnpid
	.word	.LC35
	.word	.LC36
	.size	client_out, .-client_out
	.section	.rodata
	.align	2
.LC37:
	.ascii	"\033[0;32;31mNie mo\305\274na po\305\202\304\205czy"
	.ascii	"\304\207 si\304\231 z kolejk\304\205 komunikat\303\263"
	.ascii	"w.\033[0m\000"
	.align	2
.LC38:
	.ascii	"=================================================\012"
	.ascii	"@ \033[0;32;32mSymulator skrzy\305\274owania\033[0m"
	.ascii	"\012@ \033[0;32;32mKlient pieszych\033[0m\012======"
	.ascii	"===========================================\012@ \033"
	.ascii	"[0;32;34mKamil Bia\305\202y\033[0m\012============="
	.ascii	"====================================\000"
	.align	2
.LC39:
	.ascii	"\033[0;32;31mNie mo\305\274na nawi\304\205za\304\207"
	.ascii	" po\305\202\304\205czenia z serwerem.\033[0m\000"
	.align	2
.LC40:
	.ascii	"\033[0;32;31mPami\304\231\304\207 wsp\303\263\305\202"
	.ascii	"dzielona nie istnieje.\033[0m\000"
	.align	2
.LC41:
	.ascii	"\033[0;32;31mB\305\202\304\205d podczas pobierania "
	.ascii	"adresu pami\304\231ci wsp\303\263\305\202dzielonej."
	.ascii	"\033[0m\000"
	.align	2
.LC42:
	.ascii	"\033[0;32;31mPami\304\231\304\207 wsp\303\263\305\202"
	.ascii	"dzielona dla pieszych nie istnieje!\033[0m\000"
	.align	2
.LC43:
	.ascii	"\033[0;32;31mWyst\304\205pi\305\202 b\305\202\304\205"
	.ascii	"d podczas tworzenia w\304\205tku.\033[0m\000"
	.align	2
.LC44:
	.ascii	"\033[0;32;31mWyst\304\205pi\305\202 b\305\202ad pod"
	.ascii	"czas pobierania wiadomo\305\233ci.\033[0m\000"
	.align	2
.LC45:
	.ascii	"\033[0;33mZmieniono ilo\305\233\304\207 wy\305\233w"
	.ascii	"ietlanych pieszych na: %d\033[0m\000"
	.align	2
.LC46:
	.ascii	"\033[0;36mPrzechwycono sygna\305\202 zamkni\304\231"
	.ascii	"cia.\033[0m\000"
	.align	2
.LC47:
	.ascii	"\033[0;36mPrzechwycono sygna\305\202 zamkni\304\231"
	.ascii	"cia serwera.\033[0m\000"
	.align	2
.LC48:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #440
	str	r0, [fp, #-432]
	str	r1, [fp, #-436]
	ldr	r3, .L140
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-428]
	mov	r3, #1
	str	r3, [fp, #-424]
	bl	getpid
	mov	r3, r0
	ldr	r2, .L140+4
	str	r3, [r2]
	ldr	r1, .L140+8
	mov	r0, #2
	bl	signal
	mov	r1, #0
	ldr	r0, .L140+12
	bl	msgget
	mov	r3, r0
	ldr	r2, .L140+16
	str	r3, [r2]
	ldr	r3, .L140+16
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L108
	ldr	r0, .L140+20
	bl	puts
	mov	r3, #1
	b	.L137
.L108:
	ldr	r0, .L140+24
	bl	puts
	bl	server_handshake
	mov	r3, r0
	cmp	r3, #0
	beq	.L110
	ldr	r0, .L140+28
	bl	puts
	mov	r3, #1
	b	.L137
.L110:
	mov	r2, #0
	mov	r1, #64
	ldr	r0, .L140+32
	bl	shmget
	mov	r3, r0
	ldr	r2, .L140+36
	str	r3, [r2]
	ldr	r3, .L140+36
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L111
	ldr	r0, .L140+40
	bl	puts
	mov	r3, #1
	b	.L137
.L111:
	ldr	r3, .L140+36
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	shmat
	mov	r3, r0
	ldr	r2, .L140+44
	str	r3, [r2]
	ldr	r3, .L140+44
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L112
	ldr	r0, .L140+48
	bl	puts
	mov	r3, #1
	b	.L137
.L112:
	ldr	r3, .L140+52
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, .L140+56
	bl	shmget
	mov	r3, r0
	ldr	r2, .L140+60
	str	r3, [r2]
	ldr	r3, .L140+60
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L113
	ldr	r0, .L140+64
	bl	puts
	mov	r3, #1
	b	.L137
.L113:
	ldr	r3, .L140+60
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	shmat
	mov	r3, r0
	ldr	r2, .L140+68
	str	r3, [r2]
	ldr	r3, .L140+68
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L114
	ldr	r0, .L140+48
	bl	puts
	mov	r3, #1
	b	.L137
.L114:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	bne	.L115
	bl	command_manager
	mov	r3, r0
	b	.L137
.L115:
	mov	r3, #0
	ldr	r2, .L140+72
	mov	r1, #0
	ldr	r0, .L140+76
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L139
	mov	r1, #2048
	ldr	r0, .L140+80
	bl	send_server_message
	ldr	r0, .L140+80
	bl	puts
	b	.L139
.L135:
	ldr	r3, .L140+16
	ldr	r0, [r3]
	sub	r1, fp, #400
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #12
	mov	r2, #260
	bl	msgrcv
	mov	r3, r0
	cmp	r3, #0
	bge	.L118
	ldr	r0, .L140+84
	bl	printf
	ldr	r0, .L140+88
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #1
	str	r3, [fp, #-424]
.L118:
	ldr	r3, [fp, #-396]
	sub	r3, r3, #225
	cmp	r3, #30
	ldrls	pc, [pc, r3, asl #2]
	b	.L119
.L121:
	.word	.L125
	.word	.L124
	.word	.L123
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L122
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L119
	.word	.L120
.L125:
	ldrb	r3, [fp, #-392]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-391]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	str	r3, [fp, #-404]
	ldr	r2, .L140+92
	ldr	r3, [fp, #-404]
	str	r3, [r2]
	ldr	r3, .L140+92
	ldr	r2, [r3]
	sub	r3, fp, #136
	ldr	r1, .L140+96
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #136
	mov	r1, #2048
	mov	r0, r3
	bl	send_server_message
	ldr	r3, .L140+92
	ldr	r3, [r3]
	str	r3, [fp, #-420]
	b	.L126
.L134:
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [r3, #8]
	ldr	r1, .L140+100
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	ldr	r2, [fp, #-420]
	cmp	r2, r3
	bne	.L127
	mov	r3, #0
	str	r3, [fp, #-416]
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [r3, #8]
	ldr	r1, .L140+100
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	mvn	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-416]
	b	.L128
.L131:
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L129
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r1, [r3, #8]
	ldr	r3, .L140+68
	ldr	r0, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #8]
	cmp	r1, r3
	bne	.L129
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #32]
	ldr	r2, [fp, #-420]
	cmp	r2, r3
	beq	.L130
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #32]
	cmn	r3, #1
	bne	.L129
.L130:
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [r3, #8]
	ldr	r1, .L140+100
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r2, [fp, #-416]
	str	r2, [r3]
.L129:
	ldr	r3, [fp, #-416]
	add	r3, r3, #1
	str	r3, [fp, #-416]
.L128:
	ldr	r2, [fp, #-416]
	ldr	r3, .L140+52
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L131
.L127:
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #32]
	cmn	r3, #1
	beq	.L132
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	ldr	r3, .L140+68
	ldr	r0, [r3]
	ldr	r3, .L140+68
	ldr	ip, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldr	r3, [r3, #32]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r2, [r1, #28]
	str	r2, [r3, #28]
.L132:
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #28]
	cmn	r3, #1
	beq	.L133
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	ldr	r3, .L140+68
	ldr	r0, [r3]
	ldr	r3, .L140+68
	ldr	ip, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldr	r3, [r3, #28]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r2, [r1, #32]
	str	r2, [r3, #32]
.L133:
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mvn	r2, #0
	str	r2, [r3, #32]
	ldr	r3, .L140+68
	ldr	r1, [r3]
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mvn	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-420]
	add	r3, r3, #1
	str	r3, [fp, #-420]
.L126:
	ldr	r2, [fp, #-420]
	ldr	r3, .L140+52
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L134
	b	.L119
.L124:
	bl	reset_pedestrians
	b	.L119
.L123:
	ldrb	r3, [fp, #-392]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-391]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldrb	r3, [fp, #-390]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldrb	r3, [fp, #-389]	@ zero_extendqisi2
	lsl	r3, r3, #22
	orr	r3, r2, r3
	str	r3, [fp, #-408]
	ldr	r3, [fp, #-408]
	ldr	r2, .L140+104
	str	r3, [r2]
	b	.L119
.L122:
	ldr	r0, .L140+84
	bl	printf
	ldr	r0, .L140+108
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #1
	str	r3, [fp, #-424]
	b	.L119
.L120:
	ldr	r0, .L140+84
	bl	printf
	ldr	r0, .L140+112
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #0
	str	r3, [fp, #-424]
	b	.L119
.L139:
	nop
.L119:
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bne	.L135
	ldr	r3, .L140+116
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	beq	.L136
	bl	server_bye
.L136:
	bl	kill_all_entities
	mov	r3, #0
.L137:
	ldr	r2, .L140
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L138
	bl	__stack_chk_fail
.L138:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L141:
	.align	2
.L140:
	.word	.LC48
	.word	mnpid
	.word	client_out
	.word	8598
	.word	msqid
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	24726
	.word	shmid
	.word	.LC40
	.word	light_state
	.word	.LC41
	.word	maxpeds
	.word	12699
	.word	shmidp
	.word	.LC42
	.word	peds
	.word	move_pedestrian
	.word	movethr
	.word	.LC43
	.word	.LC35
	.word	.LC44
	.word	numpeds
	.word	.LC45
	.word	direction
	.word	randinterval
	.word	.LC46
	.word	.LC47
	.word	can_run
	.size	main, .-main
	.local	interval.6904
	.comm	interval.6904,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
