	.file	"109741.c"
	.intel_syntax noprefix
	.text
	.globl	pids
	.bss
	.align 8
	.type	pids, @object
	.size	pids, 8
pids:
	.zero	8
	.globl	num_lines
	.align 4
	.type	num_lines, @object
	.size	num_lines, 4
num_lines:
	.zero	4
	.globl	status
	.align 4
	.type	status, @object
	.size	status, 4
status:
	.zero	4
	.globl	states
	.align 8
	.type	states, @object
	.size	states, 8
states:
	.zero	8
	.globl	next
	.align 4
	.type	next, @object
	.size	next, 4
next:
	.zero	4
	.globl	last
	.align 4
	.type	last, @object
	.size	last, 4
last:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Parent process: %d - Sending signal: %d to child process: %d\n"
	.text
	.globl	send_sig
	.type	send_sig, @function
send_sig:
.LFB6:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	ebx, DWORD PTR [rax]
	call	getpid@PLT
	mov	esi, eax
	mov	eax, DWORD PTR -48[rbp]
	mov	ecx, ebx
	mov	edx, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -48[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L3
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	send_sig, .-send_sig
	.section	.rodata
.LC1:
	.string	"Inside handler..."
.LC2:
	.string	"Process %d exited\n"
.LC3:
	.string	"-----------------------"
.LC4:
	.string	"Stopping proc %d...\n"
.LC5:
	.string	"Starting proc %d...\n"
	.text
	.globl	sig_handler
	.type	sig_handler, @function
sig_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, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR last[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, 11
	lea	rsi, status[rip]
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR status[rip]
	and	eax, 127
	test	eax, eax
	jne	.L5
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR last[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR states[rip]
	mov	eax, DWORD PTR last[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L5:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR last[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR next[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR last[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, 19
	mov	edi, eax
	call	kill@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR next[rip]
	add	eax, 1
	mov	DWORD PTR next[rip], eax
	mov	eax, DWORD PTR next[rip]
	mov	ecx, DWORD PTR num_lines[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR next[rip], eax
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR num_lines[rip]
	cmp	DWORD PTR -4[rbp], eax
	je	.L9
.L6:
	mov	rdx, QWORD PTR states[rip]
	mov	eax, DWORD PTR next[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L8
	jmp	.L7
.L9:
	nop
.L7:
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR next[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR next[rip]
	mov	DWORD PTR last[rip], eax
	mov	eax, DWORD PTR next[rip]
	add	eax, 1
	mov	DWORD PTR next[rip], eax
	mov	eax, DWORD PTR next[rip]
	mov	ecx, DWORD PTR num_lines[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR next[rip], eax
	mov	edi, 2
	call	alarm@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sig_handler, .-sig_handler
	.section	.rodata
.LC6:
	.string	"r"
.LC7:
	.string	" \n"
.LC8:
	.string	"ERROR: "
.LC9:
	.string	"Inside main..."
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 416
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -344[rbp], rax
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	DWORD PTR -396[rbp], 0
	mov	DWORD PTR -400[rbp], 0
	lea	rax, -304[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -304[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rdx, -176[rbp]
	lea	rax, -304[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	jmp	.L11
.L12:
	cmp	BYTE PTR -413[rbp], 10
	jne	.L11
	mov	eax, DWORD PTR num_lines[rip]
	add	eax, 1
	mov	DWORD PTR num_lines[rip], eax
.L11:
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -413[rbp], al
	cmp	BYTE PTR -413[rbp], -1
	jne	.L12
	mov	rax, QWORD PTR -344[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR num_lines[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR pids[rip], rax
	mov	eax, DWORD PTR num_lines[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR states[rip], rax
	mov	DWORD PTR -408[rbp], 0
	jmp	.L13
.L14:
	mov	rdx, QWORD PTR states[rip]
	mov	eax, DWORD PTR -408[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -408[rbp], 1
.L13:
	mov	eax, DWORD PTR num_lines[rip]
	cmp	DWORD PTR -408[rbp], eax
	jl	.L14
	jmp	.L15
.L27:
	mov	DWORD PTR -404[rbp], 0
	mov	DWORD PTR -392[rbp], 0
	jmp	.L16
.L18:
	mov	rdx, QWORD PTR -376[rbp]
	mov	eax, DWORD PTR -392[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L17
	add	DWORD PTR -404[rbp], 1
.L17:
	add	DWORD PTR -392[rbp], 1
.L16:
	mov	eax, DWORD PTR -392[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L18
	add	DWORD PTR -404[rbp], 1
	mov	eax, DWORD PTR -404[rbp]
	add	eax, 1
	mov	rdx, rsp
	mov	r12, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -328[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	QWORD PTR -448[rbp], rdx
	mov	QWORD PTR -440[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L19:
	cmp	rsp, rdx
	je	.L20
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L19
.L20:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L21
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L21:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -320[rbp], rax
	mov	DWORD PTR -400[rbp], 0
	mov	rax, QWORD PTR -376[rbp]
	mov	QWORD PTR -352[rbp], rax
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -320[rbp]
	mov	edx, DWORD PTR -400[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -312[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	QWORD PTR -352[rbp], 0
	add	DWORD PTR -400[rbp], 1
.L22:
	lea	rdx, -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -312[rbp], rax
	cmp	QWORD PTR -312[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR -320[rbp]
	mov	edx, DWORD PTR -404[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 2
	lea	rbx, [rdx+rax]
	call	fork@PLT
	mov	DWORD PTR [rbx], eax
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L24
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	rax, QWORD PTR pids[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR states[rip]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	rdx, QWORD PTR pids[rip]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L25
	lea	rdx, -412[rbp]
	lea	rax, -304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sigwait@PLT
	mov	rax, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -380[rbp], -1
	jne	.L26
	mov	rax, QWORD PTR pids[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR states[rip]
	mov	rdi, rax
	call	free@PLT
.L26:
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L25:
	add	DWORD PTR -396[rbp], 1
	mov	rsp, r12
.L15:
	mov	rdx, QWORD PTR -344[rbp]
	lea	rcx, -368[rbp]
	lea	rax, -376[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], -1
	jne	.L27
	mov	ecx, DWORD PTR num_lines[rip]
	mov	rax, QWORD PTR pids[rip]
	mov	edx, 10
	mov	esi, ecx
	mov	rdi, rax
	call	send_sig
	mov	ecx, DWORD PTR num_lines[rip]
	mov	rax, QWORD PTR pids[rip]
	mov	edx, 19
	mov	esi, ecx
	mov	rdi, rax
	call	send_sig
	lea	rsi, sig_handler[rip]
	mov	edi, 14
	call	signal@PLT
	mov	edi, 2
	call	alarm@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L33:
	mov	DWORD PTR -388[rbp], 1
	mov	DWORD PTR -384[rbp], 0
	jmp	.L28
.L30:
	mov	rdx, QWORD PTR states[rip]
	mov	eax, DWORD PTR -384[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L29
	mov	DWORD PTR -388[rbp], 0
.L29:
	add	DWORD PTR -384[rbp], 1
.L28:
	mov	eax, DWORD PTR num_lines[rip]
	cmp	DWORD PTR -384[rbp], eax
	jl	.L30
	cmp	DWORD PTR -388[rbp], 1
	je	.L37
	jmp	.L33
.L37:
	nop
	mov	rax, QWORD PTR pids[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR states[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"109741.c"
	.text
	.comm	pids,4,4
	.global	num_lines
	.bss
	.align	2
	.type	num_lines, %object
	.size	num_lines, 4
num_lines:
	.space	4
	.comm	status,4,4
	.comm	states,4,4
	.global	next
	.align	2
	.type	next, %object
	.size	next, 4
next:
	.space	4
	.global	last
	.align	2
	.type	last, %object
	.size	last, 4
last:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Parent process: %d - Sending signal: %d to child pr"
	.ascii	"ocess: %d\012\000"
	.text
	.align	2
	.global	send_sig
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_sig, %function
send_sig:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	bl	getpid
	mov	r1, r0
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	kill
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	send_sig, .-send_sig
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Inside handler...\000"
	.align	2
.LC2:
	.ascii	"Process %d exited\012\000"
	.align	2
.LC3:
	.ascii	"-----------------------\000"
	.align	2
.LC4:
	.ascii	"Stopping proc %d...\012\000"
	.align	2
.LC5:
	.ascii	"Starting proc %d...\012\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_handler, %function
sig_handler:
	@ 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, .L12
	bl	puts
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #11
	ldr	r1, .L12+12
	mov	r0, r3
	bl	waitpid
	ldr	r3, .L12+12
	ldr	r3, [r3]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+16
	bl	printf
	ldr	r3, .L12+20
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L7:
	ldr	r0, .L12+24
	bl	puts
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+28
	bl	printf
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+36
	bl	printf
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #19
	mov	r0, r3
	bl	kill
	ldr	r0, .L12+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L10:
	ldr	r3, .L12+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12+32
	str	r3, [r2]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	ldr	r2, .L12+40
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L12+32
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L12+40
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L11
.L8:
	ldr	r3, .L12+20
	ldr	r2, [r3]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L10
	b	.L9
.L11:
	nop
.L9:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #18
	mov	r0, r3
	bl	kill
	ldr	r3, .L12+32
	ldr	r3, [r3]
	ldr	r2, .L12+8
	str	r3, [r2]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12+32
	str	r3, [r2]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	ldr	r2, .L12+40
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L12+32
	str	r2, [r3]
	mov	r0, #2
	bl	alarm
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	pids
	.word	last
	.word	status
	.word	.LC2
	.word	states
	.word	.LC3
	.word	.LC4
	.word	next
	.word	.LC5
	.word	num_lines
	.size	sig_handler, .-sig_handler
	.section	.rodata
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L19+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-276]
	mov	r3, #0
	str	r3, [fp, #-284]
	mov	r3, #0
	str	r3, [fp, #-280]
	mov	r3, #0
	str	r3, [fp, #-272]
	mov	r3, #0
	str	r3, [fp, #-268]
	sub	r3, fp, #264
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #264
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	sub	r2, fp, #136
	sub	r3, fp, #264
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	b	.L15
.L18:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+8
	str	r3, [r2]
.L15:
	ldr	r0, [fp, #-276]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-285]
	ldrb	r3, [fp, #-285]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L15
	b	.L18
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	.LC6
	.word	num_lines
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
