// File: /workspace/github_cpp_makefile_star2_O3/Altius[P]hotspot2/src/resolveOverlapsInSummit-CenteredPeaks.cpp
// Function: PeakfromString(char*, Peak&)
bool PeakfromString(char *s, Peak& d)
{
  char *p = strtok(s, "\t");
  int fieldnum(1);
  if (!p)
    {
    MissingField:
      cerr << "Error:  Missing required field " << fieldnum
	   << " in " << s << "." << endl << endl;
      return false;
    }
  d.chrom = string(p);
  fieldnum++;
  if (!(p = strtok(NULL, "\t")))
    goto MissingField;
  d.beg = atol(p);
  fieldnum++;
  if (!(p = strtok(NULL, "\t")))
    goto MissingField;
  d.end = atol(p);
  fieldnum++;
  if (!(p = strtok(NULL, "\t")))
    goto MissingField;
  d.id = string(p);
  fieldnum++;
  if (!(p = strtok(NULL, "\t")))
    goto MissingField;
  d.score = atof(p);
  d.score_string = string(p);
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1b5e(%rip), %rsi      # 0x4020
callq 0x21e0
testq %rax, %rax
je 0x2633
movq %rax, %r15
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x30e4
movq %r14, %rdi
movq %r12, %rsi
callq 0x21a0
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x251b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
leaq 0x1afe(%rip), %rsi      # 0x4020
xorl %edi, %edi
callq 0x21e0
testq %rax, %rax
je 0x263a
movq %rax, %rdi
callq 0x2190
movq %rax, 0x20(%r14)
leaq 0x1adb(%rip), %rsi      # 0x4020
xorl %edi, %edi
callq 0x21e0
testq %rax, %rax
je 0x2641
movq %rax, %rdi
callq 0x2190
movq %rax, 0x28(%r14)
leaq 0x1ab8(%rip), %rsi      # 0x4020
xorl %edi, %edi
callq 0x21e0
testq %rax, %rax
je 0x2648
movq %rax, %r15
leaq 0x8(%rsp), %r12
movq %r13, (%r12)
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdx
addq %rax, %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x30e4
leaq 0x30(%r14), %rdi
movq %r12, %rsi
callq 0x21a0
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x25bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
leaq 0x1a5a(%rip), %rsi      # 0x4020
xorl %edi, %edi
callq 0x21e0
testq %rax, %rax
je 0x264f
movq %rax, %r15
movq %rax, %rdi
callq 0x21b0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x50(%r14)
leaq 0x8(%rsp), %rbx
movq %r13, (%rbx)
movq %r15, %rdi
callq 0x20a0
movq %r15, %rdx
addq %rax, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x30e4
addq $0x58, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21a0
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x262c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movb $0x1, %al
jmp 0x272e
movl $0x1, %ebp
jmp 0x2654
movl $0x2, %ebp
jmp 0x2654
movl $0x3, %ebp
jmp 0x2654
movl $0x4, %ebp
jmp 0x2654
movl $0x5, %ebp
movq 0x3995(%rip), %r14      # 0x5ff0
leaq 0x19c0(%rip), %rsi      # 0x4022
movl $0x1f, %edx
movq %r14, %rdi
callq 0x2180
movq %r14, %rdi
movl %ebp, %esi
callq 0x2220
movq %rax, %r14
leaq 0x19bf(%rip), %rsi      # 0x4042
movl $0x4, %edx
movq %rax, %rdi
callq 0x2180
testq %rbx, %rbx
je 0x26ad
movq %rbx, %rdi
callq 0x20a0
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x2180
jmp 0x26c7
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x2210
leaq 0x19bf(%rip), %rsi      # 0x408d
movl $0x1, %edx
movq %r14, %rdi
callq 0x2180
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq