// File: /workspace/github_cpp_makefile_star2_O3/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, 0xc(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2f4c(%rip), %r14      # 0x6384
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x476c
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x476c
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2f10(%rip), %rdx      # 0x6384
leaq 0x80(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0x476c
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2eed(%rip), %rdx      # 0x6384
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0x476c
movl $0x0, 0x8(%rsp)
movb 0x5e4e(%rip), %al       # 0x9300
testb %al, %al
je 0x3e7a
leaq 0x100(%rsp), %rdi
callq 0x2130
movl 0x8(%rsp), %eax
movl %eax, 0x14(%rsp)
leaq 0x2f0f(%rip), %rdx      # 0x63e5
leaq 0x5ce3(%rip), %rcx      # 0x91c0
movl %ebp, %edi
movq %rbx, %rsi
xorl %r8d, %r8d
callq 0x2280
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
jne 0x35a4
movl 0x14(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x4(%rsp), %ecx
movl 0xc(%rsp), %eax
testl %ecx, %ecx
jne 0x36fb
testl %eax, %eax
jne 0x36fb
cmpq $0x0, 0x88(%rsp)
jne 0x36fb
movq 0x5ac2(%rip), %r14      # 0x8ff0
leaq 0x2ec0(%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 0x5a90(%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)
jmp 0x370d
leaq 0x2e3a(%rip), %r15      # 0x63e5
leaq 0x5c0e(%rip), %r13      # 0x91c0
movl %ebp, 0x1c(%rsp)
sarl $0x18, %eax
leal -0x63(%rax), %ecx
cmpl $0x13, %ecx
ja 0x3607
leaq 0x2a50(%rip), %rdx      # 0x6018
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
movq %r14, %r12
jmpq *%rax
movq 0x59d5(%rip), %rax      # 0x8fb0
movq (%rax), %r12
testq %r12, %r12
je 0x36bd
movq %r12, %rdi
callq 0x20c0
leaq 0x110(%rsp), %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x21e0
jmp 0x36e4
testl %eax, %eax
je 0x3697
cmpl $0x56, %eax
jne 0x361e
movl $0x1, 0xc(%rsp)
jmp 0x3697
movl $0x1, 0x4(%rsp)
jmp 0x3697
movq 0x5981(%rip), %rax      # 0x8fb0
movq (%rax), %rdi
callq 0x2240
movl %eax, 0x14(%rsp)
jmp 0x3697
leaq 0x20(%rsp), %r12
jmp 0x3650
leaq 0x60(%rsp), %r12
jmp 0x3650
leaq 0x40(%rsp), %r12
movq %r14, %rbp
movq 0x5956(%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 0x2d56(%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 0x35b6
jmp 0x34f8
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 0x3697
movl %ecx, %edx
orl %eax, %edx
je 0x39ef
testl %ecx, %ecx
je 0x3b33
movq 0x58dc(%rip), %r14      # 0x8ff0
leaq 0x2d9e(%rip), %rsi      # 0x64b9
movl $0x8, %edx
movq %r14, %rdi
callq 0x21e0
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x374c
movq %rbx, %rdi
callq 0x20c0
movq 0x58b1(%rip), %rdi      # 0x8ff0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
jmp 0x3764
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x22a0
movq 0x5885(%rip), %rdi      # 0x8ff0
leaq 0x2d50(%rip), %rsi      # 0x64c2
movl $0x2d, %edx
callq 0x21e0
movq 0x586d(%rip), %rdi      # 0x8ff0
leaq 0x2d6f(%rip), %rsi      # 0x64f9
movl $0x1, %edx
callq 0x21e0
movq 0x5855(%rip), %rdi      # 0x8ff0
leaq 0x2d4e(%rip), %rsi      # 0x64f0
movl $0xa, %edx
callq 0x21e0
movq 0x583d(%rip), %rdi      # 0x8ff0
leaq 0x2d41(%rip), %rsi      # 0x64fb
movl $0x5a, %edx
callq 0x21e0
movq 0x5825(%rip), %rdi      # 0x8ff0
leaq 0x2d84(%rip), %rsi      # 0x6556
movl $0x5f, %edx
callq 0x21e0
movq 0x580d(%rip), %rdi      # 0x8ff0
leaq 0x2dcc(%rip), %rsi      # 0x65b6
movl $0x61, %edx
callq 0x21e0
movq 0x57f5(%rip), %rdi      # 0x8ff0
leaq 0x2e16(%rip), %rsi      # 0x6618
movl $0x62, %edx
callq 0x21e0
movq 0x57dd(%rip), %rdi      # 0x8ff0
leaq 0x2e61(%rip), %rsi      # 0x667b
movl $0x51, %edx
callq 0x21e0
movq 0x57c5(%rip), %rdi      # 0x8ff0
leaq 0x2e9b(%rip), %rsi      # 0x66cd
movl $0x43, %edx
callq 0x21e0
movq 0x57ad(%rip), %rdi      # 0x8ff0
leaq 0x2ec7(%rip), %rsi      # 0x6711
movl $0x44, %edx
callq 0x21e0
movq 0x5795(%rip), %rdi      # 0x8ff0
leaq 0x2ef4(%rip), %rsi      # 0x6756
movl $0x48, %edx
callq 0x21e0
movq 0x577d(%rip), %rdi      # 0x8ff0
leaq 0x2f25(%rip), %rsi      # 0x679f
movl $0x3b, %edx
callq 0x21e0
movq 0x5765(%rip), %rdi      # 0x8ff0
leaq 0x2c67(%rip), %rsi      # 0x64f9
movl $0x1, %edx
callq 0x21e0
movq 0x574d(%rip), %rdi      # 0x8ff0
leaq 0x2f31(%rip), %rsi      # 0x67db
movl $0x42, %edx
callq 0x21e0
movq 0x5735(%rip), %rdi      # 0x8ff0
leaq 0x2f5c(%rip), %rsi      # 0x681e
movl $0x53, %edx
callq 0x21e0
movq 0x571d(%rip), %rbx      # 0x8ff0
leaq 0x2f98(%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 0x56eb(%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
movq 0x5658(%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 0x397e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x39a3
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x39bf
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x39db
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
cmpq $0x0, 0x68(%rsp)
je 0x3b66
xorl %edi, %edi
callq 0x20b0
cmpq $0x0, 0x48(%rsp)
je 0x3a43
leaq 0x2ec8(%rip), %rsi      # 0x68d9
leaq 0x40(%rsp), %rdi
callq 0x2070
testl %eax, %eax
je 0x3a43
movq 0x40(%rsp), %rdi
movq 0x5595(%rip), %rax      # 0x8fc0
movq (%rax), %rdx
leaq 0x2ea6(%rip), %rsi      # 0x68db
callq 0x21d0
testq %rax, %rax
je 0x3c85
cmpq $0x0, 0x28(%rsp)
je 0x3a84
leaq 0x2e87(%rip), %rsi      # 0x68d9
leaq 0x20(%rsp), %rdi
callq 0x2070
testl %eax, %eax
je 0x3a84
movq 0x20(%rsp), %rdi
movq 0x552c(%rip), %rax      # 0x8f98
movq (%rax), %rdx
leaq 0x2e88(%rip), %rsi      # 0x68fe
callq 0x21d0
testq %rax, %rax
je 0x3cb8
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 0x3bdb
movq 0x551a(%rip), %rdi      # 0x8ff0
leaq 0x2e52(%rip), %rsi      # 0x692f
movl $0x1d, %edx
callq 0x21e0
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x54f2(%rip), %rdi      # 0x8ff0
callq 0x21e0
movq %rax, %rbx
leaq 0x2e40(%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 0x3c4e
testl %eax, %eax
je 0x39fb
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x3d0f
movq %rbx, %rdi
callq 0x20c0
movq 0x5472(%rip), %rdi      # 0x8fc8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
jmp 0x3d2d
movq 0x5483(%rip), %r14      # 0x8ff0
leaq 0x28de(%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 0x5451(%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
jmp 0x3597
movq 0x490(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x4b0(%rsp,%rax)
je 0x3dac
movq 0x53f4(%rip), %rdi      # 0x8ff0
leaq 0x2d2c(%rip), %rsi      # 0x692f
movl $0x1d, %edx
callq 0x21e0
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x53d2(%rip), %rdi      # 0x8ff0
callq 0x21e0
movq %rax, %rbx
leaq 0x2d20(%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 0x3941
movq 0x5364(%rip), %rdi      # 0x8ff0
leaq 0x2c4a(%rip), %rsi      # 0x68dd
movl $0x20, %edx
callq 0x21e0
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x5342(%rip), %rdi      # 0x8ff0
callq 0x21e0
movq %rax, %r14
jmp 0x3cfd
movq 0x5331(%rip), %rdi      # 0x8ff0
leaq 0x2c3a(%rip), %rsi      # 0x6900
movl $0x21, %edx
callq 0x21e0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x530f(%rip), %rdi      # 0x8ff0
callq 0x21e0
movq %rax, %r14
leaq 0x2c32(%rip), %rsi      # 0x6922
movl $0xc, %edx
movq %rax, %rdi
callq 0x21e0
movl $0x1, %ebx
movq %r14, %rdi
callq 0x20d0
jmp 0x3941
movq 0x52b2(%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 0x5294(%rip), %rdi      # 0x8fc8
leaq 0x2b94(%rip), %rsi      # 0x68cf
movl $0x9, %edx
callq 0x21e0
movq 0x527c(%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 0x3941
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 0x2a45
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testb %al, %al
je 0x3e68
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 0x3e4b
cmpl $0x0, 0x18(%rsp)
leaq 0x13(%rsp), %r8
setne (%r8)
leaq 0xd0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0xc0(%rsp), %rcx
callq 0x2cd9
movzbl %al, %ebx
decl %ebx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x3e68
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21b0
leaq 0xd0(%rsp), %rdi
callq 0x411e
jmp 0x3c66
leaq 0x18(%rsp), %rdi
leaq 0x4(%rsp), %rsi
leaq 0xc(%rsp), %rdx
callq 0x2320
jmp 0x34ba
jmp 0x3e95
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x3eba
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21b0
jmp 0x3eba
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x411e
jmp 0x3ed3
movq %rax, %rbx
jmp 0x3ee0
jmp 0x3f08
movq %rax, %rbx
leaq 0x490(%rsp), %rdi
callq 0x2050
leaq 0x288(%rsp), %rdi
callq 0x2050
jmp 0x3f0b
movq %rax, %rbx
jmp 0x3f2c
movq %rax, %rbx
jmp 0x3f48
movq %rax, %rbx
jmp 0x3f6d
movq %rax, %rbx
jmp 0x3f89
jmp 0x3f08
movq %rax, %rbx
movq 0x508e(%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 0x3f48
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x3f6d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x3f89
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21b0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x3fa5
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x22c0
nop