	.file	"427937.c"
	.intel_syntax noprefix
	.text
	.globl	start_index
	.bss
	.align 8
	.type	start_index, @object
	.size	start_index, 8
start_index:
	.zero	8
	.globl	length
	.align 4
	.type	length, @object
	.size	length, 4
length:
	.zero	4
	.globl	section_size
	.align 4
	.type	section_size, @object
	.size	section_size, 4
section_size:
	.zero	4
	.globl	data
	.align 8
	.type	data, @object
	.size	data, 8
data:
	.zero	8
	.globl	target
	.align 4
	.type	target, @object
	.size	target, 4
target:
	.zero	4
	.globl	results
	.align 32
	.type	results, @object
	.size	results, 400
results:
	.zero	400
	.globl	num_results
	.align 4
	.type	num_results, @object
	.size	num_results, 4
num_results:
	.zero	4
	.globl	find_number
	.align 32
	.type	find_number, @object
	.size	find_number, 40
find_number:
	.zero	40
	.globl	semaphore
	.align 32
	.type	semaphore, @object
	.size	semaphore, 32
semaphore:
	.zero	32
	.globl	threads
	.align 8
	.type	threads, @object
	.size	threads, 8
threads:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"entered in starting idx with %d...\n"
	.align 8
.LC1:
	.string	"target found at thread id: %d at index: %d, target is : %d\n"
.LC2:
	.string	"target not found at idx: %d\n"
	.text
	.globl	DoSearch
	.type	DoSearch, @function
DoSearch:
.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
	lea	rdi, semaphore[rip]
	call	sem_wait@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR section_size[rip]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L2
