	.file	"100640.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	line_number
	.align 4
	.type	line_number, @object
	.size	line_number, 4
line_number:
	.zero	4
	.globl	total_lines
	.align 4
	.type	total_lines, @object
	.size	total_lines, 4
total_lines:
	.zero	4
	.globl	file
	.align 8
	.type	file, @object
	.size	file, 8
file:
	.zero	8
	.globl	filename
	.align 8
	.type	filename, @object
	.size	filename, 8
filename:
	.zero	8
	.globl	child
	.align 8
	.type	child, @object
	.size	child, 8
child:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"USAGE : ./load_balancer.c <filename> <N>"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"r"
	.text
	.globl	get_lines_in_file
	.type	get_lines_in_file, @function
get_lines_in_file:
.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, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -568[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	DWORD PTR -548[rbp], 0
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -544[rbp], rax
	add	DWORD PTR -548[rbp], 1
.L3:
	cmp	QWORD PTR -544[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -548[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_lines_in_file, .-get_lines_in_file
	.globl	skip_n_lines_in_file
	.type	skip_n_lines_in_file, @function
skip_n_lines_in_file:
.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -532[rbp], 0
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -560[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	add	DWORD PTR -532[rbp], 1
.L8:
	mov	eax, DWORD PTR -532[rbp]
	cmp	eax, DWORD PTR -548[rbp]
	jl	.L9
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	skip_n_lines_in_file, .-skip_n_lines_in_file
	.section	.rodata
.LC2:
	.string	"\nFile reading complete."
	.align 8
.LC3:
	.string	"Killing child processes in reverse order."
.LC4:
	.string	"Killing parent process."
	.text
	.globl	release_memory
	.type	release_memory, @function
release_memory:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L12
.L13:
	mov	rdx, QWORD PTR child[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	sub	DWORD PTR -4[rbp], 1
.L12:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L13
	mov	rax, QWORD PTR child[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR child[rip], 0
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	release_memory, .-release_memory
	.section	.rodata
.LC5:
	.string	"[%d] read : %s\n"
	.text
	.globl	handle_rtsig
	.type	handle_rtsig, @function
handle_rtsig:
.LFB10:
	.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, 584
	.cfi_offset 3, -24
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	QWORD PTR -584[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR filename[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR file[rip], rax
	mov	rdx, QWORD PTR file[rip]
	mov	rax, QWORD PTR -576[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	rsi, rdx
	mov	edi, eax
	call	skip_n_lines_in_file
	mov	rdx, QWORD PTR file[rip]
	lea	rax, -544[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -552[rbp], rax
	mov	edi, 1
	call	sleep@PLT
	cmp	QWORD PTR -552[rbp], 0
	je	.L15
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -544[rbp+rax], 0
	call	getpid@PLT
	mov	ecx, eax
	lea	rax, -544[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L15:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -576[rbp]
	mov	ebx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	get_lines_in_file
	sub	eax, 1
	cmp	ebx, eax
	jne	.L18
	call	getppid@PLT
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
.L18:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	handle_rtsig, .-handle_rtsig
	.section	.rodata
.LC6:
	.string	"2 arguments expected. Got %d\n"
	.align 8
.LC7:
	.string	"\nLOG: Creating child processes."
.LC8:
	.string	"ERROR: fork() failed."
	.align 8
.LC9:
	.string	"LOG: Child processes created : "
.LC10:
	.string	"    child pid : %d\n"
.LC11:
	.string	"\nLOG: Assigning reads:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -196[rbp], 2
	jg	.L20
	mov	eax, DWORD PTR -196[rbp]
	sub	eax, 1
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	call	usage
.L20:
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR filename[rip], rax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR n[rip], eax
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	get_lines_in_file
	mov	DWORD PTR line_number[rip], eax
	mov	eax, DWORD PTR n[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR child[rip], rax
	lea	rsi, release_memory[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rax, handle_rtsig[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 4
	call	__libc_current_sigrtmin@PLT
	lea	ecx, 1[rax]
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	sigaction@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -180[rbp], 0
	jmp	.L21
.L27:
	call	fork@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], -1
	je	.L22
	cmp	DWORD PTR -184[rbp], 0
	je	.L23
	jmp	.L24
.L22:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	call	pause@PLT
.L24:
	mov	rdx, QWORD PTR child[rip]
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -184[rbp]
	mov	DWORD PTR [rdx], eax
	cmp	DWORD PTR -184[rbp], 0
	je	.L37
	add	DWORD PTR -180[rbp], 1
.L21:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -180[rbp], eax
	jl	.L27
	jmp	.L26
.L37:
	nop
.L26:
	cmp	DWORD PTR -184[rbp], 0
	jne	.L28
.L29:
	call	pause@PLT
	jmp	.L29
.L28:
	cmp	DWORD PTR -184[rbp], 0
	jle	.L30
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -176[rbp], 0
	jmp	.L31
.L32:
	mov	rdx, QWORD PTR child[rip]
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -176[rbp], 1
.L31:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -176[rbp], eax
	jl	.L32
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -172[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -172[rbp]
	mov	DWORD PTR -168[rbp], eax
	call	__libc_current_sigrtmin@PLT
	lea	ecx, 1[rax]
	mov	rdi, QWORD PTR child[rip]
	mov	esi, DWORD PTR n[rip]
	mov	eax, DWORD PTR -172[rbp]
	cdq
	idiv	esi
	mov	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rdi
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -168[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	sigqueue@PLT
	add	DWORD PTR -172[rbp], 1
.L33:
	mov	eax, DWORD PTR line_number[rip]
	cmp	DWORD PTR -172[rbp], eax
	jle	.L34
	call	pause@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L30:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"100640.c"
	.text
	.comm	n,4,4
	.comm	line_number,4,4
	.comm	total_lines,4,4
	.comm	file,4,4
	.comm	filename,4,4
	.comm	child,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"USAGE : ./load_balancer.c <filename> <N>\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_lines_in_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_lines_in_file, %function
get_lines_in_file:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L9+4
	ldr	r0, [fp, #-536]
	bl	fopen
	str	r0, [fp, #-524]
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-532]
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L5
.L6:
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
.L5:
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-524]
	bl	fclose
	ldr	r3, [fp, #-528]
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC1
	.size	get_lines_in_file, .-get_lines_in_file
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	skip_n_lines_in_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	skip_n_lines_in_file, %function
skip_n_lines_in_file:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	str	r1, [fp, #-532]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L12
.L13:
	sub	r3, fp, #520
	ldr	r2, [fp, #-532]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L12:
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-528]
	cmp	r2, r3
	blt	.L13
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.size	skip_n_lines_in_file, .-skip_n_lines_in_file
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012File reading complete.\000"
	.align	2
.LC5:
	.ascii	"Killing child processes in reverse order.\000"
	.align	2
.LC6:
	.ascii	"Killing parent process.\000"
	.text
	.align	2
	.global	release_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	release_memory, %function
release_memory:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #1
	bl	sleep
	ldr	r0, .L20
	bl	puts
	ldr	r0, .L20+4
	bl	puts
	ldr	r0, .L20+8
	bl	puts
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L20+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r3, .L20+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L19
	ldr	r3, .L20+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L20+20
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #0
	bl	exit
.L21:
	.align	2
.L20:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stdout
	.word	n
	.word	child
	.size	release_memory, .-release_memory
	.section	.rodata
	.align	2
.LC7:
	.ascii	"[%d] read : %s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_rtsig
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_rtsig, %function
handle_rtsig:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #540
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	str	r2, [fp, #-544]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r1, .L27+8
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L27+12
	str	r3, [r2]
	ldr	r3, [fp, #-540]
	ldr	r3, [r3, #20]
	ldr	r2, .L27+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	skip_n_lines_in_file
	ldr	r3, .L27+12
	ldr	r2, [r3]
	sub	r3, fp, #528
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-532]
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #528
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-516]
	bl	getpid
	mov	r1, r0
	sub	r3, fp, #528
	mov	r2, r3
	ldr	r0, .L27+16
	bl	printf
	ldr	r3, .L27+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L23:
	ldr	r3, .L27+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-540]
	ldr	r4, [r3, #20]
	ldr	r3, .L27+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	get_lines_in_file
	mov	r3, r0
	sub	r3, r3, #1
	cmp	r4, r3
	bne	.L26
	bl	getppid
	mov	r3, r0
	mov	r1, #10
	mov	r0, r3
	bl	kill
.L26:
	nop
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC8
	.word	filename
	.word	.LC1
	.word	file
	.word	.LC7
	.word	stdout
	.size	handle_rtsig, .-handle_rtsig
	.section	.rodata
	.align	2
.LC9:
	.ascii	"2 arguments expected. Got %d\012\000"
	.align	2
.LC10:
	.ascii	"\012LOG: Creating child processes.\000"
	.align	2
.LC11:
	.ascii	"ERROR: fork() failed.\000"
	.align	2
.LC12:
	.ascii	"LOG: Child processes created : \000"
	.align	2
.LC13:
	.ascii	"    child pid : %d\012\000"
	.align	2
.LC14:
	.ascii	"\012LOG: Assigning reads:\000"
	.global	__aeabi_idivmod
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #180
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-184]
	cmp	r3, #2
	bgt	.L30
	ldr	r3, [fp, #-184]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L48+4
	bl	printf
	bl	usage
.L30:
	ldr	r3, [fp, #-188]
	ldr	r3, [r3, #4]
	ldr	r2, .L48+8
	str	r3, [r2]
	ldr	r3, [fp, #-188]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L48+12
	str	r3, [r2]
	ldr	r3, .L48+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	get_lines_in_file
	mov	r3, r0
	ldr	r2, .L48+16
	str	r3, [r2]
	ldr	r3, .L48+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L48+20
	str	r2, [r3]
	ldr	r1, .L48+24
	mov	r0, #10
	bl	signal
	sub	r3, fp, #156
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L48+28
	str	r3, [fp, #-156]
	mov	r3, #4
	str	r3, [fp, #-24]
	bl	__libc_current_sigrtmin
	mov	r3, r0
	add	r3, r3, #1
	sub	r1, fp, #156
	mov	r2, #0
	mov	r0, r3
	bl	sigaction
	ldr	r0, .L48+32
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-168]
	b	.L31
.L37:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-172]
	cmn	r3, #1
	beq	.L32
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	beq	.L33
	b	.L34
.L32:
	ldr	r0, .L48+36
	bl	puts
	mov	r0, #1
	bl	exit
.L33:
	bl	pause
.L34:
	ldr	r3, .L48+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-168]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-172]
	str	r2, [r3]
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-168]
	add	r3, r3, #1
	str	r3, [fp, #-168]
.L31:
	ldr	r3, .L48+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-168]
	cmp	r2, r3
	blt	.L37
	b	.L36
.L47:
	nop
.L36:
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	bne	.L38
.L39:
	bl	pause
	b	.L39
.L38:
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	ble	.L40
	ldr	r0, .L48+40
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L41
.L42:
	ldr	r3, .L48+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L48+44
	bl	printf
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L41:
	ldr	r3, .L48+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-164]
	cmp	r2, r3
	blt	.L42
	ldr	r0, .L48+48
	bl	puts
	ldr	r3, .L48+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L43
.L44:
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-176]
	ldr	r3, .L48+20
	ldr	r4, [r3]
	ldr	r3, .L48+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-160]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r4, [r3]
	bl	__libc_current_sigrtmin
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-176]
	mov	r1, r3
	mov	r0, r4
	bl	sigqueue
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L43:
	ldr	r3, .L48+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-160]
	cmp	r2, r3
	ble	.L44
	bl	pause
	ldr	r3, .L48+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L40:
	mov	r3, #0
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC15
	.word	.LC9
	.word	filename
	.word	n
	.word	line_number
	.word	child
	.word	release_memory
	.word	handle_rtsig
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
