	.file	"349075.c"
	.intel_syntax noprefix
	.text
	.globl	prog
	.bss
	.align 8
	.type	prog, @object
	.size	prog, 8
prog:
	.zero	8
	.globl	TMP_PID_LIST
	.section	.rodata
.LC0:
	.string	"tmp_pid_list"
	.section	.data.rel.local,"aw"
	.align 8
	.type	TMP_PID_LIST, @object
	.size	TMP_PID_LIST, 8
TMP_PID_LIST:
	.quad	.LC0
	.globl	TMP_SIG
	.section	.rodata
.LC1:
	.string	"tmp_sig"
	.section	.data.rel.local
	.align 8
	.type	TMP_SIG, @object
	.size	TMP_SIG, 8
TMP_SIG:
	.quad	.LC1
	.globl	pid_list
	.bss
	.align 32
	.type	pid_list, @object
	.size	pid_list, 40
pid_list:
	.zero	40
	.globl	sig1_received
	.align 4
	.type	sig1_received, @object
	.size	sig1_received, 4
sig1_received:
	.zero	4
	.globl	sig2_received
	.align 4
	.type	sig2_received, @object
	.size	sig2_received, 4
sig2_received:
	.zero	4
	.globl	send_to_pid
	.align 4
	.type	send_to_pid, @object
	.size	send_to_pid, 4
send_to_pid:
	.zero	4
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"123%s: %s\n"
.LC4:
	.string	"%s: %s\n"
	.text
	.globl	wait_sig
	.type	wait_sig, @function
