	.file	"183921.c"
	.intel_syntax noprefix
	.text
	.globl	Io
	.bss
	.align 32
	.type	Io, @object
	.size	Io, 48
Io:
	.zero	48
	.globl	Europa
	.align 32
	.type	Europa, @object
	.size	Europa, 48
Europa:
	.zero	48
	.globl	Ganymede
	.align 32
	.type	Ganymede, @object
	.size	Ganymede, 48
Ganymede:
	.zero	48
	.globl	Callisto
	.align 32
	.type	Callisto, @object
	.size	Callisto, 48
Callisto:
	.zero	48
	.globl	ListOfPointers2Moons
	.section	.data.rel.local,"aw"
	.align 32
	.type	ListOfPointers2Moons, @object
	.size	ListOfPointers2Moons, 32
ListOfPointers2Moons:
	.quad	Io
	.quad	Europa
	.quad	Ganymede
	.quad	Callisto
	.globl	Moon_Counter
	.bss
	.align 4
	.type	Moon_Counter, @object
	.size	Moon_Counter, 4
Moon_Counter:
	.zero	4
	.globl	fp
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.text
	.globl	CalculatePotentialEnergy
	.type	CalculatePotentialEnergy, @function
CalculatePotentialEnergy:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L2
.L9:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L3
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR [rax]
	movsx	rsi, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	sub	rdx, rsi
	mov	QWORD PTR 24[rax], rdx
	jmp	.L4
.L3:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR [rax]
	movsx	rcx, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR 24[rax], rdx
.L4:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jg	.L5
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 4[rax]
	movsx	rsi, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	sub	rdx, rsi
	mov	QWORD PTR 24[rax], rdx
	jmp	.L6
.L5:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 4[rax]
	movsx	rcx, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR 24[rax], rdx
.L6:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jg	.L7
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 8[rax]
	movsx	rsi, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	sub	rdx, rsi
	mov	QWORD PTR 24[rax], rdx
	jmp	.L8
.L7:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 8[rax]
	movsx	rcx, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR 24[rax], rdx
.L8:
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L2:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L9
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	CalculatePotentialEnergy, .-CalculatePotentialEnergy
	.globl	CalculateKineticEnergy
	.type	CalculateKineticEnergy, @function
CalculateKineticEnergy:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L11
.L18:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	jns	.L12
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 12[rax]
	movsx	rsi, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	sub	rdx, rsi
	mov	QWORD PTR 32[rax], rdx
	jmp	.L13
.L12:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 12[rax]
	movsx	rcx, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR 32[rax], rdx
.L13:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jg	.L14
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 16[rax]
	movsx	rsi, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	sub	rdx, rsi
	mov	QWORD PTR 32[rax], rdx
	jmp	.L15
.L14:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 16[rax]
	movsx	rcx, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR 32[rax], rdx
.L15:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jg	.L16
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 20[rax]
	movsx	rsi, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	sub	rdx, rsi
	mov	QWORD PTR 32[rax], rdx
	jmp	.L17
.L16:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 20[rax]
	movsx	rcx, eax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR 32[rax], rdx
.L17:
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L11:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L18
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	CalculateKineticEnergy, .-CalculateKineticEnergy
	.globl	CalculateTotalEnergy
	.type	CalculateTotalEnergy, @function
CalculateTotalEnergy:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rsi, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rsi+rax]
	imul	rdx, rcx
	mov	QWORD PTR 40[rax], rdx
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L20:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L21
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	CalculateTotalEnergy, .-CalculateTotalEnergy
	.section	.rodata
	.align 8
.LC0:
	.string	"Apply Gravity for velx Failed with unknown error"
	.align 8
.LC1:
	.string	"Apply Gravity for vely Failed with unknown error"
	.align 8
.LC2:
	.string	"Apply Gravity for velz Failed with unknown error"
	.text
	.globl	ApplyGravity
	.type	ApplyGravity, @function
ApplyGravity:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L23
.L35:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L34:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	DWORD PTR -4[rbp], eax
	je	.L25
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L26
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L27
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 12[rax]
	add	edx, 1
	mov	DWORD PTR 12[rax], edx
	jmp	.L26
