	.file	"72011897.c"
	.intel_syntax noprefix
	.text
	.globl	arr
	.bss
	.align 8
	.type	arr, @object
	.size	arr, 8
arr:
	.zero	8
	.globl	size
	.align 8
	.type	size, @object
	.size	size, 8
size:
	.zero	8
	.globl	x
	.align 8
	.type	x, @object
	.size	x, 8
x:
	.zero	8
	.globl	res
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.zero	8
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	id
	.data
	.align 4
	.type	id, @object
	.size	id, 4
id:
	.long	-1
	.section	.rodata
.LC0:
	.string	"Thread %d \n"
.LC1:
	.string	"T RES %ld\n"
	.text
	.globl	myThread
	.type	myThread, @function
myThread:
.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, 16
	mov	eax, DWORD PTR id[rip]
	add	eax, 1
	mov	DWORD PTR id[rip], eax
	mov	eax, DWORD PTR id[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR size[rip]
	mov	edx, DWORD PTR n[rip]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	edx, eax
	mov	eax, DWORD PTR id[rip]
	imul	eax, edx
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L5:
	mov	rdx, QWORD PTR arr[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR x[rip]
	cmp	rdx, rax
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
.L3:
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR id[rip]
	add	eax, 1
	movsx	rsi, eax
	mov	rax, QWORD PTR size[rip]
	mov	edx, DWORD PTR n[rip]
	movsx	rdi, edx
	cqo
	idiv	rdi
	imul	rax, rsi
	cmp	rcx, rax
	jge	.L4
	cmp	QWORD PTR -8[rbp], -1
	je	.L5
.L4:
	cmp	QWORD PTR -8[rbp], -1
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	myThread, .-myThread
	.section	.rodata
.LC2:
	.string	"Not Enough Argument"
.LC3:
	.string	"Start"
.LC4:
	.string	"END"
	.align 8
.LC6:
	.string	"Time that spend for search in %d Thread is %f \n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 3
	je	.L8
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L16
.L8:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR size[rip], rax
	mov	rax, QWORD PTR size[rip]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR arr[rip], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR x[rip], rax
	mov	QWORD PTR -80[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, [rax+rax]
	mov	rcx, QWORD PTR arr[rip]
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR [rax], rdx
	add	QWORD PTR -80[rbp], 1
.L10:
	mov	rax, QWORD PTR size[rip]
	cmp	QWORD PTR -80[rbp], rax
	jb	.L11
	mov	DWORD PTR n[rip], 4
	call	clock@PLT
	mov	QWORD PTR -72[rbp], rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -84[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	rdx, rax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, myThread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -84[rbp], 1
.L12:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L13
	mov	DWORD PTR -84[rbp], 0
	jmp	.L14
.L15:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -84[rbp], 1
.L14:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L15
	call	clock@PLT
	mov	QWORD PTR -64[rbp], rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, QWORD PTR -72[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	mov	eax, DWORD PTR n[rip]
	mov	rdx, QWORD PTR -56[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.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	"72011897.c"
	.text
	.comm	arr,4,4
	.comm	size,4,4
	.comm	x,4,4
	.comm	res,4,4
	.comm	n,4,4
	.global	id
	.data
	.align	2
	.type	id, %object
	.size	id, 4
id:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread %d \012\000"
	.global	__aeabi_idiv
	.align	2
.LC1:
	.ascii	"T RES %ld\012\000"
	.text
	.align	2
	.global	myThread
	.syntax unified
	.arm
	.fpu softvfp
	.type	myThread, %function
myThread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r3, .L7
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7
	str	r3, [r2]
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+4
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	ldr	r2, .L7+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L7
	ldr	r3, [r3]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L2
.L5:
	ldr	r3, .L7+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L7+20
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, .L7
	ldr	r3, [r3]
	add	r4, r3, #1
	ldr	r3, .L7+8
	ldr	r3, [r3]
	ldr	r2, .L7+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mul	r3, r4, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L4
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L5
.L4:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L6
	ldr	r1, [fp, #-20]
	ldr	r0, .L7+24
	bl	printf
.L6:
	mov	r0, #0
	bl	pthread_exit
.L8:
	.align	2
.L7:
	.word	id
	.word	.LC0
	.word	size
	.word	n
	.word	arr
	.word	x
	.word	.LC1
	.size	myThread, .-myThread
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Not Enough Argument\000"
	.align	2
.LC3:
	.ascii	"Start\000"
	.align	2
.LC4:
	.ascii	"END\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC5:
	.ascii	"Time that spend for search in %d Thread is %f \012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #3
	beq	.L10
	ldr	r0, .L20+4
	bl	puts
	mov	r3, #1
	b	.L18
.L10:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L20+8
	str	r3, [r2]
	ldr	r3, .L20+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L20+12
	str	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L20+16
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L12
.L13:
	ldr	r3, [fp, #-52]
	lsl	r1, r3, #1
	ldr	r3, .L20+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L12:
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	bcc	.L13
	ldr	r3, .L20+20
	mov	r2, #4
	str	r2, [r3]
	bl	clock
	str	r0, [fp, #-44]
	ldr	r0, .L20+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L14
.L15:
	sub	r2, fp, #24
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, .L20+28
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L14:
	ldr	r3, .L20+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L16
.L17:
	sub	r2, fp, #24
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L16:
	ldr	r3, .L20+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L17
	bl	clock
	str	r0, [fp, #-40]
	ldr	r0, .L20+32
	bl	printf
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L20+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, .L20+20
	ldr	r1, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+40
	bl	printf
	mov	r3, #0
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	.LC2
	.word	size
	.word	arr
	.word	x
	.word	n
	.word	.LC3
	.word	myThread
	.word	.LC4
	.word	1093567616
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
