	.file	"1226467.c"
	.intel_syntax noprefix
	.text
	.globl	child
	.bss
	.align 16
	.type	child, @object
	.size	child, 24
child:
	.zero	24
	.globl	children
	.align 16
	.type	children, @object
	.size	children, 16
children:
	.zero	16
	.globl	run
	.data
	.align 4
	.type	run, @object
	.size	run, 4
run:
	.long	1
	.section	.rodata
.LC0:
	.string	"%200s %d"
.LC1:
	.string	"\n"
.LC2:
	.string	"LIST\n"
.LC3:
	.string	"STOP ALL\n"
.LC4:
	.string	"STOP "
.LC5:
	.string	"START ALL\n"
.LC6:
	.string	"START "
.LC7:
	.string	"END\n"
	.align 8
.LC8:
	.string	"Proces %d utworzyl %d kopii pliku\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	parent_sa_handler
	cmp	DWORD PTR -132[rbp], 2
	je	.L2
	mov	eax, 0
	call	help
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rax
	mov	edi, 200
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	readFile
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	sum_lines
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	esi, 24
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -116[rbp], 0
	jmp	.L3
.L7:
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], 0
.L4:
	lea	rcx, -124[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	je	.L5
	mov	ecx, DWORD PTR -124[rbp]
	mov	edx, DWORD PTR -116[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	monitor
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	DWORD PTR [rax], edx
	mov	edi, 200
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
	add	DWORD PTR -116[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 20[rax], 0
.L5:
	cmp	QWORD PTR -48[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], 10
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	QWORD PTR -88[rbp], 0
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	QWORD PTR -88[rbp], rax
.L3:
	cmp	QWORD PTR -88[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR children[rip], rax
	mov	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR children[rip+8], eax
	lea	rdi, children[rip]
	mov	eax, 0
	call	list_show
	jmp	.L8
.L14:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -32[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -32[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	lea	rdi, children[rip]
	mov	eax, 0
	call	list_show
	jmp	.L8
.L9:
	lea	rax, -32[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	mov	eax, 0
	call	stop_all
	jmp	.L8
.L10:
	lea	rax, -32[rbp]
	mov	edx, 5
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L11
	lea	rax, -32[rbp]
	add	rax, 5
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	mov	edi, eax
	call	stop_pid
	jmp	.L8
.L11:
	lea	rax, -32[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	mov	eax, 0
	call	start_all
	jmp	.L8
.L12:
	lea	rax, -32[rbp]
	mov	edx, 6
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L13
	lea	rax, -32[rbp]
	add	rax, 5
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	start_pid
	jmp	.L8
.L13:
	lea	rax, -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	edi, 2
	call	raise@PLT
.L8:
	mov	eax, DWORD PTR run[rip]
	test	eax, eax
	jne	.L14
	mov	DWORD PTR -112[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	rcx, -120[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR -120[rbp]
	sar	eax, 8
	movzx	edx, al
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	add	DWORD PTR -112[rbp], 1
.L15:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L17
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"\n .\\monitor <list>\n"
	.text
	.globl	help
	.type	help, @function
help:
.LFB1:
	.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, 19
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	help, .-help
	.section	.rodata
.LC10:
	.string	"r"
	.text
	.globl	readFile
	.type	readFile, @function
readFile:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 1
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	rdx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	readFile, .-readFile
	.globl	sum_lines
	.type	sum_lines, @function
sum_lines:
.LFB3:
	.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	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L25
	add	QWORD PTR -8[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L25:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L26
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	sum_lines, .-sum_lines
	.section	.rodata
.LC11:
	.string	"child pid is -1"
	.text
	.globl	monitor
	.type	monitor, @function
monitor:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	DWORD PTR -192[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L30
.L29:
	cmp	DWORD PTR -164[rbp], 0
	jne	.L31
	lea	rax, sig_child_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 12
	call	sigaction@PLT
	mov	edx, DWORD PTR -192[rbp]
	mov	ecx, DWORD PTR -188[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	watch1
.L31:
	mov	eax, DWORD PTR -164[rbp]
.L30:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	monitor, .-monitor
	.section	.rodata
.LC12:
	.string	"\n File does not exists %s\n"
.LC13:
	.string	"\n File stopped existing %s\n"
.LC14:
	.string	"_%Y-%m-%d_%H-%M-%S"
.LC15:
	.string	"archiwum"
.LC16:
	.string	"w"
.LC17:
	.string	".."
	.text
	.globl	watch1
	.type	watch1, @function
watch1:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	QWORD PTR -232[rbp], rdi
	mov	DWORD PTR -236[rbp], esi
	mov	DWORD PTR -240[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -176[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	cmp	eax, -1
	jne	.L34
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -232[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L34:
	mov	DWORD PTR -212[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	readFile
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 35
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -192[rbp], rax
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L35
.L37:
	mov	eax, DWORD PTR -236[rbp]
	mov	edi, eax
	call	sleep@PLT
	lea	rdx, -176[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	cmp	eax, -1
	jne	.L36
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -232[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L36:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -208[rbp]
	cmp	rdx, rax
	jle	.L35
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rcx, rbx
	lea	rdx, .LC14[rip]
	mov	esi, 35
	mov	rdi, rax
	call	strftime@PLT
	mov	esi, 509
	lea	rdi, .LC15[rip]
	call	mkdir@PLT
	lea	rdi, .LC15[rip]
	call	chdir@PLT
	mov	rax, QWORD PTR -192[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC17[rip]
	call	chdir@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	readFile
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -208[rbp], rax
	add	DWORD PTR -212[rbp], 1
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L35:
	mov	eax, DWORD PTR run[rip]
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -212[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE5:
	.size	watch1, .-watch1
	.globl	parent_sa_handler
	.type	parent_sa_handler, @function
parent_sa_handler:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, sig_parent_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parent_sa_handler, .-parent_sa_handler
	.section	.rodata
.LC18:
	.string	"child stopped"
.LC19:
	.string	"child started"
	.text
	.type	sig_child_handler, @function
sig_child_handler:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 10
	jne	.L42
	lea	rdi, .LC18[rip]
	call	puts@PLT
	call	pause@PLT
	jmp	.L44
.L42:
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L44:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sig_child_handler, .-sig_child_handler
	.type	sig_parent_handler, @function
sig_parent_handler:
.LFB8:
	.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], edi
	cmp	DWORD PTR -4[rbp], 2
	jne	.L47
	mov	DWORD PTR run[rip], 0
.L47:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sig_parent_handler, .-sig_parent_handler
	.section	.rodata
.LC20:
	.string	"STOPPED "
	.align 8
.LC21:
	.string	"Process %d is monitoring file %s with interval %d seconds\n"
	.text
	.globl	list_show
	.type	list_show, @function
list_show:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L49
.L51:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 20[rax]
	cmp	eax, 1
	jne	.L50
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	ecx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 3
	add	rax, rdi
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L49:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L51
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	list_show, .-list_show
	.section	.rodata
.LC22:
	.string	"child %d is already stopped\n"
	.text
	.globl	stop_child
	.type	stop_child, @function
stop_child:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	je	.L53
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L52
.L53:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], 1
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	stop_child, .-stop_child
	.globl	stop_all
	.type	stop_all, @function
stop_all:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L56
.L57:
	mov	rcx, QWORD PTR children[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	stop_child
	add	DWORD PTR -4[rbp], 1
.L56:
	mov	eax, DWORD PTR children[rip+8]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L57
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	stop_all, .-stop_all
	.globl	find_child
	.type	find_child, @function
find_child:
.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 -20[rbp], edi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L59
.L61:
	mov	rcx, QWORD PTR children[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L60
	mov	rcx, QWORD PTR children[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
.L60:
	add	DWORD PTR -12[rbp], 1
.L59:
	mov	eax, DWORD PTR children[rip+8]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L61
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	find_child, .-find_child
	.globl	stop_pid
	.type	stop_pid, @function
stop_pid:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	find_child
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stop_child
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	stop_pid, .-stop_pid
	.section	.rodata
.LC23:
	.string	"child %d is already on\n"
	.text
	.globl	start_child
	.type	start_child, @function
start_child:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L65
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L64
.L65:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	start_child, .-start_child
	.globl	start_all
	.type	start_all, @function
start_all:
.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], 0
	jmp	.L68
.L69:
	mov	rcx, QWORD PTR children[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	start_child
	add	DWORD PTR -4[rbp], 1
.L68:
	mov	eax, DWORD PTR children[rip+8]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L69
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	start_all, .-start_all
	.globl	start_pid
	.type	start_pid, @function
start_pid:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	find_child
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	start_child
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	start_pid, .-start_pid
	.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	"1226467.c"
	.text
	.comm	child,16,4
	.comm	children,8,4
	.global	run
	.data
	.align	2
	.type	run, %object
	.size	run, 4
run:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%200s %d\000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"LIST\012\000"
	.align	2
.LC3:
	.ascii	"STOP ALL\012\000"
	.align	2
.LC4:
	.ascii	"STOP \000"
	.align	2
.LC5:
	.ascii	"START ALL\012\000"
	.align	2
.LC6:
	.ascii	"START \000"
	.align	2
.LC7:
	.ascii	"END\012\000"
	.align	2
.LC8:
	.ascii	"Proces %d utworzyl %d kopii pliku\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	parent_sa_handler
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	beq	.L2
	bl	help
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-72]
	mov	r0, #200
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r0, [fp, #-72]
	bl	readFile
	str	r0, [fp, #-64]
	ldr	r0, [fp, #-64]
	bl	sum_lines
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	mov	r1, #16
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L3
.L7:
	mov	r1, #10
	ldr	r0, [fp, #-84]
	bl	strchr
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-40]
	mov	r2, #0
	strb	r2, [r3]
.L4:
	sub	r3, fp, #92
	ldr	r2, [fp, #-68]
	ldr	r1, .L20+4
	ldr	r0, [fp, #-84]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-80]
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	monitor
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	mov	r0, #200
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-68]
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #12]
.L5:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-40]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r1, .L20+8
	ldr	r0, [fp, #-40]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L3
.L6:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L3:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L7
	ldr	r2, .L20+12
	ldr	r3, [fp, #-56]
	str	r3, [r2]
	ldr	r2, .L20+12
	ldr	r3, [fp, #-60]
	str	r3, [r2, #4]
	ldr	r0, .L20+12
	bl	list_show
	b	.L8
.L14:
	ldr	r3, .L20+16
	ldr	r2, [r3]
	sub	r3, fp, #28
	mov	r1, #20
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #28
	ldr	r1, .L20+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L20+12
	bl	list_show
	b	.L8
.L9:
	sub	r3, fp, #28
	ldr	r1, .L20+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	bl	stop_all
	b	.L8
.L10:
	sub	r3, fp, #28
	mov	r2, #5
	ldr	r1, .L20+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #28
	add	r3, r3, #5
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-44]
	ldr	r0, [fp, #-44]
	bl	stop_pid
	b	.L8
.L11:
	sub	r3, fp, #28
	ldr	r1, .L20+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	bl	start_all
	b	.L8
.L12:
	sub	r3, fp, #28
	mov	r2, #6
	ldr	r1, .L20+36
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #28
	add	r3, r3, #5
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	start_pid
	b	.L8
.L13:
	sub	r3, fp, #28
	ldr	r1, .L20+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r0, #2
	bl	raise
.L8:
	ldr	r3, .L20+44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L15
.L17:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	kill
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r1, fp, #88
	mov	r2, #0
	mov	r0, r3
	bl	waitpid
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-88]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-88]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, .L20+48
	bl	printf
.L16:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L15:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L17
	ldr	r0, [fp, #-68]
	bl	free
	ldr	r0, [fp, #-64]
	bl	free
	ldr	r0, [fp, #-56]
	bl	free
	mov	r3, #0
	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	.LC9
	.word	.LC0
	.word	.LC1
	.word	children
	.word	stdin
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	run
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012 .\\monitor <list>\012\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L23
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L23+4
	bl	fwrite
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	stderr
	.word	.LC10
	.size	help, .-help
	.section	.rodata
	.align	2
.LC11:
	.ascii	"r\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	readFile, %function
readFile:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	lstat
	ldr	r1, .L28+4
	ldr	r0, [fp, #-112]
	bl	fopen
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-108]
	mov	r1, #1
	ldr	r0, [fp, #-104]
	bl	fread
	ldr	r0, [fp, #-108]
	bl	fclose
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC12
	.word	.LC11
	.size	readFile, .-readFile
	.align	2
	.global	sum_lines
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum_lines, %function
sum_lines:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L31
.L32:
	mov	r1, #10
	ldr	r0, [fp, #-8]
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L31:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sum_lines, .-sum_lines
	.section	.rodata
	.align	2
.LC13:
	.ascii	"child pid is -1\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	monitor
	.syntax unified
	.arm
	.fpu softvfp
	.type	monitor, %function
monitor:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	str	r2, [fp, #-168]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmn	r3, #1
	bne	.L35
	ldr	r3, .L39+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L39+8
	bl	fwrite
	mov	r3, #0
	b	.L36
.L35:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L39+12
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #12
	bl	sigaction
	ldr	r2, [fp, #-168]
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-160]
	bl	watch1
.L37:
	ldr	r3, [fp, #-152]
.L36:
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC14
	.word	stderr
	.word	.LC13
	.word	sig_child_handler
	.size	monitor, .-monitor
	.section	.rodata
	.align	2
.LC15:
	.ascii	"\012 File does not exists %s\012\000"
	.align	2
.LC16:
	.ascii	"\012 File stopped existing %s\012\000"
	.align	2
.LC17:
	.ascii	"_%Y-%m-%d_%H-%M-%S\000"
	.align	2
.LC18:
	.ascii	"archiwum\000"
	.align	2
.LC19:
	.ascii	"w\000"
	.align	2
.LC20:
	.ascii	"..\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	watch1
	.syntax unified
	.arm
	.fpu softvfp
	.type	watch1, %function
watch1:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L42
	ldr	r3, .L47+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-136]
	ldr	r1, .L47+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L42:
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-128]
	ldr	r0, [fp, #-136]
	bl	readFile
	str	r0, [fp, #-120]
	ldr	r0, [fp, #-136]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #35
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-116]
	bl	strcpy
	b	.L43
.L45:
	ldr	r3, [fp, #-140]
	mov	r0, r3
	bl	sleep
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L44
	ldr	r3, .L47+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-136]
	ldr	r1, .L47+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L44:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	ble	.L43
	ldr	r0, [fp, #-136]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-116]
	add	r4, r3, r2
	sub	r3, fp, #128
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	ldr	r2, .L47+16
	mov	r1, #35
	mov	r0, r4
	bl	strftime
	ldr	r1, .L47+20
	ldr	r0, .L47+24
	bl	mkdir
	ldr	r0, .L47+24
	bl	chdir
	ldr	r1, .L47+28
	ldr	r0, [fp, #-116]
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r0, [fp, #-120]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-112]
	mov	r1, #1
	ldr	r0, [fp, #-120]
	bl	fwrite
	ldr	r0, [fp, #-112]
	bl	fclose
	ldr	r0, [fp, #-120]
	bl	free
	ldr	r0, .L47+32
	bl	chdir
	ldr	r0, [fp, #-136]
	bl	readFile
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	ldr	r0, [fp, #-112]
	bl	fclose
.L43:
	ldr	r3, .L47+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L45
	ldr	r0, [fp, #-120]
	bl	free
	ldr	r0, [fp, #-116]
	bl	free
	ldr	r0, [fp, #-124]
	bl	exit
.L48:
	.align	2
.L47:
	.word	.LC21
	.word	stderr
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	509
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	run
	.size	watch1, .-watch1
	.section	.rodata
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parent_sa_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent_sa_handler, %function
parent_sa_handler:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L51+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	nop
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC22
	.word	sig_parent_handler
	.size	parent_sa_handler, .-parent_sa_handler
	.section	.rodata
	.align	2
.LC23:
	.ascii	"child stopped\000"
	.align	2
.LC24:
	.ascii	"child started\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_child_handler, %function
sig_child_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L54
	ldr	r0, .L57
	bl	puts
	bl	pause
	b	.L56
.L54:
	ldr	r0, .L57+4
	bl	puts
.L56:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC23
	.word	.LC24
	.size	sig_child_handler, .-sig_child_handler
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_parent_handler, %function
sig_parent_handler:
	@ 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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L61
	ldr	r3, .L62
	mov	r2, #0
	str	r2, [r3]
.L61:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L63:
	.align	2
.L62:
	.word	run
	.size	sig_parent_handler, .-sig_parent_handler
	.section	.rodata
	.align	2
.LC25:
	.ascii	"STOPPED \000"
	.align	2
.LC26:
	.ascii	"Process %d is monitoring file %s with interval %d s"
	.ascii	"econds\012\000"
	.text
	.align	2
	.global	list_show
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_show, %function
list_show:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L65
.L67:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmp	r3, #1
	bne	.L66
	ldr	r0, .L68
	bl	printf
.L66:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r2, r0
	ldr	r0, .L68+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L65:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L67
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC25
	.word	.LC26
	.size	list_show, .-list_show
	.section	.rodata
	.align	2
.LC27:
	.ascii	"child %d is already stopped\012\000"
	.text
	.align	2
	.global	stop_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_child, %function
stop_child:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L71
	ldr	r3, .L73
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L73+4
	bl	fprintf
	b	.L70
.L71:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	kill
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #12]
.L70:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L74:
	.align	2
.L73:
	.word	stderr
	.word	.LC27
	.size	stop_child, .-stop_child
	.align	2
	.global	stop_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_all, %function
stop_all:
	@ 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	.L76
.L77:
	ldr	r3, .L78
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r0, r3
	bl	stop_child
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L76:
	ldr	r3, .L78
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L77
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	children
	.size	stop_all, .-stop_all
	.align	2
	.global	find_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_child, %function
find_child:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L81
.L83:
	ldr	r3, .L85
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L82
	ldr	r3, .L85
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L82:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L81:
	ldr	r3, .L85
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L83
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L86:
	.align	2
.L85:
	.word	children
	.size	find_child, .-find_child
	.align	2
	.global	stop_pid
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_pid, %function
stop_pid:
	@ 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	r0, [fp, #-16]
	bl	find_child
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	stop_child
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stop_pid, .-stop_pid
	.section	.rodata
	.align	2
.LC28:
	.ascii	"child %d is already on\012\000"
	.text
	.align	2
	.global	start_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_child, %function
start_child:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L89
	ldr	r3, .L91
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L91+4
	bl	fprintf
	b	.L88
.L89:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, #12
	mov	r0, r3
	bl	kill
.L88:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	stderr
	.word	.LC28
	.size	start_child, .-start_child
	.align	2
	.global	start_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_all, %function
start_all:
	@ 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	.L94
.L95:
	ldr	r3, .L96
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r0, r3
	bl	start_child
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L94:
	ldr	r3, .L96
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L95
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	children
	.size	start_all, .-start_all
	.align	2
	.global	start_pid
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_pid, %function
start_pid:
	@ 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	r0, [fp, #-16]
	bl	find_child
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	start_child
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	start_pid, .-start_pid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