.L27:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L28
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 12[rax]
	sub	edx, 1
	mov	DWORD PTR 12[rax], edx
	jmp	.L26
.L28:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	je	.L29
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jge	.L30
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 16[rax]
	add	edx, 1
	mov	DWORD PTR 16[rax], edx
	jmp	.L29
.L30:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jle	.L31
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 16[rax]
	sub	edx, 1
	mov	DWORD PTR 16[rax], edx
	jmp	.L29
.L31:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	je	.L25
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jge	.L32
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 20[rax]
	add	edx, 1
	mov	DWORD PTR 20[rax], edx
	jmp	.L25
.L32:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jle	.L33
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 20[rax]
	sub	edx, 1
	mov	DWORD PTR 20[rax], edx
	jmp	.L25
.L33:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L25:
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L34
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L23:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L35
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ApplyGravity, .-ApplyGravity
	.globl	ApplyVelocity
	.type	ApplyVelocity, @function
ApplyVelocity:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L37
.L38:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	edx, [rsi+rcx]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, DWORD PTR 4[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR 16[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	edx, [rsi+rcx]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, DWORD PTR 8[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR 20[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	edx, [rsi+rcx]
	mov	DWORD PTR 8[rax], edx
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L37:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L38
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ApplyVelocity, .-ApplyVelocity
	.section	.rodata
.LC3:
	.string	"<x=%d, y=%d, z=%d>\n"
	.text
	.globl	ReadInputValues
	.type	ReadInputValues, @function
ReadInputValues:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L40
.L41:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rsi, 8[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rdi, rax
	mov	rax, QWORD PTR fp[rip]
	mov	r8, rsi
	mov	rcx, rdx
	mov	rdx, rdi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	DWORD PTR 12[rax], 0
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	DWORD PTR 16[rax], 0
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	DWORD PTR 20[rax], 0
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR 24[rax], 0
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR 32[rax], 0
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR 40[rax], 0
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L40:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L41
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ReadInputValues, .-ReadInputValues
	.section	.rodata
	.align 8
.LC4:
	.string	"pos=<x=%d, y=%d, z=%d>, vel=<x=%d, y=%d, z=%d>\n"
	.text
	.globl	PrintCurrentValues
	.type	PrintCurrentValues, @function
PrintCurrentValues:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L43
.L44:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, DWORD PTR 20[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r9d, DWORD PTR 16[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r8d, DWORD PTR 12[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdi, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdi+rax]
	mov	eax, DWORD PTR [rax]
	sub	rsp, 8
	push	rsi
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L43:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L44
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	PrintCurrentValues, .-PrintCurrentValues
	.section	.rodata
	.align 8
.LC5:
	.string	"pot:  %d + %d +  %d = %lld;   kin: %d +  %d + %d = %lld;   total: %lld * %lld = %lld\n"
	.text
	.globl	PrintCurrentEnergyValues
	.type	PrintCurrentEnergyValues, @function
PrintCurrentEnergyValues:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 8
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L46
.L47:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r11, QWORD PTR 40[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r10, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r9, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r8, QWORD PTR 32[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edi, DWORD PTR 20[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, DWORD PTR 16[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r13d, DWORD PTR 12[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r12, QWORD PTR 24[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rbx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rbx+rax]
	mov	eax, DWORD PTR [rax]
	push	r11
	push	r10
	push	r9
	push	r8
	push	rdi
	push	rsi
	mov	r9d, r13d
	mov	r8, r12
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 48
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L46:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L47
	nop
	nop
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	PrintCurrentEnergyValues, .-PrintCurrentEnergyValues
	.section	.rodata
	.align 8
.LC6:
	.string	"Please enter exactly one Input File Name"
.LC7:
	.string	"r"
.LC8:
	.string	"Input.txt"
.LC9:
	.string	"Main:opening of Input.txt->"
.LC10:
	.string	"After 0 steps:"
.LC11:
	.string	"Energy after %d steps:\n"
.LC12:
	.string	"Sum of total energy:"
.LC13:
	.string	" %lld +"
.LC14:
	.string	" %lld ="
.LC15:
	.string	"%lld\n"
.LC16:
	.string	"Main:Closig of Input.txt->"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	cmp	DWORD PTR -20[rbp], 2
	je	.L49
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L50
.L49:
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L51
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L50
.L51:
	call	ReadInputValues
	lea	rdi, .LC10[rip]
	call	puts@PLT
	call	PrintCurrentValues
	mov	DWORD PTR -12[rbp], 1
	jmp	.L52
.L53:
	call	ApplyGravity
	call	ApplyVelocity
	add	DWORD PTR -12[rbp], 1
.L52:
	cmp	DWORD PTR -12[rbp], 1000
	jle	.L53
	call	CalculatePotentialEnergy
	call	CalculateKineticEnergy
	call	CalculateTotalEnergy
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	PrintCurrentEnergyValues
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR Moon_Counter[rip], 0
	jmp	.L54
.L57:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR 40[rax]
	add	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	je	.L55
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L56
.L55:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, ListOfPointers2Moons[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L56:
	mov	eax, DWORD PTR Moon_Counter[rip]
	add	eax, 1
	mov	DWORD PTR Moon_Counter[rip], eax
.L54:
	mov	eax, DWORD PTR Moon_Counter[rip]
	cmp	eax, 3
	jle	.L57
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L58
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L50
.L58:
	mov	eax, 0
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"183921.c"
	.text
	.comm	Io,48,8
	.comm	Europa,48,8
	.comm	Ganymede,48,8
	.comm	Callisto,48,8
	.global	ListOfPointers2Moons
	.data
	.align	2
	.type	ListOfPointers2Moons, %object
	.size	ListOfPointers2Moons, 16
ListOfPointers2Moons:
	.word	Io
	.word	Europa
	.word	Ganymede
	.word	Callisto
	.global	Moon_Counter
	.bss
	.align	2
	.type	Moon_Counter, %object
	.size	Moon_Counter, 4
Moon_Counter:
	.space	4
	.comm	fp,4,4
	.text
	.align	2
	.global	CalculatePotentialEnergy
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculatePotentialEnergy, %function
CalculatePotentialEnergy:
	@ args = 0, pretend = 0, frame = 32
	@ 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, #36
	ldr	r3, .L10
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L9:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L10
	ldr	r0, [r1]
	ldr	r1, .L10+4
	ldr	r1, [r1, r0, lsl #2]
	subs	r6, r4, r2
	sbc	r7, r5, r3
	str	r6, [r1, #24]
	str	r7, [r1, #28]
	b	.L4
.L3:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L10
	ldr	r0, [r1]
	ldr	r1, .L10+4
	ldr	r1, [r1, r0, lsl #2]
	adds	r8, r4, r2
	adc	r9, r5, r3
	str	r8, [r1, #24]
	str	r9, [r1, #28]
.L4:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bgt	.L5
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #4]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L10
	ldr	r0, [r1]
	ldr	r1, .L10+4
	ldr	r1, [r1, r0, lsl #2]
	subs	r0, r4, r2
	str	r0, [fp, #-36]
	sbc	r3, r5, r3
	str	r3, [fp, #-32]
	sub	r4, fp, #36
	ldmia	r4, {r3-r4}
	str	r3, [r1, #24]
	str	r4, [r1, #28]
	b	.L6
.L5:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #4]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L10
	ldr	r0, [r1]
	ldr	r1, .L10+4
	ldr	r1, [r1, r0, lsl #2]
	adds	r0, r4, r2
	str	r0, [fp, #-44]
	adc	r3, r5, r3
	str	r3, [fp, #-40]
	sub	r4, fp, #44
	ldmia	r4, {r3-r4}
	str	r3, [r1, #24]
	str	r4, [r1, #28]
.L6:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bgt	.L7
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #8]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L10
	ldr	r0, [r1]
	ldr	r1, .L10+4
	ldr	r1, [r1, r0, lsl #2]
	subs	r0, r4, r2
	str	r0, [fp, #-52]
	sbc	r3, r5, r3
	str	r3, [fp, #-48]
	sub	r4, fp, #52
	ldmia	r4, {r3-r4}
	str	r3, [r1, #24]
	str	r4, [r1, #28]
	b	.L8
.L7:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #8]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L10
	ldr	r0, [r1]
	ldr	r1, .L10+4
	ldr	r1, [r1, r0, lsl #2]
	adds	r0, r4, r2
	str	r0, [fp, #-60]
	adc	r3, r5, r3
	str	r3, [fp, #-56]
	sub	r4, fp, #60
	ldmia	r4, {r3-r4}
	str	r3, [r1, #24]
	str	r4, [r1, #28]
.L8:
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10
	str	r3, [r2]
.L2:
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L9
	nop
	nop
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
.L11:
	.align	2
.L10:
	.word	Moon_Counter
	.word	ListOfPointers2Moons
	.size	CalculatePotentialEnergy, .-CalculatePotentialEnergy
	.align	2
	.global	CalculateKineticEnergy
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateKineticEnergy, %function
CalculateKineticEnergy:
	@ args = 0, pretend = 0, frame = 32
	@ 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, #36
	ldr	r3, .L21
	mov	r2, #0
	str	r2, [r3]
	b	.L13
.L20:
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bge	.L14
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #32
	ldmia	r5, {r4-r5}
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #12]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L21
	ldr	r0, [r1]
	ldr	r1, .L21+4
	ldr	r1, [r1, r0, lsl #2]
	subs	r6, r4, r2
	sbc	r7, r5, r3
	str	r6, [r1, #32]
	str	r7, [r1, #36]
	b	.L15
.L14:
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #32
	ldmia	r5, {r4-r5}
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #12]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L21
	ldr	r0, [r1]
	ldr	r1, .L21+4
	ldr	r1, [r1, r0, lsl #2]
	adds	r8, r4, r2
	adc	r9, r5, r3
	str	r8, [r1, #32]
	str	r9, [r1, #36]
.L15:
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bgt	.L16
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #32
	ldmia	r5, {r4-r5}
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #16]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L21
	ldr	r0, [r1]
	ldr	r1, .L21+4
	ldr	r1, [r1, r0, lsl #2]
	subs	r0, r4, r2
	str	r0, [fp, #-36]
	sbc	r3, r5, r3
	str	r3, [fp, #-32]
	sub	r4, fp, #36
	ldmia	r4, {r3-r4}
	str	r3, [r1, #32]
	str	r4, [r1, #36]
	b	.L17
.L16:
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #32
	ldmia	r5, {r4-r5}
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #16]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L21
	ldr	r0, [r1]
	ldr	r1, .L21+4
	ldr	r1, [r1, r0, lsl #2]
	adds	r0, r4, r2
	str	r0, [fp, #-44]
	adc	r3, r5, r3
	str	r3, [fp, #-40]
	sub	r4, fp, #44
	ldmia	r4, {r3-r4}
	str	r3, [r1, #32]
	str	r4, [r1, #36]
.L17:
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bgt	.L18
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #32
	ldmia	r5, {r4-r5}
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #20]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L21
	ldr	r0, [r1]
	ldr	r1, .L21+4
	ldr	r1, [r1, r0, lsl #2]
	subs	r0, r4, r2
	str	r0, [fp, #-52]
	sbc	r3, r5, r3
	str	r3, [fp, #-48]
	sub	r4, fp, #52
	ldmia	r4, {r3-r4}
	str	r3, [r1, #32]
	str	r4, [r1, #36]
	b	.L19
.L18:
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #32
	ldmia	r5, {r4-r5}
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, .L21+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, #20]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L21
	ldr	r0, [r1]
	ldr	r1, .L21+4
	ldr	r1, [r1, r0, lsl #2]
	adds	r0, r4, r2
	str	r0, [fp, #-60]
	adc	r3, r5, r3
	str	r3, [fp, #-56]
	sub	r4, fp, #60
	ldmia	r4, {r3-r4}
	str	r3, [r1, #32]
	str	r4, [r1, #36]
.L19:
	ldr	r3, .L21
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21
	str	r3, [r2]
.L13:
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L20
	nop
	nop
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
.L22:
	.align	2
.L21:
	.word	Moon_Counter
	.word	ListOfPointers2Moons
	.size	CalculateKineticEnergy, .-CalculateKineticEnergy
	.align	2
	.global	CalculateTotalEnergy
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateTotalEnergy, %function
CalculateTotalEnergy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r3, .L26
	mov	r2, #0
	str	r2, [r3]
	b	.L24
.L25:
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r2, .L26+4
	ldr	r3, [r2, r3, lsl #2]
	add	r1, r3, #24
	ldmia	r1, {r0-r1}
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r2, .L26+4
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	ldr	ip, .L26
	ldr	ip, [ip]
	ldr	lr, .L26+4
	ldr	ip, [lr, ip, lsl #2]
	mul	r4, r2, r1
	mul	lr, r0, r3
	add	lr, r4, lr
	umull	r4, r5, r0, r2
	add	r3, lr, r5
	mov	r5, r3
	str	r4, [ip, #40]
	str	r5, [ip, #44]
	ldr	r3, .L26
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L26
	str	r3, [r2]
.L24:
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L25
	nop
	nop
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	Moon_Counter
	.word	ListOfPointers2Moons
	.size	CalculateTotalEnergy, .-CalculateTotalEnergy
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Apply Gravity for velx Failed with unknown error\000"
	.align	2
.LC1:
	.ascii	"Apply Gravity for vely Failed with unknown error\000"
	.align	2
.LC2:
	.ascii	"Apply Gravity for velz Failed with unknown error\000"
	.text
	.align	2
	.global	ApplyGravity
	.syntax unified
	.arm
	.fpu softvfp
	.type	ApplyGravity, %function
ApplyGravity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L42
	mov	r2, #0
	str	r2, [r3]
	b	.L29
.L41:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L40:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L31
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L32
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L33
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #12]
	add	r2, r2, #1
	str	r2, [r3, #12]
	b	.L32
.L33:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L34
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #12]
	sub	r2, r2, #1
	str	r2, [r3, #12]
	b	.L32
.L34:
	ldr	r0, .L42+8
	bl	printf
.L32:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #4]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	beq	.L35
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #4]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bge	.L36
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #16]
	add	r2, r2, #1
	str	r2, [r3, #16]
	b	.L35
.L36:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #4]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L37
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #16]
	sub	r2, r2, #1
	str	r2, [r3, #16]
	b	.L35
.L37:
	ldr	r0, .L42+12
	bl	printf
.L35:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	beq	.L31
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bge	.L38
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #20]
	add	r2, r2, #1
	str	r2, [r3, #20]
	b	.L31
.L38:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r1, .L42+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	ble	.L39
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, .L42+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #20]
	sub	r2, r2, #1
	str	r2, [r3, #20]
	b	.L31
.L39:
	ldr	r0, .L42+16
	bl	printf
.L31:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L40
	ldr	r3, .L42
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L42
	str	r3, [r2]
.L29:
	ldr	r3, .L42
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L41
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	Moon_Counter
	.word	ListOfPointers2Moons
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	ApplyGravity, .-ApplyGravity
	.align	2
	.global	ApplyVelocity
	.syntax unified
	.arm
	.fpu softvfp
	.type	ApplyVelocity, %function
ApplyVelocity:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L47
	mov	r2, #0
	str	r2, [r3]
	b	.L45
.L46:
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r2, .L47+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [r3]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r2, .L47+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #12]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r0, .L47+4
	ldr	r3, [r0, r3, lsl #2]
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r2, .L47+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [r3, #4]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r2, .L47+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #16]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r0, .L47+4
	ldr	r3, [r0, r3, lsl #2]
	add	r2, r1, r2
	str	r2, [r3, #4]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r2, .L47+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [r3, #8]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r2, .L47+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #20]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r0, .L47+4
	ldr	r3, [r0, r3, lsl #2]
	add	r2, r1, r2
	str	r2, [r3, #8]
	ldr	r3, .L47
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L47
	str	r3, [r2]
.L45:
	ldr	r3, .L47
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L46
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L48:
	.align	2
.L47:
	.word	Moon_Counter
	.word	ListOfPointers2Moons
	.size	ApplyVelocity, .-ApplyVelocity
	.section	.rodata
	.align	2
.LC3:
	.ascii	"<x=%d, y=%d, z=%d>\012\000"
	.text
	.align	2
	.global	ReadInputValues
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadInputValues, %function
ReadInputValues:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L52
	mov	r2, #0
	str	r2, [r3]
	b	.L50
.L51:
	ldr	r3, .L52+4
	ldr	r0, [r3]
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+8
	ldr	r3, [r2, r3, lsl #2]
	mov	ip, r3
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+8
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #4
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r1, .L52+8
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r3, #8
	str	r3, [sp]
	mov	r3, r2
	mov	r2, ip
	ldr	r1, .L52+12
	bl	__isoc99_fscanf
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+8
	ldr	r1, [r2, r3, lsl #2]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+8
	ldr	r1, [r2, r3, lsl #2]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+8
	ldr	r1, [r2, r3, lsl #2]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #40]
	str	r3, [r1, #44]
	ldr	r3, .L52
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L52
	str	r3, [r2]
.L50:
	ldr	r3, .L52
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L51
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	Moon_Counter
	.word	fp
	.word	ListOfPointers2Moons
	.word	.LC3
	.size	ReadInputValues, .-ReadInputValues
	.section	.rodata
	.align	2
.LC4:
	.ascii	"pos=<x=%d, y=%d, z=%d>, vel=<x=%d, y=%d, z=%d>\012\000"
	.text
	.align	2
	.global	PrintCurrentValues
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintCurrentValues, %function
PrintCurrentValues:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L57
	mov	r2, #0
	str	r2, [r3]
	b	.L55
.L56:
	ldr	r3, .L57
	ldr	r3, [r3]
	ldr	r2, .L57+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, [r3]
	ldr	r3, .L57
	ldr	r3, [r3]
	ldr	r2, .L57+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	ip, [r3, #4]
	ldr	r3, .L57
	ldr	r3, [r3]
	ldr	r2, .L57+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	lr, [r3, #8]
	ldr	r3, .L57
	ldr	r3, [r3]
	ldr	r2, .L57+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #12]
	ldr	r2, .L57
	ldr	r2, [r2]
	ldr	r1, .L57+4
	ldr	r2, [r1, r2, lsl #2]
	ldr	r2, [r2, #16]
	ldr	r1, .L57
	ldr	r1, [r1]
	ldr	r4, .L57+4
	ldr	r1, [r4, r1, lsl #2]
	ldr	r1, [r1, #20]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L57+8
	bl	printf
	ldr	r3, .L57
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L57
	str	r3, [r2]
.L55:
	ldr	r3, .L57
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L56
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L58:
	.align	2
.L57:
	.word	Moon_Counter
	.word	ListOfPointers2Moons
	.word	.LC4
	.size	PrintCurrentValues, .-PrintCurrentValues
	.section	.rodata
	.align	2
.LC5:
	.ascii	"pot:  %d + %d +  %d = %lld;   kin: %d +  %d + %d = "
	.ascii	"%lld;   total: %lld * %lld = %lld\012\000"
	.text
	.align	2
	.global	PrintCurrentEnergyValues
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintCurrentEnergyValues, %function
PrintCurrentEnergyValues:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #76
	ldr	r3, .L62
	mov	r2, #0
	str	r2, [r3]
	b	.L60
.L61:
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #4]
	str	r2, [fp, #-44]
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, [r3, #8]
	str	r0, [fp, #-48]
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	ip, [r3, #12]
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	lr, [r3, #16]
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	ldr	r10, [r3, #20]
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	add	r7, r3, #32
	ldmia	r7, {r6-r7}
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	add	r9, r3, #24
	ldmia	r9, {r8-r9}
	ldr	r3, .L62
	ldr	r3, [r3]
	ldr	r2, .L62+4
	ldr	r3, [r2, r3, lsl #2]
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	ldr	r3, .L62
	ldr	r2, [r3]
	ldr	r3, .L62+4
	ldr	r3, [r3, r2, lsl #2]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	str	r2, [sp, #48]
	str	r3, [sp, #52]
	str	r0, [sp, #40]
	str	r1, [sp, #44]
	str	r8, [sp, #32]
	str	r9, [sp, #36]
	str	r6, [sp, #24]
	str	r7, [sp, #28]
	str	r10, [sp, #16]
	str	lr, [sp, #12]
	str	ip, [sp, #8]
	stm	sp, {r4-r5}
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	ldr	r0, .L62+8
	bl	printf
	ldr	r3, .L62
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L62
	str	r3, [r2]
.L60:
	ldr	r3, .L62
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L61
	nop
	nop
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L63:
	.align	2
.L62:
	.word	Moon_Counter
	.word	ListOfPointers2Moons
	.word	.LC5
	.size	PrintCurrentEnergyValues, .-PrintCurrentEnergyValues
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Please enter exactly one Input File Name\000"
	.align	2
.LC7:
	.ascii	"r\000"
	.align	2
.LC8:
	.ascii	"Input.txt\000"
	.align	2
.LC9:
	.ascii	"Main:opening of Input.txt->\000"
	.align	2
.LC10:
	.ascii	"After 0 steps:\000"
	.align	2
.LC11:
	.ascii	"Energy after %d steps:\012\000"
	.align	2
.LC12:
	.ascii	"Sum of total energy:\000"
	.align	2
.LC13:
	.ascii	" %lld +\000"
	.align	2
.LC14:
	.ascii	" %lld =\000"
	.align	2
.LC15:
	.ascii	"%lld\012\000"
	.align	2
.LC16:
	.ascii	"Main:Closig of Input.txt->\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-36]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L65
	ldr	r0, .L75
	bl	printf
	mov	r3, #1
	b	.L66
.L65:
	ldr	r1, .L75+4
	ldr	r0, .L75+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L75+12
	str	r3, [r2]
	ldr	r3, .L75+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L67
	ldr	r0, .L75+16
	bl	perror
	mov	r3, #1
	b	.L66
.L67:
	bl	ReadInputValues
	ldr	r0, .L75+20
	bl	puts
	bl	PrintCurrentValues
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L68
.L69:
	bl	ApplyGravity
	bl	ApplyVelocity
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L68:
	ldr	r3, [fp, #-24]
	cmp	r3, #1000
	ble	.L69
	bl	CalculatePotentialEnergy
	bl	CalculateKineticEnergy
	bl	CalculateTotalEnergy
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L75+24
	bl	printf
	bl	PrintCurrentEnergyValues
	ldr	r0, .L75+28
	bl	printf
	ldr	r3, .L75+32
	mov	r2, #0
	str	r2, [r3]
	b	.L70
.L73:
	ldr	r3, .L75+32
	ldr	r3, [r3]
	ldr	r2, .L75+36
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
	ldr	r3, .L75+32
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L71
	ldr	r3, .L75+32
	ldr	r3, [r3]
	ldr	r2, .L75+36
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	ldr	r0, .L75+40
	bl	printf
	b	.L72
.L71:
	ldr	r3, .L75+32
	ldr	r3, [r3]
	ldr	r2, .L75+36
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	ldr	r0, .L75+44
	bl	printf
.L72:
	ldr	r3, .L75+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L75+32
	str	r3, [r2]
.L70:
	ldr	r3, .L75+32
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L73
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L75+48
	bl	printf
	ldr	r3, .L75+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	ldr	r0, .L75+52
	bl	perror
	mov	r3, #1
	b	.L66
.L74:
	mov	r3, #0
.L66:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	fp
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	Moon_Counter
	.word	ListOfPointers2Moons
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