wait_sig:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR TMP_SIG[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	QWORD PTR -16[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jl	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L7:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	wait_sig, .-wait_sig
	.section	.rodata
.LC5:
	.string	"a"
	.text
	.globl	add_sig
	.type	add_sig, @function
add_sig:
.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	rax, QWORD PTR TMP_SIG[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 49
	call	fputc@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_sig, .-add_sig
	.section	.rodata
.LC6:
	.string	"w"
	.text
	.globl	clear_sig
	.type	clear_sig, @function
clear_sig:
.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, 16
	mov	rax, QWORD PTR TMP_SIG[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	clear_sig, .-clear_sig
	.globl	get_pid_list
	.type	get_pid_list, @function
get_pid_list:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L20
.L15:
	mov	DWORD PTR -52[rbp], 2
	jmp	.L17
.L18:
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -34[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	fgets@PLT
	mov	ebx, DWORD PTR -52[rbp]
	lea	eax, 1[rbx]
	mov	DWORD PTR -52[rbp], eax
	lea	rax, -34[rbp]
	mov	rdi, rax
	call	atoi@PLT
	movsx	rdx, ebx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, pid_list[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L17:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -52[rbp]
.L20:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_pid_list, .-get_pid_list
	.globl	curr_time
	.type	curr_time, @function
curr_time:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rdx, -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gettimeofday@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L23
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, -1
	jmp	.L25
.L23:
	mov	rax, QWORD PTR -24[rbp]
.L25:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	curr_time, .-curr_time
	.section	.rodata
	.align 8
.LC7:
	.string	"%d %d %d \320\277\320\276\321\201\320\273\320\260\320\273 SIGUSR1 %lld\n"
	.align 8
.LC8:
	.string	"%d %d %d \320\277\320\276\321\201\320\273\320\260\320\273 SIGUSR2 %lld\n"
.LC9:
	.string	"%s: %s %d\n"
	.text
	.globl	send_to
	.type	send_to, @function
send_to:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	cmp	DWORD PTR -28[rbp], 0
	jne	.L28
	cmp	DWORD PTR -24[rbp], 10
	jne	.L29
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	r9, r12
	mov	r8d, ebx
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L28
.L29:
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	r9, r12
	mov	r8d, ebx
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L28:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR send_to_pid[rip]
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, edx
	call	kill@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L32
	mov	ebx, DWORD PTR send_to_pid[rip]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, ebx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L27
.L32:
	nop
.L27:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	send_to, .-send_to
	.globl	send_to_directly
	.type	send_to_directly, @function
send_to_directly:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	cmp	DWORD PTR -28[rbp], 0
	jne	.L34
	cmp	DWORD PTR -24[rbp], 10
	jne	.L35
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	r9, r12
	mov	r8d, ebx
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L34
.L35:
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	r9, r12
	mov	r8d, ebx
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L34:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR send_to_pid[rip]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L38
	mov	ebx, DWORD PTR send_to_pid[rip]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, ebx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L33
.L38:
	nop
.L33:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	send_to_directly, .-send_to_directly
	.section	.rodata
	.align 8
.LC10:
	.string	"%d %d \320\267\320\260\320\262\320\265\321\200\321\210\320\270\320\273 \321\200\320\260\320\261\320\276\321\202\321\203 \320\277\320\276\321\201\320\273\320\265 %d-\320\263\320\276 \321\201\320\270\320\263\320\275\320\260\320\273\320\260 SIGUSR1 \320\270 %d-\320\263\320\276 \321\201\320\270\320\263\320\275\320\260\320\273\320\260 SIGUSR2 %lld\n"
	.text
	.globl	print_result
	.type	print_result, @function
print_result:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -36[rbp], edi
	mov	eax, 0
	call	curr_time
	mov	r13, rax
	mov	r14d, DWORD PTR sig2_received[rip]
	mov	ebx, DWORD PTR sig1_received[rip]
	call	getppid@PLT
	mov	r12d, eax
	call	getpid@PLT
	mov	r9, r13
	mov	r8d, r14d
	mov	ecx, ebx
	mov	edx, r12d
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	print_result, .-print_result
	.section	.rodata
	.align 8
.LC11:
	.string	"1 %d %d \320\277\320\276\320\273\321\203\321\207\320\270\320\273 SIGUSR2 %lld\n"
	.text
	.globl	ps1_sig_handler
	.type	ps1_sig_handler, @function
ps1_sig_handler:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 12
	jne	.L41
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sig2_received[rip]
	add	eax, 1
	mov	DWORD PTR sig2_received[rip], eax
	mov	eax, DWORD PTR sig2_received[rip]
	cmp	eax, 101
	jne	.L42
	mov	eax, 0
	call	get_pid_list
	mov	eax, DWORD PTR pid_list[rip+8]
	mov	DWORD PTR send_to_pid[rip], eax
	mov	edx, 1
	mov	esi, 15
	mov	edi, 1
	call	send_to_directly
	mov	eax, DWORD PTR send_to_pid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	edi, 1
	call	print_result
	mov	edi, 0
	call	exit@PLT
.L42:
	mov	eax, 0
	call	clear_sig
	mov	edx, 0
	mov	esi, 12
	mov	edi, 1
	call	send_to
	jmp	.L43
.L41:
	cmp	DWORD PTR -20[rbp], 15
	jne	.L43
	mov	edi, 1
	call	print_result
	mov	edi, 0
	call	exit@PLT
.L43:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	ps1_sig_handler, .-ps1_sig_handler
	.section	.rodata
	.align 8
.LC12:
	.string	"2 %d %d \320\277\320\276\320\273\321\203\321\207\320\270\320\273 SIGUSR2 %lld\n"
	.text
	.globl	ps2_sig_handler
	.type	ps2_sig_handler, @function
ps2_sig_handler:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 12
	jne	.L45
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sig2_received[rip]
	add	eax, 1
	mov	DWORD PTR sig2_received[rip], eax
	mov	eax, 0
	call	add_sig
	jmp	.L46
.L45:
	cmp	DWORD PTR -20[rbp], 15
	jne	.L46
	mov	edi, 2
	call	print_result
	mov	eax, 0
	call	get_pid_list
	mov	eax, DWORD PTR pid_list[rip+12]
	mov	DWORD PTR send_to_pid[rip], eax
	mov	edx, 1
	mov	esi, 15
	mov	edi, 2
	call	send_to_directly
	mov	eax, DWORD PTR send_to_pid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	edi, 0
	call	exit@PLT
.L46:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	ps2_sig_handler, .-ps2_sig_handler
	.section	.rodata
	.align 8
.LC13:
	.string	"3 %d %d \320\277\320\276\320\273\321\203\321\207\320\270\320\273 SIGUSR2 %lld\n"
	.text
	.globl	ps3_sig_handler
	.type	ps3_sig_handler, @function
ps3_sig_handler:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 12
	jne	.L48
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sig2_received[rip]
	add	eax, 1
	mov	DWORD PTR sig2_received[rip], eax
	mov	eax, 0
	call	add_sig
	jmp	.L49
.L48:
	cmp	DWORD PTR -20[rbp], 15
	jne	.L49
	mov	edi, 3
	call	print_result
	mov	eax, 0
	call	get_pid_list
	mov	eax, DWORD PTR pid_list[rip+16]
	mov	DWORD PTR send_to_pid[rip], eax
	mov	edx, 1
	mov	esi, 15
	mov	edi, 1
	call	send_to_directly
	mov	eax, DWORD PTR send_to_pid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR pid_list[rip+20]
	mov	DWORD PTR send_to_pid[rip], eax
	mov	edx, 1
	mov	esi, 15
	mov	edi, 1
	call	send_to_directly
	mov	eax, DWORD PTR send_to_pid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR pid_list[rip+24]
	mov	DWORD PTR send_to_pid[rip], eax
	mov	edx, 1
	mov	esi, 15
	mov	edi, 1
	call	send_to_directly
	mov	eax, DWORD PTR send_to_pid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	edi, 0
	call	exit@PLT
.L49:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	ps3_sig_handler, .-ps3_sig_handler
	.section	.rodata
	.align 8
.LC14:
	.string	"4 %d %d \320\277\320\276\320\273\321\203\321\207\320\270\320\273 SIGUSR2 %lld\n"
	.text
	.globl	ps4_sig_handler
	.type	ps4_sig_handler, @function
ps4_sig_handler:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 12
	jne	.L51
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sig2_received[rip]
	add	eax, 1
	mov	DWORD PTR sig2_received[rip], eax
	mov	eax, 0
	call	add_sig
	jmp	.L52
.L51:
	cmp	DWORD PTR -20[rbp], 15
	jne	.L52
	mov	edi, 4
	call	print_result
	mov	eax, 0
	call	get_pid_list
	mov	eax, DWORD PTR pid_list[rip+32]
	mov	DWORD PTR send_to_pid[rip], eax
	mov	edx, 1
	mov	esi, 15
	mov	edi, 1
	call	send_to_directly
	mov	eax, DWORD PTR send_to_pid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	edi, 0
	call	exit@PLT
.L52:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	ps4_sig_handler, .-ps4_sig_handler
	.section	.rodata
	.align 8
.LC15:
	.string	"5 %d %d \320\277\320\276\320\273\321\203\321\207\320\270\320\273 SIGUSR2 %lld\n"
	.text
	.globl	ps5_sig_handler
	.type	ps5_sig_handler, @function
ps5_sig_handler:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 12
	jne	.L54
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sig2_received[rip]
	add	eax, 1
	mov	DWORD PTR sig2_received[rip], eax
	mov	eax, 0
	call	add_sig
	jmp	.L55
.L54:
	cmp	DWORD PTR -20[rbp], 15
	jne	.L55
	mov	edi, 5
	call	print_result
	mov	edi, 0
	call	exit@PLT
.L55:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	ps5_sig_handler, .-ps5_sig_handler
	.section	.rodata
	.align 8
.LC16:
	.string	"6 %d %d \320\277\320\276\320\273\321\203\321\207\320\270\320\273 SIGUSR2 %lld\n"
	.text
	.globl	ps6_sig_handler
	.type	ps6_sig_handler, @function
ps6_sig_handler:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 12
	jne	.L57
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sig2_received[rip]
	add	eax, 1
	mov	DWORD PTR sig2_received[rip], eax
	mov	edi, 4
	call	wait_sig
	mov	eax, 0
	call	clear_sig
	mov	edx, 0
	mov	esi, 10
	mov	edi, 6
	call	send_to
	jmp	.L58
.L57:
	cmp	DWORD PTR -20[rbp], 15
	jne	.L58
	mov	edi, 6
	call	print_result
	mov	eax, 0
	call	get_pid_list
	mov	eax, DWORD PTR pid_list[rip+28]
	mov	DWORD PTR send_to_pid[rip], eax
	mov	edx, 1
	mov	esi, 15
	mov	edi, 1
	call	send_to_directly
	mov	eax, DWORD PTR send_to_pid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	edi, 0
	call	exit@PLT
.L58:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	ps6_sig_handler, .-ps6_sig_handler
	.section	.rodata
	.align 8
.LC17:
	.string	"7 %d %d \320\277\320\276\320\273\321\203\321\207\320\270\320\273 SIGUSR1 %lld\n"
	.text
	.globl	ps7_sig_handler
	.type	ps7_sig_handler, @function
ps7_sig_handler:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 10
	jne	.L60
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sig1_received[rip]
	add	eax, 1
	mov	DWORD PTR sig1_received[rip], eax
	mov	eax, 0
	call	add_sig
	jmp	.L61
.L60:
	cmp	DWORD PTR -20[rbp], 15
	jne	.L61
	mov	edi, 7
	call	print_result
	mov	edi, 0
	call	exit@PLT
.L61:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	ps7_sig_handler, .-ps7_sig_handler
	.section	.rodata
	.align 8
.LC18:
	.string	"8 %d %d \320\277\320\276\320\273\321\203\321\207\320\270\320\273 SIGUSR1 %lld\n"
	.text
	.globl	ps8_sig_handler
	.type	ps8_sig_handler, @function
ps8_sig_handler:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 10
	jne	.L63
	mov	eax, DWORD PTR sig1_received[rip]
	add	eax, 1
	mov	DWORD PTR sig1_received[rip], eax
	mov	eax, 0
	call	curr_time
	mov	r12, rax
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	wait_sig
	mov	eax, 0
	call	clear_sig
	mov	edx, 0
	mov	esi, 12
	mov	edi, 8
	call	send_to
	jmp	.L64
.L63:
	cmp	DWORD PTR -20[rbp], 15
	jne	.L64
	mov	edi, 8
	call	print_result
	mov	edi, 0
	call	exit@PLT
.L64:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	ps8_sig_handler, .-ps8_sig_handler
	.globl	amount_of_lines
	.type	amount_of_lines, @function
amount_of_lines:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L66
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L67
.L66:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L68
.L69:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 10
	jne	.L68
	add	DWORD PTR -16[rbp], 1
.L68:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L69
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L70
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L67
.L70:
	mov	eax, DWORD PTR -16[rbp]
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	amount_of_lines, .-amount_of_lines
	.section	.rodata
.LC19:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR prog[rip], rax
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L72
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L72:
	call	fork@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L74
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L74:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L75
	call	getpid@PLT
	mov	DWORD PTR -48[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L76
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L76:
	cmp	DWORD PTR -44[rbp], 0
	jne	.L77
	call	getpid@PLT
	mov	DWORD PTR -40[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L78
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L78:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L79
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setpgid@PLT
	call	fork@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	jne	.L80
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L80:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L81
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L82
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L82:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L83
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR send_to_pid[rip], eax
	lea	rsi, ps8_sig_handler[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, ps8_sig_handler[rip]
	mov	edi, 15
	call	signal@PLT
	nop
.L84:
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	mov	rdi, rax
	call	amount_of_lines
	cmp	eax, 6
	jne	.L84
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L85
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L85:
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L86
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L86:
	call	pause@PLT
	jmp	.L86
.L83:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setpgid@PLT
	lea	rsi, ps4_sig_handler[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, ps4_sig_handler[rip]
	mov	edi, 15
	call	signal@PLT
	nop
.L87:
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	mov	rdi, rax
	call	amount_of_lines
	cmp	eax, 2
	jne	.L87
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L88
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L88:
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L89
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L89:
	call	pause@PLT
	jmp	.L89
.L81:
	call	getpid@PLT
	mov	DWORD PTR -28[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L90
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L90:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L91
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setpgid@PLT
	lea	rsi, ps5_sig_handler[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, ps5_sig_handler[rip]
	mov	edi, 15
	call	signal@PLT
	nop
.L92:
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	mov	rdi, rax
	call	amount_of_lines
	cmp	eax, 3
	jne	.L92
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L93
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L93:
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L94
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L94:
	call	pause@PLT
	jmp	.L94
.L91:
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L95
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L95:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L96
	call	fork@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	jne	.L97
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L97:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L98
	lea	rsi, ps7_sig_handler[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, ps7_sig_handler[rip]
	mov	edi, 15
	call	signal@PLT
	nop
.L99:
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	mov	rdi, rax
	call	amount_of_lines
	cmp	eax, 5
	jne	.L99
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L100
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L100:
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L101
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L101:
	call	pause@PLT
	jmp	.L101
.L98:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setpgid@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR send_to_pid[rip], eax
	lea	rsi, ps6_sig_handler[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, ps6_sig_handler[rip]
	mov	edi, 15
	call	signal@PLT
	nop
.L102:
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	mov	rdi, rax
	call	amount_of_lines
	cmp	eax, 4
	jne	.L102
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L103
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L103:
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L104
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L104:
	call	pause@PLT
	jmp	.L104
.L96:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setpgid@PLT
	lea	rsi, ps3_sig_handler[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, ps3_sig_handler[rip]
	mov	edi, 15
	call	signal@PLT
	nop
.L105:
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	mov	rdi, rax
	call	amount_of_lines
	cmp	eax, 1
	jne	.L105
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L106
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L106:
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L107
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L107:
	call	pause@PLT
	jmp	.L107
.L79:
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	mov	edi, 0
	call	setpgid@PLT
	lea	rsi, ps2_sig_handler[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, ps2_sig_handler[rip]
	mov	edi, 15
	call	signal@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L108
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L108:
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L109
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L109:
	call	pause@PLT
	jmp	.L109
.L77:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setpgid@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR send_to_pid[rip], eax
	lea	rsi, ps1_sig_handler[rip]
	mov	edi, 12
	call	signal@PLT
.L112:
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	mov	rdi, rax
	call	amount_of_lines
	cmp	eax, 7
	je	.L118
	jmp	.L112
.L118:
	nop
	mov	edi, 10
	call	sleep@PLT
	mov	edx, 0
	mov	esi, 12
	mov	edi, 1
	call	send_to
.L113:
	call	pause@PLT
	jmp	.L113
.L75:
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L114
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L114:
	mov	rax, QWORD PTR TMP_PID_LIST[rip]
	mov	rdi, rax
	call	remove@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L115
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L115:
	mov	rax, QWORD PTR TMP_SIG[rip]
	mov	rdi, rax
	call	remove@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L116
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L73
.L116:
	mov	eax, 0
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"349075.c"
	.text
	.comm	prog,4,4
	.global	TMP_PID_LIST
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tmp_pid_list\000"
	.data
	.align	2
	.type	TMP_PID_LIST, %object
	.size	TMP_PID_LIST, 4
TMP_PID_LIST:
	.word	.LC0
	.global	TMP_SIG
	.section	.rodata
	.align	2
.LC1:
	.ascii	"tmp_sig\000"
	.data
	.align	2
	.type	TMP_SIG, %object
	.size	TMP_SIG, 4
TMP_SIG:
	.word	.LC1
	.comm	pid_list,40,4
	.global	sig1_received
	.bss
	.align	2
	.type	sig1_received, %object
	.size	sig1_received, 4
sig1_received:
	.space	4
	.global	sig2_received
	.align	2
	.type	sig2_received, %object
	.size	sig2_received, 4
sig2_received:
	.space	4
	.comm	send_to_pid,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"123%s: %s\012\000"
	.align	2
.LC4:
	.ascii	"%s: %s\012\000"
	.text
	.align	2
	.global	wait_sig
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_sig, %function
wait_sig:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r1, .L8+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L8+8
	ldr	r4, [r3]
	ldr	r3, .L8+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L8+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L4
.L6:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L8+8
	ldr	r4, [r3]
	ldr	r3, .L8+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L8+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L5:
	ldr	r0, [fp, #-16]
	bl	ftell
	str	r0, [fp, #-20]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L8+8
	ldr	r4, [r3]
	ldr	r3, .L8+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L8+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L4:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L6
	ldr	r0, [fp, #-16]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L8+8
	ldr	r4, [r3]
	ldr	r3, .L8+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L8+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L7:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	TMP_SIG
	.word	.LC2
	.word	stderr
	.word	prog
	.word	.LC3
	.word	.LC4
	.size	wait_sig, .-wait_sig
	.section	.rodata
	.align	2
.LC5:
	.ascii	"a\000"
	.text
	.align	2
	.global	add_sig
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_sig, %function
add_sig:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r1, .L13+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L13+8
	ldr	r4, [r3]
	ldr	r3, .L13+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L13+16
	mov	r0, r4
	bl	fprintf
	b	.L10
.L11:
	ldr	r1, [fp, #-16]
	mov	r0, #49
	bl	fputc
	ldr	r0, [fp, #-16]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L13+8
	ldr	r4, [r3]
	ldr	r3, .L13+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L13+16
	mov	r0, r4
	bl	fprintf
	nop
.L10:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	TMP_SIG
	.word	.LC5
	.word	stderr
	.word	prog
	.word	.LC4
	.size	add_sig, .-add_sig
	.section	.rodata
	.align	2
.LC6:
	.ascii	"w\000"
	.text
	.align	2
	.global	clear_sig
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_sig, %function
clear_sig:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r1, .L18+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L18+8
	ldr	r4, [r3]
	ldr	r3, .L18+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L18+16
	mov	r0, r4
	bl	fprintf
	b	.L15
.L16:
	ldr	r0, [fp, #-16]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L18+8
	ldr	r4, [r3]
	ldr	r3, .L18+12
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L18+16
	mov	r0, r4
	bl	fprintf
	nop
.L15:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L19:
	.align	2
.L18:
	.word	TMP_SIG
	.word	.LC6
	.word	stderr
	.word	prog
	.word	.LC4
	.size	clear_sig, .-clear_sig
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_pid_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_pid_list, %function
get_pid_list:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L28+4
	ldr	r3, [r3]
	ldr	r1, .L28+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-32]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L28+12
	ldr	r4, [r3]
	ldr	r3, .L28+16
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L28+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L26
.L21:
	mov	r3, #2
	str	r3, [fp, #-36]
	b	.L23
.L24:
	sub	r3, fp, #28
	ldr	r2, [fp, #-32]
	mov	r1, #10
	mov	r0, r3
	bl	fgets
	ldr	r4, [fp, #-36]
	add	r3, r4, #1
	str	r3, [fp, #-36]
	sub	r3, fp, #28
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L28+24
	str	r3, [r2, r4, lsl #2]
.L23:
	ldr	r0, [fp, #-32]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r0, [fp, #-32]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L28+12
	ldr	r4, [r3]
	ldr	r3, .L28+16
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L28+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L26
.L25:
	ldr	r3, [fp, #-36]
.L26:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC7
	.word	TMP_PID_LIST
	.word	.LC2
	.word	stderr
	.word	prog
	.word	.LC4
	.word	pid_list
	.size	get_pid_list, .-get_pid_list
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	curr_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	curr_time, %function
curr_time:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r2, fp, #24
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	gettimeofday
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L35+4
	ldr	r4, [r3]
	ldr	r3, .L35+8
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L35+12
	mov	r0, r4
	bl	fprintf
	mvn	r2, #0
	mvn	r3, #0
	b	.L33
.L31:
	ldr	r3, [fp, #-28]
	mov	r2, r3
	asr	r3, r2, #31
.L33:
	ldr	r1, .L35
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC8
	.word	stderr
	.word	prog
	.word	.LC4
	.size	curr_time, .-curr_time
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%d %d %d \320\277\320\276\321\201\320\273\320\260\320"
	.ascii	"\273 SIGUSR1 %lld\012\000"
	.align	2
.LC10:
	.ascii	"%d %d %d \320\277\320\276\321\201\320\273\320\260\320"
	.ascii	"\273 SIGUSR2 %lld\012\000"
	.align	2
.LC11:
	.ascii	"%s: %s %d\012\000"
	.text
	.align	2
	.global	send_to
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_to, %function
send_to:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-28]
	cmp	r3, #10
	bne	.L39
	ldr	r3, .L43
	ldr	r4, [r3]
	bl	getpid
	mov	r6, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r5, [sp]
	mov	r3, r6
	ldr	r2, [fp, #-24]
	ldr	r1, .L43+4
	mov	r0, r4
	bl	fprintf
	b	.L38
.L39:
	ldr	r3, .L43
	ldr	r4, [r3]
	bl	getpid
	mov	r6, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r5, [sp]
	mov	r3, r6
	ldr	r2, [fp, #-24]
	ldr	r1, .L43+8
	mov	r0, r4
	bl	fprintf
.L38:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L43+12
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	kill
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L43+16
	ldr	r4, [r3]
	ldr	r3, .L43+20
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	ldr	r3, .L43+12
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r5
	ldr	r1, .L43+24
	mov	r0, r4
	bl	fprintf
	b	.L37
.L42:
	nop
.L37:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L44:
	.align	2
.L43:
	.word	stdout
	.word	.LC9
	.word	.LC10
	.word	send_to_pid
	.word	stderr
	.word	prog
	.word	.LC11
	.size	send_to, .-send_to
	.align	2
	.global	send_to_directly
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_to_directly, %function
send_to_directly:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-28]
	cmp	r3, #10
	bne	.L47
	ldr	r3, .L51
	ldr	r4, [r3]
	bl	getpid
	mov	r6, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r5, [sp]
	mov	r3, r6
	ldr	r2, [fp, #-24]
	ldr	r1, .L51+4
	mov	r0, r4
	bl	fprintf
	b	.L46
.L47:
	ldr	r3, .L51
	ldr	r4, [r3]
	bl	getpid
	mov	r6, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r5, [sp]
	mov	r3, r6
	ldr	r2, [fp, #-24]
	ldr	r1, .L51+8
	mov	r0, r4
	bl	fprintf
.L46:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L51+12
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	kill
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L51+16
	ldr	r4, [r3]
	ldr	r3, .L51+20
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	ldr	r3, .L51+12
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r5
	ldr	r1, .L51+24
	mov	r0, r4
	bl	fprintf
	b	.L45
.L50:
	nop
.L45:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L52:
	.align	2
.L51:
	.word	stdout
	.word	.LC9
	.word	.LC10
	.word	send_to_pid
	.word	stderr
	.word	prog
	.word	.LC11
	.size	send_to_directly, .-send_to_directly
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%d %d \320\267\320\260\320\262\320\265\321\200\321\210"
	.ascii	"\320\270\320\273 \321\200\320\260\320\261\320\276\321"
	.ascii	"\202\321\203 \320\277\320\276\321\201\320\273\320\265"
	.ascii	" %d-\320\263\320\276 \321\201\320\270\320\263\320\275"
	.ascii	"\320\260\320\273\320\260 SIGUSR1 \320\270 %d-\320\263"
	.ascii	"\320\276 \321\201\320\270\320\263\320\275\320\260\320"
	.ascii	"\273\320\260 SIGUSR2 %lld\012\000"
	.text
	.align	2
	.global	print_result
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_result, %function
print_result:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	bl	getpid
	mov	r6, r0
	bl	getppid
	mov	r7, r0
	ldr	r3, .L54
	ldr	r5, [r3]
	ldr	r3, .L54+4
	ldr	r4, [r3]
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r4, [sp]
	mov	r3, r5
	mov	r2, r7
	mov	r1, r6
	ldr	r0, .L54+8
	bl	printf
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L55:
	.align	2
.L54:
	.word	sig1_received
	.word	sig2_received
	.word	.LC12
	.size	print_result, .-print_result
	.section	.rodata
	.align	2
.LC13:
	.ascii	"1 %d %d \320\277\320\276\320\273\321\203\321\207\320"
	.ascii	"\270\320\273 SIGUSR2 %lld\012\000"
	.text
	.align	2
	.global	ps1_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps1_sig_handler, %function
ps1_sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bne	.L57
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L60
	bl	printf
	ldr	r3, .L60+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L60+4
	str	r3, [r2]
	ldr	r3, .L60+4
	ldr	r3, [r3]
	cmp	r3, #101
	bne	.L58
	bl	get_pid_list
	ldr	r3, .L60+8
	ldr	r3, [r3, #8]
	ldr	r2, .L60+12
	str	r3, [r2]
	mov	r2, #1
	mov	r1, #15
	mov	r0, #1
	bl	send_to_directly
	ldr	r3, .L60+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	mov	r0, #1
	bl	print_result
	mov	r0, #0
	bl	exit
.L58:
	bl	clear_sig
	mov	r2, #0
	mov	r1, #12
	mov	r0, #1
	bl	send_to
	b	.L59
.L57:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L59
	mov	r0, #1
	bl	print_result
	mov	r0, #0
	bl	exit
.L59:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC13
	.word	sig2_received
	.word	pid_list
	.word	send_to_pid
	.size	ps1_sig_handler, .-ps1_sig_handler
	.section	.rodata
	.align	2
.LC14:
	.ascii	"2 %d %d \320\277\320\276\320\273\321\203\321\207\320"
	.ascii	"\270\320\273 SIGUSR2 %lld\012\000"
	.text
	.align	2
	.global	ps2_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps2_sig_handler, %function
ps2_sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bne	.L63
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L65
	bl	printf
	ldr	r3, .L65+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L65+4
	str	r3, [r2]
	bl	add_sig
	b	.L64
.L63:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L64
	mov	r0, #2
	bl	print_result
	bl	get_pid_list
	ldr	r3, .L65+8
	ldr	r3, [r3, #12]
	ldr	r2, .L65+12
	str	r3, [r2]
	mov	r2, #1
	mov	r1, #15
	mov	r0, #2
	bl	send_to_directly
	ldr	r3, .L65+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	mov	r0, #0
	bl	exit
.L64:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC14
	.word	sig2_received
	.word	pid_list
	.word	send_to_pid
	.size	ps2_sig_handler, .-ps2_sig_handler
	.section	.rodata
	.align	2
.LC15:
	.ascii	"3 %d %d \320\277\320\276\320\273\321\203\321\207\320"
	.ascii	"\270\320\273 SIGUSR2 %lld\012\000"
	.text
	.align	2
	.global	ps3_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps3_sig_handler, %function
ps3_sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bne	.L68
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L70
	bl	printf
	ldr	r3, .L70+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L70+4
	str	r3, [r2]
	bl	add_sig
	b	.L69
.L68:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L69
	mov	r0, #3
	bl	print_result
	bl	get_pid_list
	ldr	r3, .L70+8
	ldr	r3, [r3, #16]
	ldr	r2, .L70+12
	str	r3, [r2]
	mov	r2, #1
	mov	r1, #15
	mov	r0, #1
	bl	send_to_directly
	ldr	r3, .L70+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	ldr	r3, .L70+8
	ldr	r3, [r3, #20]
	ldr	r2, .L70+12
	str	r3, [r2]
	mov	r2, #1
	mov	r1, #15
	mov	r0, #1
	bl	send_to_directly
	ldr	r3, .L70+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	ldr	r3, .L70+8
	ldr	r3, [r3, #24]
	ldr	r2, .L70+12
	str	r3, [r2]
	mov	r2, #1
	mov	r1, #15
	mov	r0, #1
	bl	send_to_directly
	ldr	r3, .L70+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	mov	r0, #0
	bl	exit
.L69:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC15
	.word	sig2_received
	.word	pid_list
	.word	send_to_pid
	.size	ps3_sig_handler, .-ps3_sig_handler
	.section	.rodata
	.align	2
.LC16:
	.ascii	"4 %d %d \320\277\320\276\320\273\321\203\321\207\320"
	.ascii	"\270\320\273 SIGUSR2 %lld\012\000"
	.text
	.align	2
	.global	ps4_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps4_sig_handler, %function
ps4_sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bne	.L73
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L75
	bl	printf
	ldr	r3, .L75+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L75+4
	str	r3, [r2]
	bl	add_sig
	b	.L74
.L73:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L74
	mov	r0, #4
	bl	print_result
	bl	get_pid_list
	ldr	r3, .L75+8
	ldr	r3, [r3, #32]
	ldr	r2, .L75+12
	str	r3, [r2]
	mov	r2, #1
	mov	r1, #15
	mov	r0, #1
	bl	send_to_directly
	ldr	r3, .L75+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	mov	r0, #0
	bl	exit
.L74:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC16
	.word	sig2_received
	.word	pid_list
	.word	send_to_pid
	.size	ps4_sig_handler, .-ps4_sig_handler
	.section	.rodata
	.align	2
.LC17:
	.ascii	"5 %d %d \320\277\320\276\320\273\321\203\321\207\320"
	.ascii	"\270\320\273 SIGUSR2 %lld\012\000"
	.text
	.align	2
	.global	ps5_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps5_sig_handler, %function
ps5_sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bne	.L78
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L80
	bl	printf
	ldr	r3, .L80+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L80+4
	str	r3, [r2]
	bl	add_sig
	b	.L79
.L78:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L79
	mov	r0, #5
	bl	print_result
	mov	r0, #0
	bl	exit
.L79:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC17
	.word	sig2_received
	.size	ps5_sig_handler, .-ps5_sig_handler
	.section	.rodata
	.align	2
.LC18:
	.ascii	"6 %d %d \320\277\320\276\320\273\321\203\321\207\320"
	.ascii	"\270\320\273 SIGUSR2 %lld\012\000"
	.text
	.align	2
	.global	ps6_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps6_sig_handler, %function
ps6_sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bne	.L83
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L85
	bl	printf
	ldr	r3, .L85+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L85+4
	str	r3, [r2]
	mov	r0, #4
	bl	wait_sig
	bl	clear_sig
	mov	r2, #0
	mov	r1, #10
	mov	r0, #6
	bl	send_to
	b	.L84
.L83:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L84
	mov	r0, #6
	bl	print_result
	bl	get_pid_list
	ldr	r3, .L85+8
	ldr	r3, [r3, #28]
	ldr	r2, .L85+12
	str	r3, [r2]
	mov	r2, #1
	mov	r1, #15
	mov	r0, #1
	bl	send_to_directly
	ldr	r3, .L85+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	mov	r0, #0
	bl	exit
.L84:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC18
	.word	sig2_received
	.word	pid_list
	.word	send_to_pid
	.size	ps6_sig_handler, .-ps6_sig_handler
	.section	.rodata
	.align	2
.LC19:
	.ascii	"7 %d %d \320\277\320\276\320\273\321\203\321\207\320"
	.ascii	"\270\320\273 SIGUSR1 %lld\012\000"
	.text
	.align	2
	.global	ps7_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps7_sig_handler, %function
ps7_sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L88
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L90
	bl	printf
	ldr	r3, .L90+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L90+4
	str	r3, [r2]
	bl	add_sig
	b	.L89
.L88:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L89
	mov	r0, #7
	bl	print_result
	mov	r0, #0
	bl	exit
.L89:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC19
	.word	sig1_received
	.size	ps7_sig_handler, .-ps7_sig_handler
	.section	.rodata
	.align	2
.LC20:
	.ascii	"8 %d %d \320\277\320\276\320\273\321\203\321\207\320"
	.ascii	"\270\320\273 SIGUSR1 %lld\012\000"
	.text
	.align	2
	.global	ps8_sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps8_sig_handler, %function
ps8_sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L93
	ldr	r3, .L95
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L95
	str	r3, [r2]
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r5, r0
	bl	curr_time
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L95+4
	bl	printf
	mov	r0, #1
	bl	wait_sig
	bl	clear_sig
	mov	r2, #0
	mov	r1, #12
	mov	r0, #8
	bl	send_to
	b	.L94
.L93:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bne	.L94
	mov	r0, #8
	bl	print_result
	mov	r0, #0
	bl	exit
.L94:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L96:
	.align	2
.L95:
	.word	sig1_received
	.word	.LC20
	.size	ps8_sig_handler, .-ps8_sig_handler
	.align	2
	.global	amount_of_lines
	.syntax unified
	.arm
	.fpu softvfp
	.type	amount_of_lines, %function
amount_of_lines:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r1, .L103
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-20]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L98
	ldr	r3, .L103+4
	ldr	r4, [r3]
	ldr	r3, .L103+8
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L103+12
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L99
.L98:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L100
.L101:
	ldr	r0, [fp, #-20]
	bl	fgetc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L100
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L100:
	ldr	r0, [fp, #-20]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L101
	ldr	r0, [fp, #-20]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L102
	ldr	r3, .L103+4
	ldr	r4, [r3]
	ldr	r3, .L103+8
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L103+12
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L99
.L102:
	ldr	r3, [fp, #-24]
.L99:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC2
	.word	stderr
	.word	prog
	.word	.LC4
	.size	amount_of_lines, .-amount_of_lines
	.section	.rodata
	.align	2
.LC21:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	ldr	r2, .L153
	str	r3, [r2]
	ldr	r3, .L153+4
	ldr	r3, [r3]
	ldr	r1, .L153+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-60]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L106
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L106:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L108
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L108:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L109
	bl	getpid
	str	r0, [fp, #-52]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L110
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L110:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L111
	bl	getpid
	str	r0, [fp, #-44]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L112
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L112:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L113
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	setpgid
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L114
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L114:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L115
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L116
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L116:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L117
	ldr	r2, .L153+20
	ldr	r3, [fp, #-52]
	str	r3, [r2]
	ldr	r1, .L153+24
	mov	r0, #10
	bl	signal
	ldr	r1, .L153+24
	mov	r0, #15
	bl	signal
	nop
.L118:
	ldr	r3, .L153+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	amount_of_lines
	mov	r3, r0
	cmp	r3, #6
	bne	.L118
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	fseek
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L119
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L119:
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L153+28
	ldr	r0, [fp, #-60]
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L120
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L120:
	bl	pause
	b	.L120
.L117:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-36]
	bl	setpgid
	ldr	r1, .L153+32
	mov	r0, #12
	bl	signal
	ldr	r1, .L153+32
	mov	r0, #15
	bl	signal
	nop
.L121:
	ldr	r3, .L153+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	amount_of_lines
	mov	r3, r0
	cmp	r3, #2
	bne	.L121
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	fseek
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L122
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L122:
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L153+28
	ldr	r0, [fp, #-60]
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L123
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L123:
	bl	pause
	b	.L123
.L115:
	bl	getpid
	str	r0, [fp, #-32]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L124
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L124:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L125
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-28]
	bl	setpgid
	ldr	r1, .L153+36
	mov	r0, #12
	bl	signal
	ldr	r1, .L153+36
	mov	r0, #15
	bl	signal
	nop
.L126:
	ldr	r3, .L153+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	amount_of_lines
	mov	r3, r0
	cmp	r3, #3
	bne	.L126
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	fseek
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L127
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L127:
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L153+28
	ldr	r0, [fp, #-60]
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L128
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L128:
	bl	pause
	b	.L128
.L125:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L129
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L129:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L130
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L131
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L131:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L132
	ldr	r1, .L153+40
	mov	r0, #10
	bl	signal
	ldr	r1, .L153+40
	mov	r0, #15
	bl	signal
	nop
.L133:
	ldr	r3, .L153+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	amount_of_lines
	mov	r3, r0
	cmp	r3, #5
	bne	.L133
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	fseek
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L134
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L134:
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L153+28
	ldr	r0, [fp, #-60]
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L135
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L135:
	bl	pause
	b	.L135
.L132:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-24]
	bl	setpgid
	ldr	r2, .L153+20
	ldr	r3, [fp, #-32]
	str	r3, [r2]
	ldr	r1, .L153+44
	mov	r0, #12
	bl	signal
	ldr	r1, .L153+44
	mov	r0, #15
	bl	signal
	nop
.L136:
	ldr	r3, .L153+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	amount_of_lines
	mov	r3, r0
	cmp	r3, #4
	bne	.L136
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	fseek
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L137
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L137:
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L153+28
	ldr	r0, [fp, #-60]
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L138
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L138:
	bl	pause
	b	.L138
.L130:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	setpgid
	ldr	r1, .L153+48
	mov	r0, #12
	bl	signal
	ldr	r1, .L153+48
	mov	r0, #15
	bl	signal
	nop
.L139:
	ldr	r3, .L153+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	amount_of_lines
	mov	r3, r0
	cmp	r3, #1
	bne	.L139
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	fseek
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L140
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L140:
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L153+28
	ldr	r0, [fp, #-60]
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L141
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L141:
	bl	pause
	b	.L141
.L113:
	ldr	r1, [fp, #-44]
	mov	r0, #0
	bl	setpgid
	ldr	r1, .L153+52
	mov	r0, #12
	bl	signal
	ldr	r1, .L153+52
	mov	r0, #15
	bl	signal
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	fseek
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L142
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L142:
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L153+28
	ldr	r0, [fp, #-60]
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L143
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L143:
	bl	pause
	b	.L143
.L111:
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-56]
	bl	setpgid
	ldr	r2, .L153+20
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r1, .L153+56
	mov	r0, #12
	bl	signal
.L146:
	ldr	r3, .L153+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	amount_of_lines
	mov	r3, r0
	cmp	r3, #7
	beq	.L152
	b	.L146
.L152:
	nop
	mov	r0, #10
	bl	sleep
	mov	r2, #0
	mov	r1, #12
	mov	r0, #1
	bl	send_to
.L147:
	bl	pause
	b	.L147
.L109:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	waitpid
	ldr	r0, [fp, #-60]
	bl	fclose
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L148
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L148:
	ldr	r3, .L153+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	remove
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L149
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L149:
	ldr	r3, .L153+60
	ldr	r3, [r3]
	mov	r0, r3
	bl	remove
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L150
	ldr	r3, .L153+12
	ldr	r4, [r3]
	ldr	r3, .L153
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L153+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L107
.L150:
	mov	r3, #0
.L107:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L154:
	.align	2
.L153:
	.word	prog
	.word	TMP_PID_LIST
	.word	.LC6
	.word	stderr
	.word	.LC4
	.word	send_to_pid
	.word	ps8_sig_handler
	.word	.LC21
	.word	ps4_sig_handler
	.word	ps5_sig_handler
	.word	ps7_sig_handler
	.word	ps6_sig_handler
	.word	ps3_sig_handler
	.word	ps2_sig_handler
	.word	ps1_sig_handler
	.word	TMP_SIG
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
