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

	int alpha = 1;
	int beta = 0;
	double Yrho = 1.4;
	Yrho /= 2;
	bool max = true;
	double m, b;

	for (int i = 0; i < 2; i++)
	{
		set_ordering(i == 0);
		for (double delta = 0; delta <= 2 * M_PI; delta += 2 * M_PI / 40)
		{
			FP_line(alpha, beta, Yrho, delta, max, &m, &b);
			data[i] << delta << " " << m << " " << b << std::endl;
		} // delta
		data[i].close();
	} // i, ordering

}

// Assembly:
subq $0x4d8, %rsp            # imm = 0x4D8
leaq 0xd0(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %rax, %rcx
addq $0x400, %rcx            # imm = 0x400
movq %rcx, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0x2260
jmp 0x137ef
movq 0x78(%rsp), %rcx
movq 0x68(%rsp), %rax
addq $0x200, %rax            # imm = 0x200
cmpq %rcx, %rax
movq %rax, 0x80(%rsp)
jne 0x137db
leaq 0x171e(%rip), %rsi      # 0x14f31
leaq 0xd0(%rsp), %rdi
movl $0x10, %edx
callq 0x2040
jmp 0x13827
leaq 0x2d0(%rsp), %rdi
leaq 0x170f(%rip), %rsi      # 0x14f45
movl $0x10, %edx
callq 0x2040
jmp 0x13842
movl $0x1, 0xc0(%rsp)
movl $0x0, 0xbc(%rsp)
movsd 0xb68(%rip), %xmm0      # 0x143c8
movsd %xmm0, 0xb0(%rsp)
movsd 0xb0(%rsp), %xmm0
movsd 0x78e(%rip), %xmm1      # 0x14008
divsd %xmm1, %xmm0
movsd %xmm0, 0xb0(%rsp)
movb $0x1, 0xaf(%rsp)
movl $0x0, 0x94(%rsp)
cmpl $0x2, 0x94(%rsp)
jge 0x13a9a
movl 0x94(%rsp), %eax
testl %eax, %eax
sete %al
movzbl %al, %edi
callq 0x49d0
jmp 0x138be
xorps %xmm0, %xmm0
movsd %xmm0, 0x88(%rsp)
movsd 0x14ee(%rip), %xmm0     # 0x14dc0
ucomisd 0x88(%rsp), %xmm0
jb 0x13a67
movl 0xc0(%rsp), %edi
movl 0xbc(%rsp), %esi
movsd 0xb0(%rsp), %xmm0
movsd 0x88(%rsp), %xmm1
movzbl 0xaf(%rsp), %edx
andl $0x1, %edx
leaq 0xa0(%rsp), %rcx
leaq 0x98(%rsp), %r8
callq 0x73c0
jmp 0x13923
movslq 0x94(%rsp), %rax
shlq $0x9, %rax
leaq 0xd0(%rsp,%rax), %rdi
movsd 0x88(%rsp), %xmm0
callq 0x22c0
movq %rax, 0x60(%rsp)
jmp 0x1394c
movq 0x60(%rsp), %rdi
leaq 0x123e(%rip), %rsi      # 0x14b96
callq 0x2160
movq %rax, 0x58(%rsp)
jmp 0x13964
movq 0x58(%rsp), %rdi
movsd 0xa0(%rsp), %xmm0
callq 0x22c0
movq %rax, 0x50(%rsp)
jmp 0x1397e
movq 0x50(%rsp), %rdi
leaq 0x120c(%rip), %rsi      # 0x14b96
callq 0x2160
movq %rax, 0x48(%rsp)
jmp 0x13996
movq 0x48(%rsp), %rdi
movsd 0x98(%rsp), %xmm0
callq 0x22c0
movq %rax, 0x40(%rsp)
jmp 0x139b0
movq 0x40(%rsp), %rdi
movq 0x560c(%rip), %rsi      # 0x18fc8
callq 0x2180
jmp 0x139c3
jmp 0x139c5
movsd 0x13fb(%rip), %xmm0     # 0x14dc8
addsd 0x88(%rsp), %xmm0
movsd %xmm0, 0x88(%rsp)
jmp 0x138ca
movq 0x70(%rsp), %rcx
movq %rax, %rsi
movq 0x68(%rsp), %rax
movq %rsi, 0xc8(%rsp)
movl %edx, 0xc4(%rsp)
cmpq %rax, %rcx
movq %rax, 0x38(%rsp)
je 0x13a34
movq 0x38(%rsp), %rdi
addq $-0x200, %rdi           # imm = 0xFE00
movq %rdi, 0x30(%rsp)
callq 0x2220
movq 0x70(%rsp), %rcx
movq 0x30(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x38(%rsp)
jne 0x13a0a
jmp 0x13b0e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x20(%rsp)
addq $0x400, %rax            # imm = 0x400
movq %rax, 0x28(%rsp)
jmp 0x13ae4
movslq 0x94(%rsp), %rax
shlq $0x9, %rax
leaq 0xd0(%rsp,%rax), %rdi
callq 0x2210
jmp 0x13a82
jmp 0x13a84
movl 0x94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x94(%rsp)
jmp 0x1389a
leaq 0xd0(%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 0x13ab2
addq $0x4d8, %rsp            # imm = 0x4D8
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 0x13ae4
jmp 0x13b0e
movq 0xc8(%rsp), %rdi
callq 0x2290
nopl (%rax,%rax)