.L6:
	mov	rdx, QWORD PTR data[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR target[rip]
	cmp	edx, eax
	jne	.L3
	mov	rdx, QWORD PTR data[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ebx, DWORD PTR [rax]
	call	pthread_self@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, ebx
	mov	edx, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR num_results[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR num_results[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, results[rip]
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	add	DWORD PTR -28[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jge	.L5
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L6
.L5:
	lea	rdi, semaphore[rip]
	call	sem_post@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	DoSearch, .-DoSearch
	.section	.rodata
	.align 8
.LC3:
	.string	"given number of thread cannot evenly divide the input array, sections size is: %d\n"
.LC4:
	.string	"section size is: %d\n"
.LC5:
	.string	"Start creating threads..."
.LC6:
	.string	"start thread %d\n"
.LC7:
	.string	"Threads have joined"
	.text
	.globl	MakeThreads
	.type	MakeThreads, @function
MakeThreads:
.LFB7:
	.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	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -40[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L9:
	cmp	rsp, rdx
	je	.L10
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L9
.L10:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L11
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L11:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR threads[rip], rax
	mov	eax, DWORD PTR length[rip]
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR length[rip]
	cdq
	idiv	DWORD PTR -52[rbp]
	add	eax, 1
	mov	DWORD PTR section_size[rip], eax
	mov	eax, DWORD PTR section_size[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR length[rip]
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	DWORD PTR section_size[rip], eax
.L13:
	mov	eax, DWORD PTR section_size[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR start_index[rip]
	mov	eax, DWORD PTR section_size[rip]
	imul	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, DoSearch[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -44[rbp], 1
.L14:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L15
	mov	DWORD PTR -44[rbp], 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -44[rbp], 1
.L16:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L17
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	MakeThreads, .-MakeThreads
	.section	.rodata
	.align 8
.LC8:
	.string	"Please enter the command with: <filename> <number to search for> <number of threads> <num lines>"
.LC9:
	.string	"r"
.LC10:
	.string	"our target is %d\n"
.LC11:
	.string	"number of threads is: %d\n"
.LC12:
	.string	"length is %d\n"
.LC13:
	.string	"Error opening file"
.LC14:
	.string	"%d\n"
.LC15:
	.string	"input array:\n["
.LC16:
	.string	"%d, "
	.align 8
.LC17:
	.string	"line number %d has our target: %d \n"
	.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	r13
	push	r12
	push	rbx
	sub	rsp, 184
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -180[rbp], 4
	jg	.L20
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	edx, 1
	mov	esi, 0
	lea	rdi, semaphore[rip]
	call	sem_init@PLT
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR target[rip], eax
	mov	eax, DWORD PTR target[rip]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -172[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR length[rip], eax
	mov	eax, DWORD PTR length[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR length[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -160[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -208[rbp], rdx
	mov	QWORD PTR -200[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -224[rbp], rdx
	mov	QWORD PTR -216[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L21:
	cmp	rsp, rdx
	je	.L22
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L21
.L22:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L23
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L23:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -152[rbp], rax
	mov	eax, DWORD PTR length[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -144[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L24:
	cmp	rsp, rdx
	je	.L25
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L24
.L25:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L26
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L26:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR data[rip], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR start_index[rip], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L27
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L28
.L27:
	mov	DWORD PTR -176[rbp], 0
	jmp	.L29
.L31:
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -128[rbp]
	mov	esi, 60
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L30
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -176[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR -176[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -176[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -176[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	add	DWORD PTR -176[rbp], 1
.L29:
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -176[rbp], eax
	jl	.L31
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	MakeThreads
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -176[rbp], 0
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -176[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -176[rbp], 1
.L32:
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -176[rbp], eax
	jl	.L33
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -176[rbp], 0
	jmp	.L34
.L35:
	mov	edx, DWORD PTR target[rip]
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, results[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -176[rbp], 1
.L34:
	mov	eax, DWORD PTR num_results[rip]
	cmp	DWORD PTR -176[rbp], eax
	jl	.L35
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L28:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	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	"427937.c"
	.text
	.comm	start_index,4,4
	.comm	length,4,4
	.comm	section_size,4,4
	.comm	data,4,4
	.comm	target,4,4
	.comm	results,400,4
	.global	num_results
	.bss
	.align	2
	.type	num_results, %object
	.size	num_results, 4
num_results:
	.space	4
	.comm	find_number,24,4
	.comm	semaphore,16,4
	.comm	threads,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"entered in starting idx with %d...\012\000"
	.align	2
.LC1:
	.ascii	"target found at thread id: %d at index: %d, target "
	.ascii	"is : %d\012\000"
	.align	2
.LC2:
	.ascii	"target not found at idx: %d\012\000"
	.text
	.align	2
	.global	DoSearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoSearch, %function
DoSearch:
	@ 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, #-24]
	ldr	r0, .L8
	bl	sem_wait
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L8+8
	bl	printf
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L2
.L6:
	ldr	r3, .L8+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	bl	pthread_self
	mov	r1, r0
	ldr	r3, .L8+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r0, .L8+20
	bl	printf
	ldr	r3, .L8+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L8+24
	str	r2, [r1]
	ldr	r1, .L8+28
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	b	.L4
.L3:
	ldr	r1, [fp, #-16]
	ldr	r0, .L8+32
	bl	printf
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L5
	ldr	r3, .L8+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L6
.L5:
	ldr	r0, .L8
	bl	sem_post
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	semaphore
	.word	section_size
	.word	.LC0
	.word	data
	.word	target
	.word	.LC1
	.word	num_results
	.word	results
	.word	.LC2
	.word	length
	.size	DoSearch, .-DoSearch
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC3:
	.ascii	"given number of thread cannot evenly divide the inp"
	.ascii	"ut array, sections size is: %d\012\000"
	.align	2
.LC4:
	.ascii	"section size is: %d\012\000"
	.align	2
.LC5:
	.ascii	"Start creating threads...\000"
	.align	2
.LC6:
	.ascii	"start thread %d\012\000"
	.align	2
.LC7:
	.ascii	"Threads have joined\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MakeThreads
	.syntax unified
	.arm
	.fpu softvfp
	.type	MakeThreads, %function
MakeThreads:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	ip, [fp, #-32]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r2, .L18+4
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, .L18+12
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+16
	bl	printf
	b	.L12
.L11:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+12
	str	r2, [r3]
.L12:
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+20
	bl	printf
	ldr	r0, .L18+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L13
.L14:
	ldr	r1, [fp, #-28]
	ldr	r0, .L18+28
	bl	printf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r0, r2, r3
	ldr	r3, .L18+32
	ldr	r2, [r3]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L18+36
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L13:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L14
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L15
.L16:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L15:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L16
	ldr	r0, .L18+40
	bl	puts
	mov	sp, r4
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC8
	.word	threads
	.word	length
	.word	section_size
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	start_index
	.word	DoSearch
	.word	.LC7
	.size	MakeThreads, .-MakeThreads
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Please enter the command with: <filename> <number t"
	.ascii	"o search for> <number of threads> <num lines>\000"
	.align	2
.LC10:
	.ascii	"r\000"
	.align	2
.LC11:
	.ascii	"our target is %d\012\000"
	.align	2
.LC12:
	.ascii	"number of threads is: %d\012\000"
	.align	2
.LC13:
	.ascii	"length is %d\012\000"
	.align	2
.LC14:
	.ascii	"Error opening file\000"
	.align	2
.LC15:
	.ascii	"%d\012\000"
	.align	2
.LC16:
	.ascii	"input array:\012[\000"
	.align	2
.LC17:
	.ascii	"%d, \000"
	.align	2
.LC18:
	.ascii	"line number %d has our target: %d \012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-112]
	cmp	r3, #4
	bgt	.L21
	ldr	r0, .L33+4
	bl	puts
	mov	r0, #1
	bl	exit
.L21:
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L33+8
	bl	sem_init
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L33+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L33+16
	str	r3, [r2]
	ldr	r3, .L33+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+20
	bl	printf
	ldr	r3, [fp, #-116]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-96]
	ldr	r1, [fp, #-96]
	ldr	r0, .L33+24
	bl	printf
	ldr	r3, [fp, #-116]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L33+28
	str	r3, [r2]
	ldr	r3, .L33+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+32
	bl	printf
	ldr	r3, .L33+28
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-92]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-88]
	ldr	r3, .L33+28
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-84]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-80]
	ldr	r2, .L33+36
	ldr	r3, [fp, #-88]
	str	r3, [r2]
	ldr	r2, .L33+40
	ldr	r3, [fp, #-80]
	str	r3, [r2]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L33+44
	bl	perror
	mvn	r3, #0
	b	.L23
.L22:
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L24
.L26:
	sub	r3, fp, #76
	ldr	r2, [fp, #-100]
	mov	r1, #60
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	sub	r3, fp, #76
	mov	r0, r3
	bl	atoi
	mov	r1, r0
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-104]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-104]
	ldr	r1, [fp, #-104]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-104]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L33+48
	bl	printf
.L25:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L24:
	ldr	r3, .L33+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L26
	ldr	r0, [fp, #-96]
	bl	MakeThreads
	ldr	r0, .L33+52
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L27
.L28:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-104]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L33+56
	bl	printf
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L27:
	ldr	r3, .L33+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L28
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L29
.L30:
	ldr	r2, .L33+60
	ldr	r3, [fp, #-104]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L33+16
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L33+64
	bl	printf
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L29:
	ldr	r3, .L33+68
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L30
	ldr	r0, [fp, #-100]
	bl	fclose
	mov	r3, #0
.L23:
	mov	sp, r4
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC19
	.word	.LC9
	.word	semaphore
	.word	.LC10
	.word	target
	.word	.LC11
	.word	.LC12
	.word	length
	.word	.LC13
	.word	data
	.word	start_index
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	results
	.word	.LC18
	.word	num_results
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
