// File: PeterDenton[P]Nu-Pert/src/Figures.cpp
// Function: Figures::Expansion_Parameter()
void Expansion_Parameter()
{
	std::ofstream data[2];
	data[0].open("data/Expansion_Parameter_NO.txt");
	data[1].open("data/Expansion_Parameter_IO.txt");

	for (int i = 0; i < 2; i++)
	{
		set_ordering(i == 0);
		for (double Y = -40; Y <= 40; Y += 0.05)
		{
			double a = Y * Y_to_a;

			data[i] << Y << " ";
			data[i] << std::abs(c12 * s12 * eps) << " ";
			data[i] << std::abs(epsp(a)) << " ";
			data[i] << std::endl;
		}
		data[i].close();
	}

}

// Assembly:
subq $0x4c8, %rsp            # imm = 0x4C8
leaq 0xc0(%rsp), %rax
movq %rax, 0x88(%rsp)
movq %rax, %rcx
addq $0x400, %rcx            # imm = 0x400
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0x2260
jmp 0x11a98
movq 0x90(%rsp), %rcx
movq 0x80(%rsp), %rax
addq $0x200, %rax            # imm = 0x200
cmpq %rcx, %rax
movq %rax, 0x98(%rsp)
jne 0x11a81
leaq 0x3364(%rip), %rsi      # 0x14e26
leaq 0xc0(%rsp), %rdi
movl $0x10, %edx
callq 0x2040
jmp 0x11ad6
leaq 0x2c0(%rsp), %rdi
leaq 0x3361(%rip), %rsi      # 0x14e46
movl $0x10, %edx
callq 0x2040
jmp 0x11af1
movl $0x0, 0xb0(%rsp)
cmpl $0x2, 0xb0(%rsp)
jge 0x11d8c
movl 0xb0(%rsp), %eax
testl %eax, %eax
sete %al
movzbl %al, %edi
callq 0x49d0
jmp 0x11b20
movsd 0x3240(%rip), %xmm0     # 0x14d68
movsd %xmm0, 0xa8(%rsp)
movsd 0x3237(%rip), %xmm0     # 0x14d70
ucomisd 0xa8(%rsp), %xmm0
jb 0x11d59
movsd 0xa8(%rsp), %xmm0
leaq 0x2788(%rip), %rax      # 0x142e0
movsd (%rax), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movslq 0xb0(%rsp), %rax
shlq $0x9, %rax
leaq 0xc0(%rsp,%rax), %rdi
movsd 0xa8(%rsp), %xmm0
callq 0x22c0
movq %rax, 0x78(%rsp)
jmp 0x11b92
movq 0x78(%rsp), %rdi
leaq 0x2ff8(%rip), %rsi      # 0x14b96
callq 0x2160
jmp 0x11ba5
movslq 0xb0(%rsp), %rax
shlq $0x9, %rax
leaq 0xc0(%rsp,%rax), %rax
movq %rax, 0x68(%rsp)
leaq 0x75f3(%rip), %rax      # 0x191b8
movsd (%rax), %xmm0
leaq 0x75d0(%rip), %rax      # 0x191a0
movsd (%rax), %xmm1
mulsd %xmm1, %xmm0
leaq 0x7619(%rip), %rax      # 0x191f8
movsd (%rax), %xmm1
mulsd %xmm1, %xmm0
callq 0x7470
movsd %xmm0, 0x70(%rsp)
jmp 0x11bf4
movsd 0x70(%rsp), %xmm0
movq 0x68(%rsp), %rdi
callq 0x22c0
movq %rax, 0x60(%rsp)
jmp 0x11c0b
movq 0x60(%rsp), %rdi
leaq 0x2f7f(%rip), %rsi      # 0x14b96
callq 0x2160
jmp 0x11c1e
movslq 0xb0(%rsp), %rax
shlq $0x9, %rax
leaq 0xc0(%rsp,%rax), %rax
movq %rax, 0x50(%rsp)
movsd 0xa0(%rsp), %xmm0
callq 0x4970
movsd %xmm0, 0x58(%rsp)
jmp 0x11c4d
movsd 0x58(%rsp), %xmm0
callq 0x7470
movsd %xmm0, 0x48(%rsp)
jmp 0x11c60
movsd 0x48(%rsp), %xmm0
movq 0x50(%rsp), %rdi
callq 0x22c0
movq %rax, 0x40(%rsp)
jmp 0x11c77
movq 0x40(%rsp), %rdi
leaq 0x2f13(%rip), %rsi      # 0x14b96
callq 0x2160
jmp 0x11c8a
movslq 0xb0(%rsp), %rax
shlq $0x9, %rax
leaq 0xc0(%rsp,%rax), %rdi
movq 0x7323(%rip), %rsi      # 0x18fc8
callq 0x2180
jmp 0x11cac
jmp 0x11cae
movsd 0x30d2(%rip), %xmm0     # 0x14d88
addsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
jmp 0x11b31
movq 0x88(%rsp), %rcx
movq %rax, %rsi
movq 0x80(%rsp), %rax
movq %rsi, 0xb8(%rsp)
movl %edx, 0xb4(%rsp)
cmpq %rax, %rcx
movq %rax, 0x38(%rsp)
je 0x11d26
movq 0x38(%rsp), %rdi
addq $-0x200, %rdi           # imm = 0xFE00
movq %rdi, 0x30(%rsp)
callq 0x2220
movq 0x88(%rsp), %rcx
movq 0x30(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x38(%rsp)
jne 0x11cf9
jmp 0x11e00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
leaq 0xc0(%rsp), %rax
movq %rax, 0x20(%rsp)
addq $0x400, %rax            # imm = 0x400
movq %rax, 0x28(%rsp)
jmp 0x11dd6
movslq 0xb0(%rsp), %rax
shlq $0x9, %rax
leaq 0xc0(%rsp,%rax), %rdi
callq 0x2210
jmp 0x11d74
jmp 0x11d76
movl 0xb0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb0(%rsp)
jmp 0x11afc
leaq 0xc0(%rsp), %rax
movq %rax, 0x10(%rsp)
addq $0x400, %rax            # imm = 0x400
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
addq $-0x200, %rdi           # imm = 0xFE00
movq %rdi, 0x8(%rsp)
callq 0x2220
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x18(%rsp)
jne 0x11da4
addq $0x4c8, %rsp            # imm = 0x4C8
retq
movq 0x28(%rsp), %rdi
addq $-0x200, %rdi           # imm = 0xFE00
movq %rdi, (%rsp)
callq 0x2220
movq 0x20(%rsp), %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x28(%rsp)
jne 0x11dd6
jmp 0x11e00
movq 0xb8(%rsp), %rdi
callq 0x2290
nopl (%rax)