	.file	"811505.c"
	.intel_syntax noprefix
	.text
	.globl	randValue
	.type	randValue, @function
randValue:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	log@PLT
	movq	rax, xmm0
	movq	xmm0, QWORD PTR .LC2[rip]
	movq	xmm3, rax
	xorpd	xmm3, xmm0
	movapd	xmm0, xmm3
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	randValue, .-randValue
	.section	.rodata
	.align 8
.LC7:
	.string	"Mean of %d random numbers (expected %f) = %f\n"
	.align 8
.LC9:
	.string	"Variance of %d random numbers (expected %f) = %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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3952
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8040[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8032[rbp], xmm0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -8044[rbp], 0
	jmp	.L4
.L5:
	mov	eax, 0
	call	randValue
	movq	rax, xmm0
	mov	QWORD PTR -8024[rbp], rax
	mov	eax, DWORD PTR -8044[rbp]
	movsd	xmm0, QWORD PTR -8024[rbp]
	movsd	QWORD PTR -8016[rbp+rax*8], xmm0
	movsd	xmm0, QWORD PTR -8040[rbp]
	addsd	xmm0, QWORD PTR -8024[rbp]
	movsd	QWORD PTR -8040[rbp], xmm0
	movsd	xmm0, QWORD PTR -8024[rbp]
	mulsd	xmm0, xmm0
	movsd	xmm1, QWORD PTR -8032[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8032[rbp], xmm0
	add	DWORD PTR -8044[rbp], 1
.L4:
	cmp	DWORD PTR -8044[rbp], 999
	jbe	.L5
	movsd	xmm0, QWORD PTR -8040[rbp]
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8040[rbp], xmm0
	movsd	xmm0, QWORD PTR -8032[rbp]
	movsd	xmm2, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR -8040[rbp]
	movapd	xmm2, xmm0
	mulsd	xmm2, xmm0
	subsd	xmm1, xmm2
	movapd	xmm0, xmm1
	movsd	QWORD PTR -8032[rbp], xmm0
	movsd	xmm0, QWORD PTR -8040[rbp]
	mov	rax, QWORD PTR .LC6[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	esi, 1000
	lea	rdi, .LC7[rip]
	mov	eax, 2
	call	printf@PLT
	movsd	xmm0, QWORD PTR -8032[rbp]
	mov	rax, QWORD PTR .LC8[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	esi, 1000
	lea	rdi, .LC9[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-4194304
	.long	1105199103
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 16
.LC2:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.align 8
.LC3:
	.long	0
	.long	1079164928
	.align 8
.LC5:
	.long	0
	.long	1083129856
	.align 8
.LC6:
	.long	-1259857073
	.long	1066094209
	.align 8
.LC8:
	.long	2074564648
	.long	1059540283
	.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	"811505.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.align	2
	.global	randValue
	.syntax unified
	.arm
	.fpu softvfp
	.type	randValue, %function
randValue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L3
	ldr	r3, .L3+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L3+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	eor	r5, r3, #-2147483648
	mov	r2, #0
	ldr	r3, .L3+12
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	pop	{r4, r5, fp, pc}
.L4:
	.align	2
.L3:
	.word	-4194304
	.word	1105199103
	.word	1072693248
	.word	1079164928
	.size	randValue, .-randValue
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Mean of %d random numbers (expected %f) = %f\012\000"
	.align	2
.LC1:
	.ascii	"Variance of %d random numbers (expected %f) = %f\012"
	.ascii	"\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 = 8040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #8000
	sub	sp, sp, #52
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3940]
	b	.L6
.L7:
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r4, r3
	bl	randValue
	stm	r4, {r0-r1}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3940]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #3904
	sub	r3, r3, #8
	sub	r2, fp, #8000
	sub	r2, r2, #20
	sub	r2, r2, #16
	ldmia	r2, {r0-r1}
	stm	r3, {r0-r1}
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r4, r3
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, r3
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	ldmia	r1, {r2-r3}
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r4, r3
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	ip, r3
	mov	r2, r0
	mov	r3, r1
	ldmdb	ip, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stmdb	r4, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3940]
	add	r3, r3, #1
	str	r3, [r2, #-3940]
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-3940]
	cmp	r3, #1000
	bcc	.L7
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r4, r3
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L10+4
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L10+4
	ldmdb	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, r3
	ldmia	r1, {r2-r3}
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r6, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	stmdb	r6, {r2-r3}
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	mov	r1, #1000
	ldr	r0, .L10+16
	bl	printf
	sub	r3, fp, #8000
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, .L10+20
	ldr	r3, .L10+24
	mov	r1, #1000
	ldr	r0, .L10+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	1083129856
	.word	-1259857073
	.word	1066094209
	.word	.LC0
	.word	2074564648
	.word	1059540283
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
