	.file	"1256.c"
	.intel_syntax noprefix
	.text
	.globl	init_array
	.type	init_array, @function
init_array:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
	add	QWORD PTR -8[rbp], 1
.L2:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_array, .-init_array
	.globl	sum_array
	.type	sum_array, @function
sum_array:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	QWORD PTR -8[rbp], rax
	add	QWORD PTR -24[rbp], 1
.L6:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jb	.L7
	add	QWORD PTR -16[rbp], 1
.L5:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L8
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sum_array, .-sum_array
	.section	.rodata
.LC0:
	.string	"Array sum is correct (%ld)\n"
	.align 8
.LC1:
	.string	"Array sum is NOT correct (%ld), should have been: %ld\n"
	.text
	.globl	check_sum
	.type	check_sum, @function
check_sum:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	imul	rax, QWORD PTR -24[rbp]
	shr	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L11
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L11:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_sum, .-check_sum
	.section	.rodata
	.align 8
.LC2:
	.string	"---> thread %ld - %ldx[%ld -> %ld] - total : %ld\n"
	.text
	.globl	thread_func
	.type	thread_func, @function
thread_func:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sum_array
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdi, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	r9, rsi
	mov	r8, rdi
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE9:
	.size	thread_func, .-thread_func
	.section	.rodata
	.align 8
.LC3:
	.string	"usage: %s [array size] [times] [nbOfThreads]\n"
.LC4:
	.string	"Array size: %lu\n"
.LC5:
	.string	"Sum times: %lu\n"
	.align 8
