// File: /workspace/github_cpp_makefile_star2_O1/Altius[P]hotspot2/src/findVarWidthPeaks.cpp
// Function: parseInputFindPeaksWriteOutput(char const*, long const&)
bool parseInputFindPeaksWriteOutput(const char* pExeName, const long& minWidth)
{
  const int BUFSIZE(1000);
  char buf[BUFSIZE], *p;
  Region region;
  string curChrom;
  vector<Range> peaksPossiblyWithOverlaps;
  Position curPosn, prevPosn;
  Range curRange;
  short fieldnum;
  long begCoord, curPosSummit, prevPosSummit(0);
  bool ascending(true);
  long linenum(0);

  prevPosn.x = 0;
  region.chrom = string("xxxNONExxx");
  
  while (cin.getline(buf, BUFSIZE))
    {
      linenum++;
      fieldnum = 1;
      bool newChrom(false);
      if (!(p = strtok(buf,"\t")) || !*p)
	{
	MissingField:
	  cerr << "Error:  Failed to find required field "
	       << fieldnum << " on line " << linenum
	       << " of the input to program " << pExeName
	       << '.' << endl << endl;
	  return false;
	}
      if (0 != strcmp(p, region.chrom.c_str()))
	{
	  curChrom = string(p);
	  newChrom = true;
	}
      fieldnum++;
      if (!(p = strtok(NULL,"\t")))
	goto MissingField;
      begCoord = atol(p); // used only for sanity check below
      fieldnum++;
      if (!(p = strtok(NULL,"\t")))
	goto MissingField;
      curPosn.x = atol(p);
      if (curPosn.x != begCoord + 1)
	{
	  cerr << "Error:  Interval on line " << linenum
	       << " of the input to program " << pExeName << " is not 1bp wide as expected; "
	       << "interval is " << curChrom << ':' << begCoord
	       << '-' << curPosn.x << '.' << endl << endl;
	  return false;
	}
      fieldnum++;
      if (!(p = strtok(NULL,"\t")))
	goto MissingField;
      if (1 == linenum) // we currently assume/require the same id in all lines of input
	region.id = string(p);
      fieldnum++;
      if (!(p = strtok(NULL,"\t")))
	goto MissingField;
      curPosn.y = atof(p);
      fieldnum++;
      if (!(p = strtok(NULL,"\t")))
	goto MissingField;
      curPosSummit = atol(p);
      fieldnum++;
      if ((p = strtok(NULL,"\t")))
	{
	  cerr << "Error:  Expected exactly " << fieldnum - 1 << " columns of input for program "
	       << pExeName << ", but encountered at least " << fieldnum
	       << " on line " << linenum << '.' << endl << endl;
	  return false;
	}
      
      if (curPosSummit != prevPosSummit || (!newChrom && curPosn.x != prevPosn.x + 1))
	{
	  if (linenum > 1)
	    {
	      if (curPosSummit == prevPosSummit && curPosn.x != prevPosn.x + 1)
		{
		  cerr << "Error:  In the input to program " << pExeName << ", line " << linenum-1
		       << " contains " << region.chrom << ':'
		       << prevPosn.x-1 << '-' << prevPosn.x
		       << " for summit " << prevPosSummit
		       << ", but line " << linenum << " contains "
		       << curChrom << ':' << curPosn.x-1
		       << '-' << curPosn.x << " for the same summit.\n"
		       << "All entries for a given summit must be in ascending order by column 3."
		       << endl << endl;
		  return false;
		}
	      // Check whether curRange, at the right boundary of region,
	      // is a local maximum.
	      if (region.localMaxima.empty() || ascending)
		region.localMaxima.push_back(curRange);
	    }
	  processRegionAndFlushIt(region, minWidth, peaksPossiblyWithOverlaps); // this will simply return if region.localMaxima is empty
	  region.posSummit = curPosSummit;
	  if (newChrom)
	    region.chrom = curChrom;
	  curPosn.idx = 0;
	  curRange.beg = curPosn;
	  curRange.maxY = curPosn.y;
	  ascending = true; // if the next y value is lower, we want this one stored as a local maximum
	}
      else
	curPosn.idx++;
      region.posns.push_back(curPosn);
      if (fabs(curPosn.y - curRange.beg.y) < 0.0001)
	curRange.end = curPosn;
      else
	{
	  if (curRange.beg.y - curPosn.y > 0.0001)
	    {
	      if (ascending)
		region.localMaxima.push_back(curRange);
	      ascending = false;
	    }
	  else
	    ascending = true;
	  curRange.beg = curRange.end = curPosn;
	  curRange.maxY = curPosn.y;
	}
      prevPosn = curPosn;
      prevPosSummit = curPosSummit;
    }

  // Process the final region.
  // Check whether curRange, at the right boundary of region,
  // is a local maximum.
  if (region.localMaxima.empty() || curRange.beg.y - region.posns[curRange.beg.idx - 1].y > 0.0001)
    region.localMaxima.push_back(curRange);
  processRegionAndFlushIt(region, minWidth, peaksPossiblyWithOverlaps);

  cleanUpAnyOverlapsAndWriteOutput(peaksPossiblyWithOverlaps, minWidth);
  
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x588, %rsp            # imm = 0x588
movq %rsi, 0x58(%rsp)
movq %rdi, %rbx
leaq 0x98(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rcx)
movq %rax, 0x28(%rcx)
leaq 0xe8(%rsp), %rcx
movq %rcx, 0x8(%rcx)
movq %rcx, (%rcx)
movq %rax, 0x10(%rcx)
leaq 0x78(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %rax, 0x110(%rsp)
movaps %xmm0, 0x100(%rsp)
leaq 0x130(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x150(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2f4a(%rip), %rsi      # 0x608a
leaq 0x2f4d(%rip), %rdx      # 0x6094
leaq 0x20(%rsp), %rdi
callq 0x59cc
movq %rbx, 0x50(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x20(%rsp), %rbx
movq %rbx, %rsi
callq 0x2200
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x3180
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
movb $0x1, 0xf(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x5e43(%rip), %r14      # 0x8fd8
leaq 0x1a0(%rsp), %r12
movq $0x0, 0x40(%rsp)
xorl %ebp, %ebp
movq %rbp, %rbx
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %ecx
movl $0x3e8, %edx            # imm = 0x3E8
movq %r14, %rdi
movq %r12, %rsi
callq 0x2310
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x20(%rax,%rcx), %r15d
testb $0x5, %r15b
jne 0x3b40
leaq 0x1(%rbx), %rbp
movq %r12, %rdi
leaq 0x2e9f(%rip), %rsi      # 0x6095
callq 0x2250
movw $0x1, %r13w
testq %rax, %rax
je 0x35a9
movq %rax, %r12
cmpb $0x0, (%rax)
je 0x35a9
movq 0x88(%rsp), %rsi
movq %r12, %rdi
callq 0x2220
movl %eax, 0x64(%rsp)
testl %eax, %eax
je 0x329b
movq %rbx, 0x118(%rsp)
movq %rbp, %rbx
movl %r15d, %r13d
movq %r14, %r15
leaq 0x30(%rsp), %r14
movq %r14, 0x20(%rsp)
movq %r12, %rdi
callq 0x20a0
movq %r12, %rdx
addq %rax, %rdx
leaq 0x20(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x59cc
leaq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0x2200
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x328a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %r15, %r14
movl %r13d, %r15d
movq %rbx, %rbp
movq 0x118(%rsp), %rbx
xorl %edi, %edi
leaq 0x2df1(%rip), %r13      # 0x6095
movq %r13, %rsi
callq 0x2250
testq %rax, %rax
je 0x3429
movq %rax, %rdi
callq 0x21e0
movq %rax, %r12
xorl %edi, %edi
movq %r13, %rsi
callq 0x2250
testq %rax, %rax
je 0x3433
movq %rax, %rdi
callq 0x21e0
movq %rax, 0x10(%rsp)
leaq 0x1(%r12), %rcx
cmpq %rcx, %rax
jne 0x343d
xorl %edi, %edi
leaq 0x2d9e(%rip), %rsi      # 0x6095
callq 0x2250
testq %rax, %rax
je 0x349d
testq %rbx, %rbx
jne 0x3363
movq %rax, %r12
leaq 0x30(%rsp), %r14
movq %r14, 0x20(%rsp)
movq %rax, %rdi
callq 0x20a0
movq %r12, %rdx
addq %rax, %rdx
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x59cc
leaq 0xa8(%rsp), %rdi
movq %r13, %rsi
callq 0x2200
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x335c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x5c75(%rip), %r14      # 0x8fd8
xorl %edi, %edi
leaq 0x2d29(%rip), %r13      # 0x6095
movq %r13, %rsi
callq 0x2250
testq %rax, %rax
je 0x359d
movq %rax, %rdi
callq 0x2210
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x18(%rsp)
xorl %edi, %edi
movq %r13, %rsi
callq 0x2250
testq %rax, %rax
je 0x35a4
movq %rax, %rdi
callq 0x21e0
movq %rax, %r12
xorl %edi, %edi
movq %r13, %rsi
callq 0x2250
testq %rax, %rax
je 0x36d1
movl $0x19, %edx
movq 0x5c24(%rip), %rdi      # 0x8ff0
leaq 0x2d4b(%rip), %rsi      # 0x611e
callq 0x21c0
movq 0x5c11(%rip), %rdi      # 0x8ff0
movl $0x6, %esi
callq 0x22c0
movq %rax, %rbx
movl $0x1e, %edx
movq %rax, %rdi
leaq 0x2d3d(%rip), %rsi      # 0x6138
callq 0x21c0
movq 0x50(%rsp), %r12
testq %r12, %r12
je 0x3702
movq %r12, %rdi
callq 0x20a0
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x21c0
jmp 0x371b
movw $0x2, %r13w
jmp 0x35a9
movw $0x3, %r13w
jmp 0x35a9
movl $0x19, %edx
movq 0x5ba7(%rip), %rdi      # 0x8ff0
leaq 0x2c88(%rip), %rsi      # 0x60d8
callq 0x21c0
movq 0x5b94(%rip), %rdi      # 0x8ff0
movq %rbp, %rsi
callq 0x2160
movq %rax, %rbx
movl $0x19, %edx
movq %rax, %rdi
leaq 0x2c48(%rip), %rsi      # 0x60be
callq 0x21c0
movq 0x50(%rsp), %r13
testq %r13, %r13
je 0x34a7
movq %r13, %rdi
callq 0x20a0
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x21c0
jmp 0x34c0
movw $0x4, %r13w
jmp 0x35a9
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %rbx, %rdi
addq %rax, %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x22b0
movl $0x1e, %edx
movq %rbx, %rdi
leaq 0x2c23(%rip), %rsi      # 0x60f2
callq 0x21c0
movl $0xc, %edx
movq %rbx, %rdi
leaq 0x2c2e(%rip), %rsi      # 0x6111
callq 0x21c0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq %rbx, %rdi
callq 0x21c0
movb $0x3a, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x2160
movb $0x2d, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x2160
movb $0x2e, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
jmp 0x369d
movw $0x5, %r13w
jmp 0x35a9
movw $0x6, %r13w
movl $0x26, %edx
movq 0x5a3b(%rip), %rdi      # 0x8ff0
leaq 0x2adb(%rip), %rsi      # 0x6097
callq 0x21c0
movzwl %r13w, %esi
movq 0x5a24(%rip), %rdi      # 0x8ff0
callq 0x2150
movq %rax, %rbx
movl $0x9, %edx
movq %rax, %rdi
leaq 0x2b05(%rip), %rsi      # 0x60e8
callq 0x21c0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x2160
movq %rax, %rbx
movl $0x19, %edx
movq %rax, %rdi
leaq 0x2ab9(%rip), %rsi      # 0x60be
callq 0x21c0
movq 0x50(%rsp), %r12
testq %r12, %r12
je 0x362c
movq %r12, %rdi
callq 0x20a0
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x21c0
jmp 0x3645
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %rbx, %rdi
addq %rax, %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x22b0
movb $0x2e, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
xorl %eax, %eax
movq 0x40(%rsp), %r12
movq %r12, 0x40(%rsp)
testb %al, %al
leaq 0x1a0(%rsp), %r12
jne 0x31a8
jmp 0x3bdc
cmpq 0x40(%rsp), %r12
movl 0x64(%rsp), %r13d
jne 0x37bb
testl %r13d, %r13d
jne 0x36f9
movq 0x48(%rsp), %rax
incq %rax
cmpq %rax, 0x10(%rsp)
jne 0x37bb
incl 0x1c(%rsp)
jmp 0x3893
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %rbx, %rdi
addq %rax, %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x22b0
movl $0x1b, %edx
movq %rbx, %rdi
leaq 0x2a2d(%rip), %rsi      # 0x6157
callq 0x21c0
movq %rbx, %rdi
movl $0x7, %esi
callq 0x2150
movq %rax, %rbx
movl $0x9, %edx
movq %rax, %rdi
leaq 0x299a(%rip), %rsi      # 0x60e8
callq 0x21c0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x2160
movb $0x2e, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
jmp 0x369d
testq %rbx, %rbx
je 0x3820
cmpq 0x40(%rsp), %r12
jne 0x37da
movq 0x48(%rsp), %rax
incq %rax
cmpq %rax, 0x10(%rsp)
jne 0x3980
leaq 0xe8(%rsp), %rax
cmpq %rax, 0xe8(%rsp)
je 0x37f3
testb $0x1, 0xf(%rsp)
je 0x3820
leaq 0xe8(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x5a5c
movq %rax, %rdi
leaq 0xe8(%rsp), %rsi
callq 0x2050
incq 0xf8(%rsp)
leaq 0x88(%rsp), %rdi
movq 0x58(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x2766
movq %r12, 0xc8(%rsp)
testl %r13d, %r13d
je 0x3859
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x20e0
movl $0x0, 0x1c(%rsp)
movq 0x10(%rsp), %rax
leaq 0x160(%rsp), %rcx
movq %rax, (%rcx)
movl 0x18(%rsp), %eax
movl %eax, 0x8(%rcx)
movl 0x1c(%rsp), %eax
movl %eax, 0xc(%rcx)
movss 0x18(%rsp), %xmm0
movss %xmm0, 0x180(%rsp)
movb $0x1, 0xf(%rsp)
movq 0xd8(%rsp), %rsi
cmpq 0xe0(%rsp), %rsi
je 0x38b8
movups 0x10(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0xd8(%rsp)
jmp 0x38ca
leaq 0xd0(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x5b2c
movss 0x18(%rsp), %xmm0
movss 0x168(%rsp), %xmm1
movaps %xmm0, %xmm2
subss %xmm1, %xmm2
andps 0x2729(%rip), %xmm2     # 0x6010
cvtss2sd %xmm2, %xmm2
movsd 0x272d(%rip), %xmm3     # 0x6020
ucomisd %xmm2, %xmm3
jbe 0x390b
movups 0x10(%rsp), %xmm0
leaq 0x170(%rsp), %rax
movups %xmm0, (%rax)
jmp 0x396f
subss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
movb $0x1, %al
ucomisd %xmm3, %xmm0
jbe 0x393c
testb $0x1, 0xf(%rsp)
je 0x393a
leaq 0xe8(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x420a
xorl %eax, %eax
movups 0x10(%rsp), %xmm0
leaq 0x170(%rsp), %rcx
movups %xmm0, (%rcx)
movups 0x10(%rsp), %xmm0
leaq 0x160(%rsp), %rcx
movups %xmm0, (%rcx)
movss 0x18(%rsp), %xmm0
movss %xmm0, 0x180(%rsp)
movb %al, 0xf(%rsp)
movb $0x1, %al
movq 0x10(%rsp), %rcx
movq %rcx, 0x48(%rsp)
jmp 0x36b7
movl $0x20, %edx
movq 0x5664(%rip), %rdi      # 0x8ff0
leaq 0x27e0(%rip), %rsi      # 0x6173
callq 0x21c0
movq 0x5651(%rip), %rdi      # 0x8ff0
movq 0x50(%rsp), %rsi
callq 0x2180
movq %rax, %r12
movl $0x7, %edx
movq %rax, %rdi
leaq 0x27d9(%rip), %rsi      # 0x6194
callq 0x21c0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2160
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x27bf(%rip), %rsi      # 0x619c
callq 0x21c0
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq %rbx, %rdi
callq 0x21c0
movb $0x3a, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq 0x48(%rsp), %rcx
leaq -0x1(%rcx), %rsi
movq %rax, %rdi
callq 0x2160
movb $0x2d, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq %rax, %rdi
movq 0x48(%rsp), %rsi
callq 0x2160
movq %rax, %rbx
movl $0xc, %edx
movq %rax, %rdi
leaq 0x274f(%rip), %rsi      # 0x61a7
callq 0x21c0
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
callq 0x2160
movq %rax, %rbx
movl $0xb, %edx
movq %rax, %rdi
leaq 0x2738(%rip), %rsi      # 0x61b4
callq 0x21c0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x2160
movq %rax, %rbx
movl $0xa, %edx
movq %rax, %rdi
leaq 0x26fe(%rip), %rsi      # 0x619c
callq 0x21c0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq %rbx, %rdi
callq 0x21c0
movb $0x3a, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq 0x10(%rsp), %rsi
decq %rsi
movq %rax, %rdi
callq 0x2160
movb $0x2d, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x2160
movq %rax, %rbx
movl $0x16, %edx
movq %rax, %rdi
leaq 0x26ae(%rip), %rsi      # 0x61c0
callq 0x21c0
movl $0x46, %edx
movq %rbx, %rdi
leaq 0x26b1(%rip), %rsi      # 0x61d7
callq 0x21c0
movq %rbx, %rdi
callq 0x20b0
movq %rax, %rdi
callq 0x20b0
jmp 0x36b0
leaq 0xe8(%rsp), %rax
cmpq %rax, 0xe8(%rsp)
je 0x3b83
movss 0x168(%rsp), %xmm0
movslq 0x16c(%rsp), %rax
movq 0xd0(%rsp), %rcx
shlq $0x4, %rax
subss -0x8(%rcx,%rax), %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x249f(%rip), %xmm0     # 0x6020
jbe 0x3bb0
leaq 0x120(%rsp), %rsi
leaq 0xe8(%rsp), %rdi
callq 0x5a5c
movq %rax, %rdi
leaq 0xe8(%rsp), %rsi
callq 0x2050
incq 0xf8(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x100(%rsp), %rdx
movq 0x58(%rsp), %rsi
callq 0x2766
leaq 0x100(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x292f
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x3c01
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
leaq 0x98(%rsp), %rbx
leaq 0xb8(%rsp), %r14
je 0x3c36
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x100(%rsp), %rdi
callq 0x4224
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x3c5f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0xe8(%rsp), %rdi
callq 0x4344
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x3c89
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x3ca6
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3cc3
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x21a0
testb $0x5, %r15b
setne %al
addq $0x588, %rsp            # imm = 0x588
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3ce6
jmp 0x3ce6
jmp 0x3ce6
jmp 0x3ce6
jmp 0x3ce6
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x41d4
leaq 0x100(%rsp), %rdi
callq 0x4224
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x3d1f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x88(%rsp), %rdi
callq 0x4254
movq %rbx, %rdi
callq 0x22d0