// File: /workspace/github_cpp_makefile_star2_O1/Altius[P]hotspot2/src/hotspot2_part2.cpp
// Function: main
int main(int argc, char* argv[])
{
  // Option defaults
  long double fdr_threshold = 1.00;
  int write_pvals = 0;
  int print_help = 0;
  int print_version = 0;
  string infilename = "";
  string infilePvals = "";
  string infileChromNames = "";
  string outfilename = "";
  int numEntries = 0;

  // Long-opt definitions
  static struct option long_options[] = {
    { "fdr_threshold", required_argument, 0, 'f' },
    { "num_entries", required_argument, 0, 'n' },
    { "write_pvals", no_argument, &write_pvals, 1 },
    { "input", required_argument, 0, 'i' },
    { "infileChromNames", required_argument, 0, 'c' },
    { "infilePvalData", required_argument, 0, 'p' },
    { "output", required_argument, 0, 'o' },
    { "help", no_argument, &print_help, 1 },
    { "version", no_argument, &print_version, 1 },
    { 0, 0, 0, 0 }
  };

  // Parse options
  char c;
  stringstream ss; // Used for parsing doubles (allows scientific notation)
  while ((c = getopt_long(argc, argv, "f:n:c:p:i:o:hvV", long_options, NULL)) != -1)
    {
      switch (c)
        {
        case 'f':
          ss << optarg;
          ss >> fdr_threshold;
          break;
        case 'n':
          numEntries = atoi(optarg);
          break;
        case 'i':
          infilename = optarg;
          break;
        case 'c':
          infileChromNames = optarg;
          break;
        case 'p':
          infilePvals = optarg;
          break;
	case 'o':
          outfilename = optarg;
          break;
        case 'h':
          print_help = 1;
          break;
        case 'v':
        case 'V':
          print_version = 1;
          break;
        // no short option needed for --write_pvals
        case 0:
          // long option received, do nothing
          break;
        default:
          print_help = 1;
        }
    }

  if (!print_help && !print_version && infileChromNames.empty())
    {
      cerr << "Error:  Required file containing mapping from integers to chromosome names was not supplied."
	   << endl << endl;
      print_help = 1;
    }
  
  if (!print_help && !print_version && infilePvals.empty())
    {
      cerr << "Error:  Required file containing scaled -log10(P) values and their occurrence counts was not supplied."
	   << endl << endl;
      print_help = 1;
    }
 
  // Print usage and exit if necessary
  if (print_help)
    {
      cerr << "Usage:  " << argv[0] << " [options] < in.PvalueData.txt > out.FDR.bed\n"
           << "\n"
           << "Options: \n"
           << "  -n, --num_entries=INT          The number of lines of input (required for optimization)\n"
           << "  -p, --inputPvalData=FILE       A file of scaled -log10(P) values and their occurrence counts\n"
	   << "  -c, --inputChromNames=FILE     A file containing the mapping from integers to chromosome names\n"
           << "  --write_pvals                  Output P-values in column 6 (P-values are not output by default)\n"
           << "  -f, --fdr_threshold=THRESHOLD  Do not output sites with FDR > THRESHOLD (1.00)\n"
           << "  -i, --input=FILE               A file to read input from (STDIN)\n"
           << "  -o, --output=FILE              A file to write output to (STDOUT)\n"
           << "  -v, --version                  Print the version information and exit\n"
           << "  -h, --help                     Display this helpful help\n"
           << "\n"
           << " output (sent to stdout) will be a .bed5 file with FDR in field 5\n"
           << "\tor, if --write_pvals is specified, a .bed6 file with P-values appended in field 6\n"
           << " input (via \"-i FILE\" or piped in from stdin) consists of many rows of values in 4 columns.\n"
           << endl
           << endl;
      return -1;
    }

  if (print_version)
    {
      cout << argv[0] << " version " << hotspot2_VERSION_MAJOR
           << '.' << hotspot2_VERSION_MINOR << endl;
      return 0;
    }

  ios_base::sync_with_stdio(false); // calling this static method in this way turns off checks, speeds up I/O

  if (!infilename.empty() && infilename != "-")
    {
      if (freopen(infilename.c_str(), "r", stdin) == NULL)
        {
          cerr << "Error: Couldn't open input file " << infilename << endl;
          return 1;
        }
    }
  if (!outfilename.empty() && outfilename != "-")
    {
      if (freopen(outfilename.c_str(), "w", stdout) == NULL)
        {
          cerr << "Error: Couldn't open output file " << outfilename << " for writing" << endl;
          return 1;
        }
    }

  ifstream ifsChromNames(infileChromNames.c_str()), ifsPvals(infilePvals.c_str());
  if (!ifsChromNames)
    {
      cerr << "Error:  Unable to open file \"" << infileChromNames << "\" for read." << endl;
      return 1;
    }
  if (!ifsPvals)
    {
      cerr << "Error:  Unable to open file \"" << infilePvals << "\" for read." << endl;
      return 1;
    }

  map<int, string*> IntToChromNameMap;
  if (!buildIntToChromNameMap(ifsChromNames, IntToChromNameMap))
    return -1;

  vector<pair<int, long double> > PvalToFDRmapping;
  if (!buildFDRmapping(ifsPvals, PvalToFDRmapping))
    return -1;

  if (!parseAndProcessInput(IntToChromNameMap, PvalToFDRmapping, numEntries, fdr_threshold, write_pvals ? true : false))
    return -1;

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x698, %rsp            # imm = 0x698
movq %rsi, %rbx
movl %edi, %ebp
fld1
fstpt 0xc0(%rsp)
xorl %eax, %eax
movl %eax, 0x18(%rsp)
movl %eax, 0x4(%rsp)
movl %eax, 0x8(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2f2a(%rip), %r14      # 0x6384
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x47ba
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x47ba
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2eee(%rip), %rdx      # 0x6384
leaq 0x80(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0x47ba
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2ecb(%rip), %rdx      # 0x6384
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0x47ba
movl $0x0, 0xc(%rsp)
movb 0x5e2c(%rip), %al       # 0x9300
testb %al, %al
je 0x3ea9
leaq 0x100(%rsp), %rdi
callq 0x2130
movl 0xc(%rsp), %eax
movl %eax, 0x10(%rsp)
leaq 0x2eed(%rip), %rdx      # 0x63e5
leaq 0x5cc1(%rip), %rcx      # 0x91c0
movl %ebp, %edi
movq %rbx, %rsi
xorl %r8d, %r8d
callq 0x2280
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
jne 0x36a2
movl 0x10(%rsp), %eax
movl %eax, 0xc(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x35bb
cmpl $0x0, 0x8(%rsp)
jne 0x35bb
cmpq $0x0, 0x88(%rsp)
jne 0x35bb
movq 0x5aa6(%rip), %r14      # 0x8ff0
leaq 0x2ea4(%rip), %rsi      # 0x63f5
movl $0x5c, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq 0x5a74(%rip), %rdi      # 0x8ff0
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movl $0x1, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x3651
cmpl $0x0, 0x8(%rsp)
jne 0x3651
cmpq $0x0, 0x68(%rsp)
jne 0x3651
movq 0x5a10(%rip), %r14      # 0x8ff0
leaq 0x2e6b(%rip), %rsi      # 0x6452
movl $0x66, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq 0x59de(%rip), %rdi      # 0x8ff0
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
movl $0x1, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
je 0x37f9
movq 0x598d(%rip), %r14      # 0x8ff0
leaq 0x2e4f(%rip), %rsi      # 0x64b9
movl $0x8, %edx
movq %r14, %rdi
callq 0x21e0
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x382f
movq %rbx, %rdi
callq 0x20c0
movq 0x595e(%rip), %rdi      # 0x8ff0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
jmp 0x3847
leaq 0x2d3c(%rip), %r15      # 0x63e5
leaq 0x5b10(%rip), %r13      # 0x91c0
movl %ebp, 0x1c(%rsp)
sarl $0x18, %eax
leal -0x63(%rax), %ecx
cmpl $0x13, %ecx
ja 0x3705
leaq 0x2952(%rip), %rdx      # 0x6018
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
movq %r14, %r12
jmpq *%rax
movq 0x58d7(%rip), %rax      # 0x8fb0
movq (%rax), %r12
testq %r12, %r12
je 0x37bb
movq %r12, %rdi
callq 0x20c0
leaq 0x110(%rsp), %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x21e0
jmp 0x37e2
testl %eax, %eax
je 0x3795
cmpl $0x56, %eax
jne 0x371c
movl $0x1, 0x8(%rsp)
jmp 0x3795
movl $0x1, 0x4(%rsp)
jmp 0x3795
movq 0x5883(%rip), %rax      # 0x8fb0
movq (%rax), %rdi
callq 0x2240
movl %eax, 0x10(%rsp)
jmp 0x3795
leaq 0x20(%rsp), %r12
jmp 0x374e
leaq 0x60(%rsp), %r12
jmp 0x374e
leaq 0x40(%rsp), %r12
movq %r14, %rbp
movq 0x5858(%rip), %rax      # 0x8fb0
movq (%rax), %r14
movq %r13, %r15
movq %rbx, %r13
movq 0x8(%r12), %rbx
movq %r14, %rdi
callq 0x20c0
movq %r12, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %r13, %rbx
movq %r15, %r13
movq %r14, %rcx
movq %rbp, %r14
movl 0x1c(%rsp), %ebp
leaq 0x2c58(%rip), %r15      # 0x63e5
movq %rax, %r8
callq 0x2230
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0x2280
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
jne 0x36b4
jmp 0x351a
movq 0x110(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x110(%rsp), %rcx
leaq (%rcx,%rax), %rdi
movl 0x130(%rsp,%rax), %esi
orl $0x1, %esi
callq 0x22a0
leaq 0x100(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x21f0
jmp 0x3795
cmpl $0x0, 0x8(%rsp)
je 0x3a29
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x3b61
movq %rbx, %rdi
callq 0x20c0
movq 0x57a9(%rip), %rdi      # 0x8fc8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
jmp 0x3b7f
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x22a0
movq 0x57a2(%rip), %rdi      # 0x8ff0
leaq 0x2c6d(%rip), %rsi      # 0x64c2
movl $0x2d, %edx
callq 0x21e0
movq 0x578a(%rip), %rdi      # 0x8ff0
leaq 0x2c8c(%rip), %rsi      # 0x64f9
movl $0x1, %edx
callq 0x21e0
movq 0x5772(%rip), %rdi      # 0x8ff0
leaq 0x2c6b(%rip), %rsi      # 0x64f0
movl $0xa, %edx
callq 0x21e0
movq 0x575a(%rip), %rdi      # 0x8ff0
leaq 0x2c5e(%rip), %rsi      # 0x64fb
movl $0x5a, %edx
callq 0x21e0
movq 0x5742(%rip), %rdi      # 0x8ff0
leaq 0x2ca1(%rip), %rsi      # 0x6556
movl $0x5f, %edx
callq 0x21e0
movq 0x572a(%rip), %rdi      # 0x8ff0
leaq 0x2ce9(%rip), %rsi      # 0x65b6
movl $0x61, %edx
callq 0x21e0
movq 0x5712(%rip), %rdi      # 0x8ff0
leaq 0x2d33(%rip), %rsi      # 0x6618
movl $0x62, %edx
callq 0x21e0
movq 0x56fa(%rip), %rdi      # 0x8ff0
leaq 0x2d7e(%rip), %rsi      # 0x667b
movl $0x51, %edx
callq 0x21e0
movq 0x56e2(%rip), %rdi      # 0x8ff0
leaq 0x2db8(%rip), %rsi      # 0x66cd
movl $0x43, %edx
callq 0x21e0
movq 0x56ca(%rip), %rdi      # 0x8ff0
leaq 0x2de4(%rip), %rsi      # 0x6711
movl $0x44, %edx
callq 0x21e0
movq 0x56b2(%rip), %rdi      # 0x8ff0
leaq 0x2e11(%rip), %rsi      # 0x6756
movl $0x48, %edx
callq 0x21e0
movq 0x569a(%rip), %rdi      # 0x8ff0
leaq 0x2e42(%rip), %rsi      # 0x679f
movl $0x3b, %edx
callq 0x21e0
movq 0x5682(%rip), %rdi      # 0x8ff0
leaq 0x2b84(%rip), %rsi      # 0x64f9
movl $0x1, %edx
callq 0x21e0
movq 0x566a(%rip), %rdi      # 0x8ff0
leaq 0x2e4e(%rip), %rsi      # 0x67db
movl $0x42, %edx
callq 0x21e0
movq 0x5652(%rip), %rdi      # 0x8ff0
leaq 0x2e79(%rip), %rsi      # 0x681e
movl $0x53, %edx
callq 0x21e0
movq 0x563a(%rip), %rbx      # 0x8ff0
leaq 0x2eb5(%rip), %rsi      # 0x6872
movl $0x5c, %edx
movq %rbx, %rdi
callq 0x21e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq 0x5608(%rip), %rdi      # 0x8ff0
callq 0x2030
movq %rax, %rdi
callq 0x2110
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %rax, %rdi
callq 0x2110
jmp 0x3d2d
xorl %edi, %edi
callq 0x20b0
cmpq $0x0, 0x48(%rsp)
je 0x3a71
leaq 0x2e9a(%rip), %rsi      # 0x68d9
leaq 0x40(%rsp), %rdi
callq 0x2070
testl %eax, %eax
je 0x3a71
movq 0x40(%rsp), %rdi
movq 0x5567(%rip), %rax      # 0x8fc0
movq (%rax), %rdx
leaq 0x2e78(%rip), %rsi      # 0x68db
callq 0x21d0
testq %rax, %rax
je 0x3ca8
cmpq $0x0, 0x28(%rsp)
je 0x3ab2
leaq 0x2e59(%rip), %rsi      # 0x68d9
leaq 0x20(%rsp), %rdi
callq 0x2070
testl %eax, %eax
je 0x3ab2
movq 0x20(%rsp), %rdi
movq 0x54fe(%rip), %rax      # 0x8f98
movq (%rax), %rdx
leaq 0x2e5a(%rip), %rsi      # 0x68fe
callq 0x21d0
testq %rax, %rax
je 0x3cdb
movq 0x80(%rsp), %rsi
leaq 0x288(%rsp), %rdi
movl $0x8, %edx
callq 0x22f0
movq 0x60(%rsp), %rsi
leaq 0x490(%rsp), %rdi
movl $0x8, %edx
callq 0x22f0
movq 0x288(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x2a8(%rsp,%rax)
je 0x3bfe
movq 0x54ec(%rip), %rdi      # 0x8ff0
leaq 0x2e24(%rip), %rsi      # 0x692f
movl $0x1d, %edx
callq 0x21e0
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x54c4(%rip), %rdi      # 0x8ff0
callq 0x21e0
movq %rax, %rbx
leaq 0x2e12(%rip), %rsi      # 0x694d
movl $0xb, %edx
movq %rax, %rdi
callq 0x21e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
jmp 0x3c71
movq 0x5460(%rip), %rax      # 0x8fc8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x22a0
movq 0x5442(%rip), %rdi      # 0x8fc8
leaq 0x2d42(%rip), %rsi      # 0x68cf
movl $0x9, %edx
callq 0x21e0
movq 0x542a(%rip), %rdi      # 0x8fc8
movl $0x2, %esi
callq 0x22b0
leaq 0x288(%rsp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21e0
movq %rax, %rdi
movl $0x1, %esi
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x2110
jmp 0x3d2d
movq 0x490(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x4b0(%rsp,%rax)
je 0x3ddb
movq 0x53d1(%rip), %rdi      # 0x8ff0
leaq 0x2d09(%rip), %rsi      # 0x692f
movl $0x1d, %edx
callq 0x21e0
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x53af(%rip), %rdi      # 0x8ff0
callq 0x21e0
movq %rax, %rbx
leaq 0x2cfd(%rip), %rsi      # 0x694d
movl $0xb, %edx
movq %rax, %rdi
callq 0x21e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movl $0x1, %ebx
movq %rax, %rdi
callq 0x2110
leaq 0x490(%rsp), %rdi
callq 0x2050
leaq 0x288(%rsp), %rdi
callq 0x2050
jmp 0x3d2d
movq 0x5341(%rip), %rdi      # 0x8ff0
leaq 0x2c27(%rip), %rsi      # 0x68dd
movl $0x20, %edx
callq 0x21e0
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x531f(%rip), %rdi      # 0x8ff0
callq 0x21e0
movq %rax, %r14
jmp 0x3d20
movq 0x530e(%rip), %rdi      # 0x8ff0
leaq 0x2c17(%rip), %rsi      # 0x6900
movl $0x21, %edx
callq 0x21e0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x52ec(%rip), %rdi      # 0x8ff0
callq 0x21e0
movq %rax, %r14
leaq 0x2c0f(%rip), %rsi      # 0x6922
movl $0xc, %edx
movq %rax, %rdi
callq 0x21e0
movl $0x1, %ebx
movq %r14, %rdi
callq 0x20d0
movq 0x526c(%rip), %rsi      # 0x8fa0
leaq 0x100(%rsp), %rdi
callq 0x2150
leaq 0x180(%rsp), %rdi
callq 0x2080
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3d6a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x3d8f
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x3dab
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x3dc7
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21b0
movl %ebx, %eax
addq $0x698, %rsp            # imm = 0x698
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd8(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x288(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x2a42
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testb %al, %al
je 0x3e97
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0x490(%rsp), %rdi
callq 0x260e
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testb %al, %al
je 0x3e7a
cmpl $0x0, 0x18(%rsp)
leaq 0x17(%rsp), %r8
setne (%r8)
leaq 0xd0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc(%rsp), %rdx
leaq 0xc0(%rsp), %rcx
callq 0x2d0c
movzbl %al, %ebx
decl %ebx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x3e97
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21b0
leaq 0xd0(%rsp), %rdi
callq 0x415c
jmp 0x3c89
leaq 0x18(%rsp), %rdi
leaq 0x4(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x2320
jmp 0x34dc
jmp 0x3ec4
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x3ee9
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21b0
jmp 0x3ee9
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x415c
jmp 0x3f02
movq %rax, %rbx
jmp 0x3f0f
jmp 0x3f42
movq %rax, %rbx
leaq 0x490(%rsp), %rdi
callq 0x2050
leaq 0x288(%rsp), %rdi
callq 0x2050
jmp 0x3f45
movq %rax, %rbx
jmp 0x3f66
movq %rax, %rbx
jmp 0x3f82
movq %rax, %rbx
jmp 0x3fa7
movq %rax, %rbx
jmp 0x3fc3
movq %rax, %rbx
movl 0x10(%rsp), %eax
movl %eax, 0xc(%rsp)
jmp 0x3f45
movq %rax, %rbx
movq 0x5054(%rip), %rsi      # 0x8fa0
leaq 0x100(%rsp), %rdi
callq 0x2150
leaq 0x180(%rsp), %rdi
callq 0x2080
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3f82
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x3fa7
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x3fc3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x3fdf
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x22c0
nop