// File: PeterDenton[P]Nu-Pert/src/Figures.cpp
// Function: Figures::Eigenvalues()
void Eigenvalues()
{
	double a;
	std::ofstream data[2];
	data[0].open("data/Eigenvalues_NO.txt");
	data[1].open("data/Eigenvalues_IO.txt");

	for (int i = 0; i < 2; i++)
	{
		set_ordering(i == 0);
		for (double Y = -40; Y <= 40; Y += 0.01)
		{
			a = Y * Y_to_a;
			data[i] << Y;
			data[i] << " " << Exact::M1sq(a) << " " << Exact::M2sq(a) << " " << Exact::M3sq(a);
			data[i] << " " << Check::l10(a) << " " << Check::l20(a) << " " << Check::l30(a);
			data[i] << std::endl;
		}
		data[i].close();
	}
}

// Assembly:
subq $0x508, %rsp            # imm = 0x508
leaq 0x100(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq %rax, %rcx
addq $0x400, %rcx            # imm = 0x400
movq %rcx, 0xd8(%rsp)
movq %rax, 0xe0(%rsp)
movq 0xe0(%rsp), %rdi
movq %rdi, 0xc8(%rsp)
callq 0x2260
jmp 0x112a8
movq 0xd8(%rsp), %rcx
movq 0xc8(%rsp), %rax
addq $0x200, %rax            # imm = 0x200
cmpq %rcx, %rax
movq %rax, 0xe0(%rsp)
jne 0x11291
leaq 0x3afe(%rip), %rsi      # 0x14dd0
leaq 0x100(%rsp), %rdi
movl $0x10, %edx
callq 0x2040
jmp 0x112e6
leaq 0x300(%rsp), %rdi
leaq 0x3af3(%rip), %rsi      # 0x14de8
movl $0x10, %edx
callq 0x2040
jmp 0x11301
movl $0x0, 0xf0(%rsp)
cmpl $0x2, 0xf0(%rsp)
jge 0x11687
movl 0xf0(%rsp), %eax
testl %eax, %eax
sete %al
movzbl %al, %edi
callq 0x49d0
jmp 0x11330
movsd 0x3a30(%rip), %xmm0     # 0x14d68
movsd %xmm0, 0xe8(%rsp)
movsd 0x3a27(%rip), %xmm0     # 0x14d70
ucomisd 0xe8(%rsp), %xmm0
jb 0x11654
movsd 0xe8(%rsp), %xmm0
leaq 0x2f78(%rip), %rax      # 0x142e0
movsd (%rax), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x500(%rsp)
movslq 0xf0(%rsp), %rax
shlq $0x9, %rax
leaq 0x100(%rsp,%rax), %rdi
movsd 0xe8(%rsp), %xmm0
callq 0x22c0
jmp 0x1139d
movslq 0xf0(%rsp), %rax
shlq $0x9, %rax
leaq 0x100(%rsp,%rax), %rdi
leaq 0x37de(%rip), %rsi      # 0x14b96
callq 0x2160
movq %rax, 0xc0(%rsp)
jmp 0x113c7
movsd 0x500(%rsp), %xmm0
callq 0x59d0
movsd %xmm0, 0xb8(%rsp)
jmp 0x113e0
movsd 0xb8(%rsp), %xmm0
movq 0xc0(%rsp), %rdi
callq 0x22c0
movq %rax, 0xb0(%rsp)
jmp 0x11400
movq 0xb0(%rsp), %rdi
leaq 0x3787(%rip), %rsi      # 0x14b96
callq 0x2160
movq %rax, 0xa8(%rsp)
jmp 0x1141e
movsd 0x500(%rsp), %xmm0
callq 0x5a20
movsd %xmm0, 0xa0(%rsp)
jmp 0x11437
movsd 0xa0(%rsp), %xmm0
movq 0xa8(%rsp), %rdi
callq 0x22c0
movq %rax, 0x98(%rsp)
jmp 0x11457
movq 0x98(%rsp), %rdi
leaq 0x3730(%rip), %rsi      # 0x14b96
callq 0x2160
movq %rax, 0x90(%rsp)
jmp 0x11475
movsd 0x500(%rsp), %xmm0
callq 0x5a70
movsd %xmm0, 0x88(%rsp)
jmp 0x1148e
movsd 0x88(%rsp), %xmm0
movq 0x90(%rsp), %rdi
callq 0x22c0
jmp 0x114a6
movslq 0xf0(%rsp), %rax
shlq $0x9, %rax
leaq 0x100(%rsp,%rax), %rdi
leaq 0x36d5(%rip), %rsi      # 0x14b96
callq 0x2160
movq %rax, 0x80(%rsp)
jmp 0x114d0
movsd 0x500(%rsp), %xmm0
callq 0x2880
movsd %xmm0, 0x78(%rsp)
jmp 0x114e6
movsd 0x78(%rsp), %xmm0
movq 0x80(%rsp), %rdi
callq 0x22c0
movq %rax, 0x70(%rsp)
jmp 0x11500
movq 0x70(%rsp), %rdi
leaq 0x368a(%rip), %rsi      # 0x14b96
callq 0x2160
movq %rax, 0x68(%rsp)
jmp 0x11518
movsd 0x500(%rsp), %xmm0
callq 0x2af0
movsd %xmm0, 0x60(%rsp)
jmp 0x1152e
movsd 0x60(%rsp), %xmm0
movq 0x68(%rsp), %rdi
callq 0x22c0
movq %rax, 0x58(%rsp)
jmp 0x11545
movq 0x58(%rsp), %rdi
leaq 0x3645(%rip), %rsi      # 0x14b96
callq 0x2160
movq %rax, 0x50(%rsp)
jmp 0x1155d
movsd 0x500(%rsp), %xmm0
callq 0x2d60
movsd %xmm0, 0x48(%rsp)
jmp 0x11573
movsd 0x48(%rsp), %xmm0
movq 0x50(%rsp), %rdi
callq 0x22c0
jmp 0x11585
movslq 0xf0(%rsp), %rax
shlq $0x9, %rax
leaq 0x100(%rsp,%rax), %rdi
movq 0x7a28(%rip), %rsi      # 0x18fc8
callq 0x2180
jmp 0x115a7
jmp 0x115a9
movsd 0x37c7(%rip), %xmm0     # 0x14d78
addsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xe8(%rsp)
jmp 0x11341
movq 0xd0(%rsp), %rcx
movq %rax, %rsi
movq 0xc8(%rsp), %rax
movq %rsi, 0xf8(%rsp)
movl %edx, 0xf4(%rsp)
cmpq %rax, %rcx
movq %rax, 0x40(%rsp)
je 0x11621
movq 0x40(%rsp), %rdi
addq $-0x200, %rdi           # imm = 0xFE00
movq %rdi, 0x38(%rsp)
callq 0x2220
movq 0xd0(%rsp), %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x40(%rsp)
jne 0x115f4
jmp 0x116fd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0x28(%rsp)
addq $0x400, %rax            # imm = 0x400
movq %rax, 0x30(%rsp)
jmp 0x116d1
movslq 0xf0(%rsp), %rax
shlq $0x9, %rax
leaq 0x100(%rsp,%rax), %rdi
callq 0x2210
jmp 0x1166f
jmp 0x11671
movl 0xf0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xf0(%rsp)
jmp 0x1130c
leaq 0x100(%rsp), %rax
movq %rax, 0x18(%rsp)
addq $0x400, %rax            # imm = 0x400
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
addq $-0x200, %rdi           # imm = 0xFE00
movq %rdi, 0x10(%rsp)
callq 0x2220
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x20(%rsp)
jne 0x1169f
addq $0x508, %rsp            # imm = 0x508
retq
movq 0x30(%rsp), %rdi
addq $-0x200, %rdi           # imm = 0xFE00
movq %rdi, 0x8(%rsp)
callq 0x2220
movq 0x28(%rsp), %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x30(%rsp)
jne 0x116d1
jmp 0x116fd
movq 0xf8(%rsp), %rdi
callq 0x2290
nopw (%rax,%rax)