	.file	"1231470.c"
	.intel_syntax noprefix
	.text
	.globl	piTotal
	.bss
	.align 32
	.type	piTotal, @object
	.size	piTotal, 8192
piTotal:
	.zero	8192
	.globl	t1
	.align 8
	.type	t1, @object
	.size	t1, 8
t1:
	.zero	8
	.globl	t2
	.align 8
	.type	t2, @object
	.size	t2, 8
t2:
	.zero	8
	.globl	responseTime
	.align 4
	.type	responseTime, @object
	.size	responseTime, 4
responseTime:
	.zero	4
	.globl	period
	.align 4
	.type	period, @object
	.size	period, 4
period:
	.zero	4
	.text
	.type	get_timestamp, @function
get_timestamp:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax, 1000000
	add	rax, rdx
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_timestamp, .-get_timestamp
	.globl	calculatePi
	.type	calculatePi, @function
calculatePi:
.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -12[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, piTotal[rip]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rdx+rax], xmm0
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, piTotal[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	add	eax, 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm0, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, piTotal[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, piTotal[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	add	eax, 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm1, xmm2
	subsd	xmm0, xmm1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, piTotal[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L5
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	calculatePi, .-calculatePi
	.section	.rodata
.LC5:
	.string	"\npi: %2.12f \n"
.LC6:
	.string	"Response time: %f\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
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR period[rip], xmm0
	mov	eax, 0
	call	get_timestamp
	mov	QWORD PTR t1[rip], rax
	mov	DWORD PTR -12316[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -12316[rbp]
	cdqe
	mov	edx, DWORD PTR -12316[rbp]
	mov	DWORD PTR -12304[rbp+rax*4], edx
	lea	rdx, -12304[rbp]
	mov	eax, DWORD PTR -12316[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -12316[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, calculatePi[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -12316[rbp], 1
.L8:
	cmp	DWORD PTR -12316[rbp], 1023
	jle	.L9
	mov	DWORD PTR -12316[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -12316[rbp]
	cdqe
	mov	rax, QWORD PTR -8208[rbp+rax*8]
	lea	rdx, -12312[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -12316[rbp], 1
.L10:
	cmp	DWORD PTR -12316[rbp], 1023
	jle	.L11
	mov	eax, 0
	call	get_timestamp
	mov	QWORD PTR t2[rip], rax
	mov	rax, QWORD PTR t2[rip]
	mov	rdx, QWORD PTR t1[rip]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	DWORD PTR responseTime[rip], xmm0
	mov	DWORD PTR -12316[rbp], 1
	jmp	.L12
.L13:
	movsd	xmm1, QWORD PTR piTotal[rip]
	mov	eax, DWORD PTR -12316[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, piTotal[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	addsd	xmm0, xmm1
	movsd	QWORD PTR piTotal[rip], xmm0
	add	DWORD PTR -12316[rbp], 1
.L12:
	cmp	DWORD PTR -12316[rbp], 1023
	jle	.L13
	mov	rax, QWORD PTR piTotal[rip]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	movss	xmm1, DWORD PTR responseTime[rip]
	movss	xmm0, DWORD PTR period[rip]
	mulss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093520741
	.align 8
.LC1:
	.long	0
	.long	1093520739
	.align 8
.LC3:
	.long	0
	.long	1074790400
	.align 4
.LC4:
	.long	897988541
	.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	"1231470.c"
	.text
	.comm	piTotal,8192,8
	.comm	t1,8,8
	.comm	t2,8,8
	.comm	responseTime,4,4
	.comm	period,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_timestamp, %function
get_timestamp:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-36]
	mov	r8, r3
	asr	r9, r8, #31
	ldr	r3, [fp, #-40]
	mov	r4, r3
	asr	r5, r4, #31
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	subs	r2, r2, r4
	sbc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #9
	orr	r1, r1, r2, lsr #23
	lsl	r0, r2, #9
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	subs	r0, r0, r2
	sbc	r1, r1, r3
	adds	r6, r0, r4
	adc	r7, r1, r5
	adds	r3, r8, r6
	str	r3, [fp, #-52]
	adc	r3, r9, r7
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r1, .L4
	ldr	r0, [r1]
	ldr	r1, [fp, #-32]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	get_timestamp, .-get_timestamp
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.align	2
	.global	calculatePi
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculatePi, %function
calculatePi:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L9
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L9+4
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r2, .L9+8
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
.L7:
	ldr	r2, .L9+8
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L9+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L9+8
	ldr	r1, [fp, #-20]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, .L9+8
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L9+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L9+8
	ldr	r1, [fp, #-20]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	1093520741
	.word	1093520739
	.word	piTotal
	.word	1074790400
	.size	calculatePi, .-calculatePi
	.global	__aeabi_l2f
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012pi: %2.12f \012\000"
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.align	2
.LC2:
	.ascii	"Response time: %f\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8192
	sub	sp, sp, #16
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L20+4
	ldr	r2, .L20+8
	str	r2, [r3]	@ float
	bl	get_timestamp
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L20+12
	stm	r1, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L12
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-8]
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-8]
	lsl	r2, r2, #2
	add	r0, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-8]
	lsl	r2, r2, #2
	add	r3, r3, r2
	ldr	r2, .L20+16
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #1024
	blt	.L13
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L14
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	pthread_join
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #1024
	blt	.L15
	bl	get_timestamp
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L20+20
	stm	r1, {r2-r3}
	ldr	r3, .L20+20
	ldmia	r3, {r0-r1}
	ldr	r3, .L20+12
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_l2f
	mov	r3, r0
	ldr	r2, .L20+24
	str	r3, [r2]	@ float
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-8]
	b	.L16
.L17:
	ldr	r3, .L20+28
	ldmia	r3, {r0-r1}
	ldr	r2, .L20+28
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L20+28
	stm	r1, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L16:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #1024
	blt	.L17
	ldr	r3, .L20+28
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+32
	bl	printf
	ldr	r3, .L20+24
	ldr	r3, [r3]	@ float
	ldr	r2, .L20+4
	ldr	r2, [r2]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L20+36
	bl	printf
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	period
	.word	897988541
	.word	t1
	.word	calculatePi
	.word	t2
	.word	responseTime
	.word	piTotal
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
