// File: fhirschman[P]CANF-gp/source/general_functions.cc
// Function: setupGP()
void setupGP(){
	stream << "set palette rgbformulae " << colorMatrix[COLOR_CODE][0]  << "," <<  colorMatrix[COLOR_CODE][1]   << "," << colorMatrix[COLOR_CODE][2] << ";";
	gp << stream.str();
	stream.str("");
	gp << "unset key; unset xtics; unset ytics; unset colorbox; unset label; \n";
	gp << "set lmargin screen 0; set rmargin screen 1; set tmargin screen 1; set bmargin screen 0; \n";
	gp << "set autoscale fix \n";
	if(PROD_SERIES){
		stream << "set term png size "  << N_X << "," << N_Y  << ";\n" ;
	}
	else{
		stream << "set term wxt size "  << N_X << "," << N_Y  << ";\n" ;
	}
	gp << stream.str();
	stream.str("");
	// if(SAVE_IMAGE){
		// gp << "set output \"fractal.png\"; \n";
	// }
	return;	
}

// Assembly:
subq $0xe8, %rsp
leaq 0x20ad2(%rip), %rdi     # 0x29c50
movq %rdi, 0x38(%rsp)
leaq 0x14fab(%rip), %rsi     # 0x1e135
callq 0x84e0
movq %rax, %rdi
leaq 0x2076b(%rip), %rax     # 0x29904
movq %rax, 0x28(%rsp)
movslq (%rax), %rax
leaq (%rax,%rax,2), %rcx
leaq 0x20414(%rip), %rax     # 0x295c0
movq %rax, 0x30(%rsp)
movl (%rax,%rcx,4), %esi
callq 0x8940
movq %rax, %rdi
leaq 0x14f8b(%rip), %rsi     # 0x1e14e
movq %rsi, 0x20(%rsp)
callq 0x84e0
movq 0x28(%rsp), %rcx
movq %rax, %rdi
movq 0x30(%rsp), %rax
movslq (%rcx), %rcx
leaq (%rcx,%rcx,2), %rcx
movl 0x4(%rax,%rcx,4), %esi
callq 0x8940
movq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x84e0
movq 0x28(%rsp), %rcx
movq %rax, %rdi
movq 0x30(%rsp), %rax
movslq (%rcx), %rcx
leaq (%rcx,%rcx,2), %rcx
movl 0x8(%rax,%rcx,4), %esi
callq 0x8940
movq %rax, %rdi
leaq 0x15195(%rip), %rsi     # 0x1e3b3
callq 0x84e0
movq 0x38(%rsp), %rsi
leaq 0xc8(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x8530
movq 0x40(%rsp), %rsi
leaq 0x2083a(%rip), %rdi     # 0x29a80
callq 0x8450
jmp 0x924d
leaq 0xc8(%rsp), %rdi
callq 0x8330
leaq 0x97(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x8970
movq 0x18(%rsp), %rdx
leaq 0x15078(%rip), %rsi     # 0x1e2f0
leaq 0x98(%rsp), %rdi
callq 0xbd90
jmp 0x9287
leaq 0x209c2(%rip), %rdi     # 0x29c50
leaq 0x98(%rsp), %rsi
callq 0x8250
jmp 0x929d
leaq 0x98(%rsp), %rdi
callq 0x8330
leaq 0x97(%rsp), %rdi
callq 0x85a0
leaq 0x207c2(%rip), %rdi     # 0x29a80
leaq 0x14e8b(%rip), %rsi     # 0x1e150
callq 0x84e0
leaq 0x207af(%rip), %rdi     # 0x29a80
leaq 0x14ebc(%rip), %rsi     # 0x1e194
callq 0x84e0
leaq 0x2079c(%rip), %rdi     # 0x29a80
leaq 0x14f03(%rip), %rsi     # 0x1e1ee
callq 0x84e0
leaq 0x2068d(%rip), %rax     # 0x29984
testb $0x1, (%rax)
je 0x93c7
leaq 0x20949(%rip), %rdi     # 0x29c50
leaq 0x14ef4(%rip), %rsi     # 0x1e202
callq 0x84e0
movq %rax, %rdi
leaq 0x205c7(%rip), %rax     # 0x298e4
movl (%rax), %esi
callq 0x8940
movq %rax, %rdi
leaq 0x14e20(%rip), %rsi     # 0x1e14e
callq 0x84e0
movq %rax, %rdi
leaq 0x205ab(%rip), %rax     # 0x298e8
movl (%rax), %esi
callq 0x8940
movq %rax, %rdi
leaq 0x14ec7(%rip), %rsi     # 0x1e215
callq 0x84e0
jmp 0x941a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0x8330
jmp 0x9501
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
jmp 0x93b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x8330
leaq 0x97(%rsp), %rdi
callq 0x85a0
jmp 0x9501
leaq 0x20882(%rip), %rdi     # 0x29c50
leaq 0x14e43(%rip), %rsi     # 0x1e218
callq 0x84e0
movq %rax, %rdi
leaq 0x20500(%rip), %rax     # 0x298e4
movl (%rax), %esi
callq 0x8940
movq %rax, %rdi
leaq 0x14d59(%rip), %rsi     # 0x1e14e
callq 0x84e0
movq %rax, %rdi
leaq 0x204e4(%rip), %rax     # 0x298e8
movl (%rax), %esi
callq 0x8940
movq %rax, %rdi
leaq 0x14e00(%rip), %rsi     # 0x1e215
callq 0x84e0
leaq 0x2082f(%rip), %rsi     # 0x29c50
leaq 0x70(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x8530
movq 0x10(%rsp), %rsi
leaq 0x20644(%rip), %rdi     # 0x29a80
callq 0x8450
jmp 0x9443
leaq 0x70(%rsp), %rdi
callq 0x8330
leaq 0x4f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x8970
movq 0x8(%rsp), %rdx
leaq 0x14e88(%rip), %rsi     # 0x1e2f0
leaq 0x50(%rsp), %rdi
callq 0xbd90
jmp 0x9474
leaq 0x207d5(%rip), %rdi     # 0x29c50
leaq 0x50(%rsp), %rsi
callq 0x8250
jmp 0x9487
leaq 0x50(%rsp), %rdi
callq 0x8330
leaq 0x4f(%rsp), %rdi
callq 0x85a0
addq $0xe8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x8330
jmp 0x9501
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
jmp 0x94f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x8330
leaq 0x4f(%rsp), %rdi
callq 0x85a0
movq 0xc0(%rsp), %rdi
callq 0x8960
nop