	.file	"89199193.c"
	.intel_syntax noprefix
	.text
	.globl	tpBegin2
	.bss
	.align 16
	.type	tpBegin2, @object
	.size	tpBegin2, 16
tpBegin2:
	.zero	16
	.globl	tpEnd2
	.align 16
	.type	tpEnd2, @object
	.size	tpEnd2, 16
tpEnd2:
	.zero	16
	.text
	.globl	compute
	.type	compute, @function
compute:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rsi
	mov	r8, rdi
	mov	rsi, r8
	mov	rdi, r9
	mov	rdi, rax
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	sub	rax, rdx
	imul	rax, rax, 1000
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	sub	rax, rdx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	compute, .-compute
	.globl	array
	.bss
	.align 32
	.type	array, @object
	.size	array, 6400
array:
	.zero	6400
	.text
	.globl	expensive_function
	.type	expensive_function, @function
expensive_function:
.LFB1:
	.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	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, array[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, array[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -8[rbp], 1
.L4:
	cmp	DWORD PTR -8[rbp], 99999999
	jle	.L5
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	expensive_function, .-expensive_function
	.section	.rodata
	.align 8
.LC1:
	.string	"array[first_element]: %d\t\t array[bad_element]: %d\t\t array[good_element]: %d\n\n\n"
	.align 8
.LC2:
	.string	"Time take with false sharing      : %f ms\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -228[rbp], 0
	mov	DWORD PTR -224[rbp], 8
	mov	DWORD PTR -220[rbp], 99
	mov	DWORD PTR -232[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -232[rbp]
	imul	eax, DWORD PTR -224[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	mov	DWORD PTR -208[rbp+rax*4], edx
	add	DWORD PTR -232[rbp], 1
.L7:
	cmp	DWORD PTR -232[rbp], 15
	jle	.L8
	lea	rsi, tpBegin2[rip]
	mov	edi, 0
	call	clock_gettime@PLT
	mov	DWORD PTR -232[rbp], 0
	jmp	.L9
.L10:
	lea	rdx, -208[rbp]
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, expensive_function[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -232[rbp], 1
.L9:
	cmp	DWORD PTR -232[rbp], 15
	jle	.L10
	mov	DWORD PTR -232[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -232[rbp], 1
.L11:
	cmp	DWORD PTR -232[rbp], 15
	jle	.L12
	lea	rsi, tpEnd2[rip]
	mov	edi, 0
	call	clock_gettime@PLT
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, array[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, array[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	lea	rax, array[rip]
	mov	eax, DWORD PTR [rsi+rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR tpEnd2[rip]
	mov	rdx, QWORD PTR tpEnd2[rip+8]
	mov	rdi, QWORD PTR tpBegin2[rip]
	mov	rsi, QWORD PTR tpBegin2[rip+8]
	mov	rcx, rdx
	mov	rdx, rax
	call	compute
	movq	rax, xmm0
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-1598689907
	.long	1051772663
	.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	"89199193.c"
	.text
	.comm	tpBegin2,8,4
	.comm	tpEnd2,8,4
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
	.global	compute
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute, %function
compute:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	sub	ip, fp, #20
	stm	ip, {r0, r1}
	sub	r1, fp, #28
	stm	r1, {r2, r3}
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L3
	ldr	r3, .L3+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	-1598689907
	.word	1051772663
	.size	compute, .-compute
	.comm	array,6400,4
	.align	2
	.global	expensive_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	expensive_function, %function
expensive_function:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r2, .L8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L8
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	ldr	r2, .L8+4
	cmp	r3, r2
	ble	.L7
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	array
	.word	99999999
	.size	expensive_function, .-expensive_function
	.section	.rodata
	.align	2
.LC0:
	.ascii	"array[first_element]: %d\011\011 array[bad_element]"
	.ascii	": %d\011\011 array[good_element]: %d\012\012\012\000"
	.align	2
.LC1:
	.ascii	"Time take with false sharing      : %f ms\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-160]
	mov	r3, #8
	str	r3, [fp, #-156]
	mov	r3, #99
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L11
.L12:
	ldr	r3, [fp, #-164]
	ldr	r2, [fp, #-156]
	mul	r2, r3, r2
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-132]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L11:
	ldr	r3, [fp, #-164]
	cmp	r3, #15
	ble	.L12
	ldr	r1, .L19+4
	mov	r0, #0
	bl	clock_gettime
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L13
.L14:
	sub	r2, fp, #72
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r2, fp, #136
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L19+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L13:
	ldr	r3, [fp, #-164]
	cmp	r3, #15
	ble	.L14
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L15
.L16:
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L15:
	ldr	r3, [fp, #-164]
	cmp	r3, #15
	ble	.L16
	ldr	r1, .L19+12
	mov	r0, #0
	bl	clock_gettime
	ldr	r2, .L19+16
	ldr	r3, [fp, #-160]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L19+16
	ldr	r3, [fp, #-156]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, .L19+16
	ldr	r3, [fp, #-152]
	ldr	r3, [r0, r3, lsl #2]
	ldr	r0, .L19+20
	bl	printf
	ldr	r3, .L19+12
	ldr	r1, .L19+4
	ldm	r3, {r2, r3}
	ldm	r1, {r0, r1}
	bl	compute
	str	r0, [fp, #-148]
	str	r1, [fp, #-144]
	sub	r3, fp, #148
	ldmia	r3, {r2-r3}
	ldr	r0, .L19+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	tpBegin2
	.word	expensive_function
	.word	tpEnd2
	.word	array
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