.LC6:
	.string	"Could not allocate Array... bye bye!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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, 168
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	cmp	DWORD PTR -164[rbp], 4
	je	.L16
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, rcx
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	mov	r14, rcx
	mov	r15d, 0
	imul	rdx, r15, 384
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 384
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	r12, rcx
	mov	r13d, 0
	imul	rdx, r13, 384
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 384
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L18:
	cmp	rsp, rdx
	je	.L19
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L18
.L19:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L20
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L20:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L21
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L17
.L21:
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	init_array
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, 0
	div	QWORD PTR -112[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -148[rbp], 0
	jmp	.L22
.L25:
	mov	rcx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	imul	rax, QWORD PTR -80[rbp]
	mov	rdx, rax
	mov	rsi, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 8
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	rdx, QWORD PTR -112[rbp]
	sub	rdx, 1
	cmp	rax, rdx
	je	.L23
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	cdqe
	imul	rax, QWORD PTR -80[rbp]
	mov	rdx, rax
	jmp	.L24
.L23:
	mov	rdx, QWORD PTR -128[rbp]
.L24:
	mov	rsi, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 16
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 24
	mov	QWORD PTR [rax], rdx
	mov	rcx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 32
	mov	QWORD PTR [rax], 0
	mov	rcx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -148[rbp], 1
.L22:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	cmp	QWORD PTR -112[rbp], rax
	ja	.L25
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rsp
	mov	r12, rdx
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L26:
	cmp	rsp, rdx
	je	.L27
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L26
.L27:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L28
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L28:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -152[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, QWORD PTR -96[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thread_func[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -152[rbp], 1
.L29:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	cmp	QWORD PTR -112[rbp], rax
	ja	.L30
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -156[rbp], 0
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -156[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	rdx, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
	add	DWORD PTR -156[rbp], 1
.L31:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	cmp	QWORD PTR -112[rbp], rax
	ja	.L32
	mov	rdx, QWORD PTR -136[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	check_sum
	mov	rsp, r12
	mov	rsp, rbx
	mov	eax, 0
	jmp	.L33
.L17:
	mov	rsp, rbx
.L33:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"1256.c"
	.text
	.align	2
	.global	init_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_array, %function
init_array:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, fp}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r1, r2, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	stm	r1, {r4-r5}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
.L2:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L3
	nop
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, fp}
	bx	lr
	.size	init_array, .-init_array
	.align	2
	.global	sum_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum_array, %function
sum_array:
	@ args = 16, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #44
	str	r0, [fp, #-56]
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L5
.L8:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L6
.L7:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-52]
	str	r7, [fp, #-48]
.L6:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L7
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
.L5:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L8
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	sum_array, .-sum_array
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Array sum is correct (%ld)\012\000"
	.align	2
.LC1:
	.ascii	"Array sum is NOT correct (%ld), should have been: %"
	.ascii	"ld\012\000"
	.text
	.align	2
	.global	check_sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_sum, %function
check_sum:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, [fp, #-28]
	mul	r2, r5, r3
	ldr	r3, [fp, #-24]
	mul	r3, r4, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	umull	r0, r1, r2, r4
	add	r3, r3, r1
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #1
	orr	r2, r2, r1, lsl #31
	lsr	r3, r1, #1
	ldr	r1, [fp, #-32]
	mul	r0, r2, r1
	ldr	r1, [fp, #-36]
	mul	r1, r3, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-36]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L11
	ldmib	fp, {r2-r3}
	ldr	r0, .L14
	bl	printf
	b	.L13
.L11:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldmib	fp, {r2-r3}
	ldr	r0, .L14+4
	bl	printf
.L13:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	.LC1
	.size	check_sum, .-check_sum
	.section	.rodata
	.align	2
.LC2:
	.ascii	"---> thread %ld - %ldx[%ld -> %ld] - total : %ld\012"
	.ascii	"\000"
	.text
	.align	2
	.global	thread_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_func, %function
thread_func:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	ip, [r3]
	ldr	r3, [fp, #-32]
	add	r7, r3, #8
	ldmia	r7, {r6-r7}
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-32]
	add	r1, r1, #40
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	mov	r0, ip
	bl	sum_array
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-32]
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r3, [fp, #-32]
	add	r9, r3, #24
	ldmia	r9, {r8-r9}
	ldr	r3, [fp, #-32]
	add	r1, r3, #40
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-32]
	add	r7, r3, #8
	ldmia	r7, {r6-r7}
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	ldr	r3, [fp, #-32]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, r8
	mov	r3, r9
	ldr	r0, .L17
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r3, r2
	mov	r0, r3
	bl	pthread_exit
.L18:
	.align	2
.L17:
	.word	.LC2
	.size	thread_func, .-thread_func
	.section	.rodata
	.align	2
.LC3:
	.ascii	"usage: %s [array size] [times] [nbOfThreads]\012\000"
	.align	2
.LC4:
	.ascii	"Array size: %lu\012\000"
	.align	2
.LC5:
	.ascii	"Sum times: %lu\012\000"
	.align	2
.LC6:
	.ascii	"Could not allocate Array... bye bye!\000"
	.global	__aeabi_uldivmod
	.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 = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #116
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r3, sp
	mov	r10, r3
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-128]
	cmp	r3, #4
	beq	.L20
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+4
	bl	printf
	mov	r3, #0
	b	.L21
.L20:
	ldr	r3, [fp, #-132]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-132]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-132]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r0, .L33+8
	bl	printf
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, .L33+12
	bl	printf
	sub	r7, fp, #60
	ldmia	r7, {r6-r7}
	mov	r3, r6
	sub	r3, r3, #1
	str	r3, [fp, #-104]
	mov	r3, r6
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	ip, r2, r2
	str	ip, [fp, #-140]
	adc	r3, r3, r3
	str	r3, [fp, #-136]
	sub	r3, fp, #140
	ldmia	r3, {r2-r3}
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #7
	orr	r1, r1, r2, lsr #25
	lsl	r0, r2, #7
	mov	r2, r0
	mov	r3, r1
	mov	r2, r6
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r3, r6
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r2, r8
	mov	r3, r9
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #7
	orr	r1, r1, r2, lsr #25
	lsl	r0, r2, #7
	mov	r2, r0
	mov	r3, r1
	mov	r2, r6
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L33+16
	bl	puts
	mov	r3, #0
	b	.L21
.L22:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-96]
	bl	init_array
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L23
.L26:
	ldr	r1, [fp, #-100]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-96]
	str	r2, [r3]
	ldr	r3, [fp, #-108]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-52]
	mul	r0, r3, r1
	ldr	r1, [fp, #-48]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-52]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	ldr	ip, [fp, #-100]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, ip, r3
	add	r3, r3, #8
	stm	r3, {r0-r1}
	ldr	r3, [fp, #-108]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	cmp	r1, r5
	cmpeq	r0, r4
	beq	.L24
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-52]
	mul	r0, r3, r1
	ldr	r1, [fp, #-48]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-52]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	b	.L25
.L24:
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
.L25:
	ldr	ip, [fp, #-100]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, ip, r3
	add	r3, r3, #16
	stm	r3, {r0-r1}
	ldr	r3, [fp, #-108]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	ip, [fp, #-100]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, ip, r3
	add	r3, r3, #24
	stm	r3, {r0-r1}
	ldr	r1, [fp, #-100]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r1, r3, #32
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-100]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r1, r3, #40
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L23:
	ldr	r3, [fp, #-108]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L26
	mov	r0, #10
	bl	putchar
	sub	r5, fp, #60
	ldmia	r5, {r4-r5}
	mov	r3, sp
	mov	r6, r3
	mov	r3, r4
	sub	r3, r3, #1
	str	r3, [fp, #-92]
	mov	r3, r4
	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, r4
	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, r4
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L27
.L28:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-88]
	add	r0, r2, r3
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r2, .L33+20
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L27:
	ldr	r3, [fp, #-112]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L28
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L29
.L30:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-116]
	ldr	r3, [r3, r2, lsl #2]
	sub	r2, fp, #120
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L29:
	ldr	r3, [fp, #-116]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L30
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	check_sum
	mov	sp, r6
	mov	sp, r10
	mov	r3, #0
	b	.L31
.L21:
	mov	sp, r10
.L31:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC7
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	thread_func
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
