	.file	"849837.c"
	.intel_syntax noprefix
	.text
	.globl	v_add_naive
	.type	v_add_naive, @function
v_add_naive:
.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 -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 9999999
	jle	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	v_add_naive, .-v_add_naive
	.globl	v_add_optimized_adjacent
	.type	v_add_optimized_adjacent, @function
v_add_optimized_adjacent:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	call	omp_get_num_threads@PLT
	mov	DWORD PTR -8[rbp], eax
	call	omp_get_thread_num@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -12[rbp], eax
.L5:
	cmp	DWORD PTR -12[rbp], 9999999
	jle	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	v_add_optimized_adjacent, .-v_add_optimized_adjacent
	.globl	v_add_optimized_chunks
	.type	v_add_optimized_chunks, @function
v_add_optimized_chunks:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	call	omp_get_num_threads@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, 10000000
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	call	omp_get_thread_num@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -24[rbp], 1
.L8:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jl	.L9
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -20[rbp], 1
.L10:
	cmp	DWORD PTR -20[rbp], 9999999
	jle	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	v_add_optimized_chunks, .-v_add_optimized_chunks
	.globl	gen_array
	.type	gen_array, @function
gen_array:
.LFB9:
	.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	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rdx+rax]
	call	drand48@PLT
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -28[rbp], 1
.L13:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	gen_array, .-gen_array
	.globl	verify
	.type	verify, @function
verify:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	edi, 80000000
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 80000000
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -24[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -24[rbp], 1
.L17:
	cmp	DWORD PTR -24[rbp], 9999999
	jle	.L18
	mov	DWORD PTR -20[rbp], 0
	jmp	.L19
.L23:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	ucomisd	xmm0, xmm1
	jp	.L24
	comisd	xmm0, xmm1
	je	.L25
.L24:
	mov	eax, 0
	jmp	.L22
.L25:
	add	DWORD PTR -20[rbp], 1
.L19:
	cmp	DWORD PTR -20[rbp], 9999999
	jle	.L23
	mov	eax, 1
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	verify, .-verify
	.section	.rodata
	.align 8
.LC0:
	.string	"v_add optimized adjacent does not match oracle"
	.align 8
.LC1:
	.string	"Optimized adjacent: %d thread(s) took %f seconds\n"
	.align 8
.LC2:
	.string	"v_add optimized chunks does not match oracle"
	.align 8
.LC3:
	.string	"Optimized chunks: %d thread(s) took %f seconds\n"
	.align 8
.LC4:
	.string	"Naive: %d thread(s) took %f seconds\n"
	.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, 80
	mov	edi, 10000000
	call	gen_array
	mov	QWORD PTR -40[rbp], rax
	mov	edi, 10000000
	call	gen_array
	mov	QWORD PTR -32[rbp], rax
	mov	edi, 80000000
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	call	omp_get_max_threads@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -68[rbp], 1
	jmp	.L27
.L32:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	omp_set_num_threads@PLT
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -64[rbp], 0
	jmp	.L28
.L29:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	v_add_optimized_adjacent
	add	DWORD PTR -64[rbp], 1
.L28:
	cmp	DWORD PTR -64[rbp], 99
	jle	.L29
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, v_add_optimized_adjacent[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	verify
	test	eax, eax
	jne	.L30
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L31
.L30:
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -68[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -68[rbp], 1
.L27:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L32
	mov	DWORD PTR -60[rbp], 1
	jmp	.L33
.L37:
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	omp_set_num_threads@PLT
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L34
.L35:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	v_add_optimized_chunks
	add	DWORD PTR -56[rbp], 1
.L34:
	cmp	DWORD PTR -56[rbp], 99
	jle	.L35
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, v_add_optimized_chunks[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	verify
	test	eax, eax
	jne	.L36
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L31
.L36:
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -60[rbp], 1
.L33:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L37
	mov	DWORD PTR -52[rbp], 1
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	omp_set_num_threads@PLT
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L39
.L40:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	v_add_naive
	add	DWORD PTR -48[rbp], 1
.L39:
	cmp	DWORD PTR -48[rbp], 99
	jle	.L40
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -52[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -52[rbp], 1
.L38:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L41
	mov	eax, 0
.L31:
	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	"849837.c"
	.text
	.global	__aeabi_dadd
	.align	2
	.global	v_add_naive
	.syntax unified
	.arm
	.fpu softvfp
	.type	v_add_naive, %function
v_add_naive:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-16]
	lsl	ip, ip, #3
	ldr	lr, [fp, #-32]
	add	r4, lr, ip
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, .L4
	cmp	r3, r2
	ble	.L3
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	9999999
	.size	v_add_naive, .-v_add_naive
	.align	2
	.global	v_add_optimized_adjacent
	.syntax unified
	.arm
	.fpu softvfp
	.type	v_add_optimized_adjacent, %function
v_add_optimized_adjacent:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	bl	omp_get_num_threads
	str	r0, [fp, #-20]
	bl	omp_get_thread_num
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-24]
	lsl	ip, ip, #3
	ldr	lr, [fp, #-40]
	add	r4, lr, ip
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L7:
	ldr	r3, [fp, #-24]
	ldr	r2, .L9
	cmp	r3, r2
	ble	.L8
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	9999999
	.size	v_add_optimized_adjacent, .-v_add_optimized_adjacent
	.global	__aeabi_idiv
	.align	2
	.global	v_add_optimized_chunks
	.syntax unified
	.arm
	.fpu softvfp
	.type	v_add_optimized_chunks, %function
v_add_optimized_chunks:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	bl	omp_get_num_threads
	str	r0, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L16
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-24]
	bl	omp_get_thread_num
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-36]
	b	.L12
.L13:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-36]
	lsl	ip, ip, #3
	ldr	lr, [fp, #-48]
	add	r4, lr, ip
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	mul	r3, r2, r3
	str	r3, [fp, #-32]
	b	.L14
.L15:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-32]
	lsl	ip, ip, #3
	ldr	lr, [fp, #-48]
	add	r4, lr, ip
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L14:
	ldr	r3, [fp, #-32]
	ldr	r2, .L16+4
	cmp	r3, r2
	ble	.L15
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	10000000
	.word	9999999
	.size	v_add_optimized_chunks, .-v_add_optimized_chunks
	.align	2
	.global	gen_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen_array, %function
gen_array:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L19
.L20:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	bl	drand48
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L19:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	gen_array, .-gen_array
	.global	__aeabi_dcmpeq
	.align	2
	.global	verify
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify, %function
verify:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r0, .L32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	blx	r3
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L23
.L24:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-28]
	lsl	ip, ip, #3
	ldr	lr, [fp, #-16]
	add	r4, lr, ip
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r3, [fp, #-28]
	ldr	r2, .L32+4
	cmp	r3, r2
	ble	.L24
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L25
.L29:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	mov	r3, #0
	b	.L28
.L31:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L25:
	ldr	r3, [fp, #-24]
	ldr	r2, .L32+4
	cmp	r3, r2
	ble	.L29
	mov	r3, #1
.L28:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	80000000
	.word	9999999
	.size	verify, .-verify
	.global	__aeabi_dsub
	.section	.rodata
	.align	2
.LC0:
	.ascii	"v_add optimized adjacent does not match oracle\000"
	.align	2
.LC1:
	.ascii	"Optimized adjacent: %d thread(s) took %f seconds\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"v_add optimized chunks does not match oracle\000"
	.align	2
.LC3:
	.ascii	"Optimized chunks: %d thread(s) took %f seconds\012\000"
	.align	2
.LC4:
	.ascii	"Naive: %d thread(s) took %f seconds\012\000"
	.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
	ldr	r0, .L50
	bl	gen_array
	str	r0, [fp, #-36]
	ldr	r0, .L50
	bl	gen_array
	str	r0, [fp, #-32]
	ldr	r0, .L50+4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	bl	omp_get_max_threads
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L35
.L40:
	ldr	r0, [fp, #-60]
	bl	omp_set_num_threads
	bl	omp_get_wtime
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L36
.L37:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	v_add_optimized_adjacent
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L36:
	ldr	r3, [fp, #-56]
	cmp	r3, #99
	ble	.L37
	bl	omp_get_wtime
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r2, .L50+8
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	verify
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L50+12
	bl	puts
	mvn	r3, #0
	b	.L39
.L38:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-60]
	ldr	r0, .L50+16
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L35:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L40
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L41
.L45:
	ldr	r0, [fp, #-52]
	bl	omp_set_num_threads
	bl	omp_get_wtime
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L42
.L43:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	v_add_optimized_chunks
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L42:
	ldr	r3, [fp, #-48]
	cmp	r3, #99
	ble	.L43
	bl	omp_get_wtime
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r2, .L50+20
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	verify
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r0, .L50+24
	bl	puts
	mvn	r3, #0
	b	.L39
.L44:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-52]
	ldr	r0, .L50+28
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L41:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L45
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L46
.L49:
	ldr	r0, [fp, #-44]
	bl	omp_set_num_threads
	bl	omp_get_wtime
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L47
.L48:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	v_add_naive
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L47:
	ldr	r3, [fp, #-40]
	cmp	r3, #99
	ble	.L48
	bl	omp_get_wtime
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-44]
	ldr	r0, .L50+32
	bl	printf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L46:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L49
	mov	r3, #0
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	10000000
	.word	80000000
	.word	v_add_optimized_adjacent
	.word	.LC0
	.word	.LC1
	.word	v_add_optimized_chunks
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
