// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/diagonalbandalign.c
// Function: evaluateDBcrosspoints
static void evaluateDBcrosspoints(GtLinspaceManagement *spacemanager,
                                  GtDiagAlignentry *Diagcolumn,
                                  const GtScoreHandler *scorehandler,
                                  LinearAlignEdge edge,
                                  GtUword rowoffset,
                                  GtUword coloffset,
                                  const GtUchar *useq,
                                  GtUword ustart,
                                  GtUword ulen,
                                  const GtUchar *vseq,
                                  GtUword vstart,
                                  GtUword vlen,
                                  GtWord left_dist,
                                  GtWord right_dist)
{
  GtUword idx, prevcpoint, cpoint, ctemp, new_ulen;
  GtWord new_left, new_right, diag = GT_DIV2(left_dist+right_dist);
  GtDiagAlignentry dtemp;

  if (ulen == 0)
  {
    for (idx = 1; idx <=vlen; idx++)
    {
      Diagcolumn[idx].currentrowindex = rowoffset;
      Diagcolumn[idx].last_type = Linear_I;
    }
    Diagcolumn[0].currentrowindex = rowoffset;
    Diagcolumn[0].last_type = edge;
    return;
  }

  if (vlen == 0)
  {
    Diagcolumn[0] = (GtDiagAlignentry) {ulen, edge};
    return;
  }

  if (gt_linspace_management_checksquare(spacemanager,ulen,vlen,
                                         sizeof (GtUword),sizeof(GtUword)))
  {
    dtab_in_square_space(spacemanager, Diagcolumn,
                         useq, ustart, ulen,
                         vseq, vstart, vlen,
                         left_dist, right_dist,
                         rowoffset, edge, scorehandler);
    return;
  }

  cpoint = evaluateallDBtabcolumns (spacemanager, Diagcolumn, scorehandler,edge,
                                    rowoffset, useq, ustart, ulen,
                                    vseq, vstart, vlen,
                                    left_dist, right_dist);

  /* if no crosspoint is found */
  if (cpoint == GT_UWORD_MAX)
  {
    if (diag < 0)
    {
      return evaluateDBcrosspoints(spacemanager,Diagcolumn, scorehandler, edge,
                                   rowoffset, coloffset, useq, ustart, ulen,
                                   vseq, vstart, vlen,
                                   diag+1, right_dist);
    }

    else if (diag > 0)
      return evaluateDBcrosspoints(spacemanager, Diagcolumn, scorehandler, edge,
                                   rowoffset, coloffset, useq, ustart, ulen,
                                   vseq, vstart, vlen,
                                   left_dist, diag-1);
    else
    {
      gt_assert(false); /* there have to be an crosspoint */
    }
  }

  /* exception, if last crosspoint != (m+1)entry, bottom right corner */
  if (cpoint != vlen)
  {
    if (diag + ((GtWord)ulen-(GtWord)vlen) > 0)
    {
      dtemp = Diagcolumn[cpoint];
      new_left = GT_MAX((GtWord)left_dist-diag+1,
                    -((GtWord)ulen-((GtWord)Diagcolumn[cpoint].currentrowindex+1
                    -(GtWord)rowoffset)));
      new_right = 0;
      new_ulen =  ulen - (Diagcolumn[cpoint].currentrowindex+1-rowoffset);
      evaluateDBcrosspoints(spacemanager, Diagcolumn+cpoint, scorehandler,
                            Linear_D, Diagcolumn[cpoint].currentrowindex+1,
                            coloffset+cpoint, useq,
                            Diagcolumn[cpoint].currentrowindex+1, new_ulen,
                            vseq, vstart+cpoint, vlen-cpoint,
                            new_left, new_right);

    Diagcolumn[cpoint] = dtemp;
    }
    else
    {
      new_left = -1;
      new_right =  GT_MIN((GtWord)right_dist-((GtWord)diag)-1,
                      ((GtWord)vlen-(GtWord)cpoint-1));
      new_ulen = ulen - (Diagcolumn[cpoint].currentrowindex-rowoffset);
      evaluateDBcrosspoints(spacemanager,Diagcolumn+cpoint+1,scorehandler,
                            Linear_I, Diagcolumn[cpoint].currentrowindex,
                            coloffset+cpoint+1, useq,
                            Diagcolumn[cpoint].currentrowindex, new_ulen,
                            vseq, vstart+cpoint+1, vlen-cpoint-1,
                            new_left, new_right);
    }
  }

  /* look at all 'normally' crosspoints,
     call segments between pairwise crosspoints*/
  while (Diagcolumn[cpoint].lastcpoint != GT_UWORD_MAX)
  {
    prevcpoint = cpoint;
    if (prevcpoint == 0)
      break;

    cpoint = Diagcolumn[cpoint].lastcpoint;
    ctemp =  Diagcolumn[cpoint].lastcpoint;
    if (Diagcolumn[prevcpoint].last_type == Linear_R ||
       ((Diagcolumn[prevcpoint].last_type == Linear_I) &&
       (prevcpoint-cpoint == 1)))
    {
      continue;
    }
    else if (Diagcolumn[prevcpoint].last_type == Linear_D)
    {
      new_left = -1;
      new_right = GT_MIN(right_dist-((GtWord)diag)-1,
                     (GtWord)prevcpoint-(GtWord)cpoint-1);
      new_ulen = Diagcolumn[prevcpoint].currentrowindex-
                 Diagcolumn[cpoint].currentrowindex-1;

      evaluateDBcrosspoints(spacemanager,Diagcolumn+cpoint+1,scorehandler,
                   Linear_I, Diagcolumn[cpoint].currentrowindex,
                   coloffset+cpoint+1, useq, Diagcolumn[cpoint].currentrowindex,
                   new_ulen, vseq, vstart + cpoint+1, prevcpoint-cpoint-1,
                   new_left, new_right);
    }
    else if (Diagcolumn[prevcpoint].last_type == Linear_I)
    {
      dtemp = Diagcolumn[cpoint];
      new_ulen = Diagcolumn[prevcpoint].currentrowindex-
                 Diagcolumn[cpoint].currentrowindex-1;
      new_left = GT_MAX(left_dist-diag+1,-new_ulen);
      new_right = 0;

      evaluateDBcrosspoints(spacemanager,Diagcolumn+cpoint,scorehandler,
                            Linear_D, Diagcolumn[cpoint].currentrowindex+1,
                            coloffset+cpoint, useq,
                            Diagcolumn[cpoint].currentrowindex+1, new_ulen,
                            vseq, vstart + cpoint, prevcpoint-1-cpoint,
                            new_left, new_right);
      Diagcolumn[cpoint] = dtemp;
    }
    else
    {
      /* if (Diagcolumn[cpoint].last_type == Linear_X), never reach this line */
      gt_assert(false);
    }
    Diagcolumn[cpoint].lastcpoint  = ctemp;
  }

  /* exception, if first crosspoint != 0-entry, upper left corner */
  if (vstart-coloffset != cpoint)
  {
    if (Diagcolumn[cpoint].last_type == Linear_D)
    {
      new_ulen = Diagcolumn[cpoint].currentrowindex-ustart-1;
      new_left =  GT_MAX(diag, -new_ulen);
      new_right = GT_MIN(right_dist, (GtWord)cpoint);

      evaluateDBcrosspoints(spacemanager, Diagcolumn, scorehandler,
                            edge, rowoffset, coloffset,
                            useq, ustart, new_ulen,
                            vseq, vstart, cpoint,
                            new_left, new_right);

    }
    else if (Diagcolumn[cpoint].last_type == Linear_I)
    {
      new_left = GT_MAX(left_dist,
                 -((GtWord)Diagcolumn[cpoint].currentrowindex-(GtWord)ustart));
      new_right = GT_MIN((GtWord)cpoint-1, diag);
      evaluateDBcrosspoints(spacemanager, Diagcolumn, scorehandler,
                            edge, rowoffset, coloffset, useq, ustart,
                            Diagcolumn[cpoint].currentrowindex-ustart,
                            vseq, vstart, cpoint-1,
                            new_left, new_right);
    }
    else if (Diagcolumn[cpoint].last_type == Linear_R ||
             Diagcolumn[cpoint].last_type  == Linear_X)
    {
      gt_assert(false); /* this cant be the first crosspoint or
                           it have to be 0-entry */
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %r8, %r15
movl %ecx, %ebx
movq %rsi, (%rsp)
movq %rdi, 0x8(%rsp)
movq 0x158(%rsp), %r12
movq 0x140(%rsp), %r13
testq %r13, %r13
je 0x133ab8
testq %r12, %r12
je 0x133afb
movq %rdx, %r14
movq %r9, 0x50(%rsp)
movq 0x168(%rsp), %rbp
movl $0x8, %ecx
movl $0x8, %r8d
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x15bd8d
testb %al, %al
movq %r15, 0x30(%rsp)
movl %ebx, 0x1c(%rsp)
movq %r14, 0x10(%rsp)
je 0x133b14
movq 0x160(%rsp), %rsi
cmpq $0x0, (%rsp)
je 0x13450d
movq 0x158(%rsp), %rcx
movq 0x140(%rsp), %r13
subq %r13, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
andq %rcx, %rdx
xorl %eax, %eax
testq %rcx, %rcx
cmovgq %rcx, %rax
cmpq %rsi, %rdx
movq 0x168(%rsp), %r12
jl 0x134517
cmpq %r12, %rax
jg 0x134517
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq 0x158(%rsp), %rbp
movq %rbp, %rdx
callq 0x15be6b
movq %rax, %rbx
movq %rax, %rdi
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
movq %r13, %rcx
movq 0x148(%rsp), %r8
movq 0x150(%rsp), %r13
movq %r13, %r9
pushq %r14
pushq %r12
movq %rbp, %r12
pushq 0x170(%rsp)
pushq %rbp
callq 0x132b94
addq $0x20, %rsp
testq %rbx, %rbx
movq 0x138(%rsp), %rbp
je 0x13451c
movq %r14, %rdi
callq 0x171437
movq %rax, %rdi
movq 0x130(%rsp), %rax
addq %rbp, %rax
decq %rax
movq %rax, 0x20(%rsp)
movq 0x148(%rsp), %rax
leaq -0x1(%rax,%r13), %rax
movq %rax, 0x48(%rsp)
leaq (%r12,%r12,2), %rax
movq (%rsp), %rcx
leaq 0x8(%rcx,%rax,8), %rax
movq %rax, 0x38(%rsp)
movb $0x1, %al
movb $0x1, %r14b
movq %r12, %rbp
movq 0x140(%rsp), %rsi
movl %eax, %ecx
andb %r14b, %cl
testb $0x1, %cl
je 0x1339ec
movq -0x8(%rbx,%rsi,8), %rax
movq (%rbx,%rsi,8), %rcx
movq (%rcx,%rbp,8), %rcx
movq %rcx, 0x28(%rsp)
movq %rsi, %r12
movq -0x8(%rax,%rbp,8), %r13
movq 0x20(%rsp), %rax
movzbl (%rax,%rsi), %esi
movq 0x48(%rsp), %rax
movzbl (%rax,%rbp), %edx
movq %rbx, %r15
movq %rdi, %rbx
movq 0x10(%rsp), %rdi
callq 0x171466
movq %rbx, %rdi
movq %r15, %rbx
addq %r13, %rax
movq %r12, %rsi
movq 0x158(%rsp), %r12
cmpq %rax, 0x28(%rsp)
movq 0x30(%rsp), %r15
jne 0x1339f0
cmpq %r12, %rbp
jne 0x1339be
leaq (%rsi,%r15), %rax
movq 0x38(%rsp), %rcx
movq %rax, (%rcx)
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq (%rsp), %rdx
movl $0x0, 0x10(%rdx,%rax,8)
decq %rbp
leaq (%rsi,%r15), %rcx
decq %rcx
decq %rsi
movq %rcx, -0x10(%rdx,%rax,8)
jmp 0x133a8f
testb $0x1, %al
je 0x133a3f
movq -0x8(%rbx,%rsi,8), %rax
movq (%rbx,%rsi,8), %rcx
movq (%rax,%rbp,8), %rax
addq %rdi, %rax
cmpq %rax, (%rcx,%rbp,8)
jne 0x133a3f
cmpq %r12, %rbp
jne 0x133a17
leaq (%rsi,%r15), %rax
movq 0x38(%rsp), %rcx
movq %rax, (%rcx)
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq (%rsp), %rdx
movl $0x1, 0x10(%rdx,%rax,8)
leaq (%rsi,%r15), %rcx
decq %rcx
decq %rsi
movq %rcx, 0x8(%rdx,%rax,8)
jmp 0x133a8f
testb $0x1, %r14b
je 0x134503
movq (%rbx,%rsi,8), %rax
movq -0x8(%rax,%rbp,8), %rcx
addq %rdi, %rcx
cmpq %rcx, (%rax,%rbp,8)
jne 0x134503
leaq (%rsi,%r15), %rax
cmpq %r12, %rbp
jne 0x133a70
movq 0x38(%rsp), %rcx
movq %rax, (%rcx)
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movq (%rsp), %rdx
movl $0x2, 0x10(%rdx,%rcx,8)
decq %rbp
movq %rax, -0x10(%rdx,%rcx,8)
testq %rbp, %rbp
setne %r14b
testq %rsi, %rsi
setne %al
movq %rbp, %rcx
orq %rsi, %rcx
jne 0x133943
movl 0x1c(%rsp), %eax
movq (%rsp), %rcx
movl %eax, 0x10(%rcx)
jmp 0x134486
testq %r12, %r12
je 0x133aeb
incq %r12
cmpq $0x3, %r12
movl $0x2, %eax
cmovaeq %r12, %rax
decq %rax
movq (%rsp), %rcx
addq $0x28, %rcx
movq %r15, -0x8(%rcx)
movl $0x2, (%rcx)
addq $0x18, %rcx
decq %rax
jne 0x133ad8
movq (%rsp), %rax
movq %r15, 0x8(%rax)
movl %ebx, 0x10(%rax)
jmp 0x134486
movl %ebx, %eax
movq (%rsp), %rcx
movq %r13, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x0, 0x10(%rcx)
jmp 0x134486
subq %r13, %r12
movq %r12, %rdx
sarq $0x3f, %rdx
andq %r12, %rdx
xorl %eax, %eax
testq %r12, %r12
cmovgq %r12, %rax
movq 0x160(%rsp), %rcx
cmpq %rcx, %rdx
jl 0x134512
cmpq %rbp, %rax
jg 0x134512
leaq (%rcx,%rbp), %r12
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0x15be28
movq %rax, %r13
movq %rbp, %rdi
callq 0x15be34
movq %rax, 0x58(%rsp)
movq %r14, %rdi
callq 0x171437
movq %r13, %r9
movq %rax, %r11
movq $0x0, (%r13)
movq $-0x1, %rax
cmpq $0x1, %r12
ja 0x133b9c
movq (%rsp), %rax
movl %ebx, 0x10(%rax)
movq $-0x1, (%rax)
movq %r15, 0x8(%rax)
xorl %eax, %eax
movq %r12, %r8
sarq %r8
movq 0x160(%rsp), %r13
negq %r13
movq 0x58(%rsp), %r10
movq %rax, (%r10)
movq 0x168(%rsp), %rbp
movq 0x130(%rsp), %rdi
jae 0x133c1b
leaq 0x1(%r15), %rax
movq %r8, %rcx
notq %rcx
xorl %edx, %edx
movq (%r9,%rdx,8), %rsi
addq %r11, %rsi
movq %rsi, 0x8(%r9,%rdx,8)
cmpq %rdx, %rcx
jne 0x133c0a
movq (%rsp), %rdi
movl $0x1, 0x10(%rdi)
movq $-0x1, (%rdi)
leaq (%rax,%rdx), %rsi
movq %rsi, 0x8(%rdi)
movq 0x130(%rsp), %rdi
xorl %esi, %esi
jmp 0x133c0e
movq (%r10,%rdx,8), %rsi
movq %rsi, 0x8(%r10,%rdx,8)
incq %rdx
cmpq %rdx, %r13
jne 0x133bd3
movq %r12, 0xa0(%rsp)
movq 0x138(%rsp), %rcx
leaq (%rdi,%rcx), %rax
movq %rax, 0xb8(%rsp)
leaq (%rdi,%rcx), %rax
decq %rax
movq %rax, 0xa8(%rsp)
movq 0x148(%rsp), %rax
movq 0x150(%rsp), %rcx
addq %rcx, %rax
decq %rax
movq %rax, 0x68(%rsp)
movq 0x140(%rsp), %rax
cmpq %rax, %r13
sete %r15b
movl $0x1, %edi
movl $0x1, %ecx
subq %rax, %rcx
movq %rcx, 0xb0(%rsp)
xorl %esi, %esi
movq %r8, 0x40(%rsp)
movq %r8, 0x60(%rsp)
movq $-0x1, %rcx
movq $-0x1, %r14
movq %r9, 0x78(%rsp)
movq %r11, 0x70(%rsp)
movq (%r9), %rdx
movq (%r10), %r12
cmpq %rbp, %rdi
jbe 0x133ccc
cmpq %r13, %rsi
je 0x133cc1
movq 0x8(%r9), %r14
movq 0x8(%r10), %rcx
incq %rsi
movq %r14, %rbx
movq %rcx, %rbp
jmp 0x133cd2
movq %rdx, %rbx
movq %r12, %rbp
xorl %r14d, %r14d
cmpq 0x140(%rsp), %r13
setb %r14b
leaq (%r14,%r13), %r8
movq %r8, %rax
subq %rsi, %rax
movq %rax, 0xd8(%rsp)
setne %al
orb %r15b, %al
testb $0x1, %al
movq $-0x1, %rax
cmoveq %rax, %rbx
cmoveq %rax, %rbp
leaq (%rbx,%r11), %rcx
cmpq $-0x1, %rbx
cmoveq %rbx, %rcx
movq %rcx, (%r9)
testq %rsi, %rsi
movq %rdi, 0x38(%rsp)
movq %rsi, 0x48(%rsp)
je 0x133d93
cmpq $-0x1, %rdx
je 0x133d8e
movq 0xa8(%rsp), %rax
movq 0x48(%rsp), %rcx
movzbl (%rax,%rcx), %esi
movq 0x68(%rsp), %rax
movq %rdx, 0x20(%rsp)
movzbl (%rax,%rdi), %edx
movq 0x10(%rsp), %rdi
movq %r13, 0x28(%rsp)
movl %r15d, %r13d
movq %r8, %r15
callq 0x171466
movq %r15, %r8
movl %r13d, %r15d
movq 0x28(%rsp), %r13
movq 0x48(%rsp), %rsi
movq 0x38(%rsp), %rdi
movq 0x70(%rsp), %r11
movq 0x58(%rsp), %r10
movq 0x78(%rsp), %r9
addq 0x20(%rsp), %rax
movq (%r9), %rcx
cmpq %rcx, %rax
jbe 0x133da3
movq %rdi, %rcx
subq %rsi, %rcx
movl $0x2, %eax
movq %rbp, %r12
jmp 0x133dae
movq %rax, (%r9)
movq %rdi, %rcx
subq %rsi, %rcx
xorl %eax, %eax
cmpq 0x40(%rsp), %rcx
jne 0x133dd5
leaq (%rdi,%rdi,2), %rcx
movq (%rsp), %rdx
movl %eax, 0x10(%rdx,%rcx,8)
movq %r12, (%rdx,%rcx,8)
movq 0x30(%rsp), %rax
addq %rsi, %rax
movq %rax, 0x8(%rdx,%rcx,8)
movq %rdi, %r12
movq %r12, (%r10)
leaq 0x1(%rsi), %rax
cmpq %r8, %rax
jbe 0x133dec
movq %rbx, %r14
movq %rbp, %rcx
jmp 0x134009
leaq (%rdi,%rdi,2), %rax
movq (%rsp), %rcx
leaq (%rcx,%rax,8), %rax
movq %rax, 0xd0(%rsp)
movq 0xb8(%rsp), %rax
addq %rsi, %rax
movq %rax, 0xe0(%rsp)
movq 0xb0(%rsp), %rax
addq %rsi, %rax
movq %rax, 0xc8(%rsp)
movq 0x30(%rsp), %rax
addq %rsi, %rax
movq %rax, 0xc0(%rsp)
movq 0x60(%rsp), %rax
addq %rsi, %rax
movq %rax, 0xf0(%rsp)
movq %rsi, %rax
subq %r13, %rax
subq %r14, %rax
incq %rax
movq %rax, 0xe8(%rsp)
movl $0x2, %r13d
testb $0x1, %r15b
movzbl %r15b, %r15d
jne 0x133eb2
movq 0xe8(%rsp), %rax
addq %r13, %rax
cmpq $0x2, %rax
jne 0x133eb2
cmpq 0x140(%rsp), %r8
movl $0x1, %eax
cmovel %eax, %r15d
movl %r15d, 0x28(%rsp)
movq $-0x1, 0x20(%rsp)
movq 0xd8(%rsp), %r12
movq $-0x1, %r14
movq $-0x1, %rcx
jmp 0x133efa
movq 0xc8(%rsp), %rax
addq %r13, %rax
leaq (%rsi,%r13), %rcx
decq %rcx
leaq -0x1(%r13), %r12
testq %rsi, %rsi
cmovneq %r13, %rcx
movq (%r10,%rcx,8), %rdx
movq %rdx, 0x20(%rsp)
movq (%r9,%rcx,8), %r14
cmpq $0x2, %rax
movl $0x1, %eax
cmovel %eax, %r15d
movl %r15d, 0x28(%rsp)
leaq (%r14,%r11), %rcx
cmpq $-0x1, %r14
cmoveq %r14, %rcx
movq %r8, %r15
movq %rcx, (%r9,%r12,8)
cmpq $-0x1, %rbx
je 0x133f40
movq 0xe0(%rsp), %rax
movzbl -0x2(%rax,%r13), %esi
movq 0x68(%rsp), %rax
movzbl (%rax,%rdi), %edx
movq 0x10(%rsp), %rdi
callq 0x171466
movq 0x70(%rsp), %r11
movq 0x58(%rsp), %r10
movq 0x78(%rsp), %r9
addq %rbx, %rax
movq (%r9,%r12,8), %rcx
jmp 0x133f47
movq $-0x1, %rax
movq %rcx, %rdx
cmpq %rcx, %rax
ja 0x133f56
movq %rax, (%r9,%r12,8)
movq %rax, %rdx
movq -0x8(%r9,%r12,8), %rdi
leaq (%rdi,%r11), %rsi
cmpq $-0x1, %rdi
cmoveq %rdi, %rsi
cmpq %rdx, %rsi
movq %r15, %r8
jae 0x133f93
movq %rsi, (%r9,%r12,8)
movq -0x8(%r10,%r12,8), %rbp
movl $0x1, %edx
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
movl 0x28(%rsp), %r15d
movq 0x20(%rsp), %rcx
jmp 0x133fb5
xorl %edx, %edx
cmpq %rcx, %rax
seta %dl
movq 0x20(%rsp), %rcx
cmovaq %rcx, %rbp
addl %edx, %edx
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
movl 0x28(%rsp), %r15d
movq 0xf0(%rsp), %rax
addq %r13, %rax
cmpq $0x2, %rax
jne 0x133fe9
movq 0xd0(%rsp), %rbx
movl %edx, 0x10(%rbx)
movq %rbp, (%rbx)
movq 0xc0(%rsp), %rax
addq %r13, %rax
decq %rax
movq %rax, 0x8(%rbx)
movq %rdi, %rbp
movq %rbp, (%r10,%r12,8)
leaq (%rsi,%r13), %rax
incq %rax
incq %r13
decq %rax
movq %rcx, %rbp
movq %r14, %rbx
cmpq %r8, %rax
jbe 0x133e60
incq %rdi
decq 0x60(%rsp)
movq %r8, %r13
movq 0x158(%rsp), %r12
cmpq %r12, %rdi
movq 0x168(%rsp), %rbp
jbe 0x133ca9
subq %rsi, %r8
movq (%r10,%r8,8), %r14
cmpq $-0x1, %r14
movq 0x50(%rsp), %r9
je 0x134125
movq %r12, %rax
subq %r14, %rax
movq 0x30(%rsp), %rdx
movq %r12, %rsi
movq 0x130(%rsp), %r12
movq 0x150(%rsp), %rdi
movq 0x140(%rsp), %r15
movq 0x40(%rsp), %r13
je 0x13422f
movq %r15, %rcx
subq %rsi, %rcx
addq %r13, %rcx
jle 0x1341c5
leaq (%r14,%r14,2), %rcx
movq (%rsp), %rsi
leaq (%rsi,%rcx,8), %rbx
movq 0x10(%rbx), %rcx
movq %rcx, 0x90(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x160(%rsp), %rcx
subq %r13, %rcx
movq 0x8(%rbx), %r10
leaq 0x1(%r10), %r8
addq %rdx, %r15
movq %r8, %rdx
subq %r15, %rdx
leaq 0x1(%rcx), %r11
cmpq %rdx, %rcx
cmovlq %rdx, %r11
notq %r10
addq %r15, %r10
addq %r14, %r9
leaq (%r14,%rdi), %r15
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %rdx
movl $0x1, %ecx
pushq $0x0
pushq %r11
pushq %rax
pushq %r15
pushq 0x168(%rsp)
pushq %r10
pushq %r8
pushq %r12
callq 0x1337af
addq $0x40, %rsp
movq 0x90(%rsp), %rax
movq %rax, 0x10(%rbx)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rbx)
jmp 0x13422f
movq 0x40(%rsp), %r15
testq %r15, %r15
movq 0x30(%rsp), %r8
movq 0x130(%rsp), %rax
movq 0x150(%rsp), %rbx
movq 0x140(%rsp), %r14
js 0x134194
cmpq $0x2, 0xa0(%rsp)
movl 0x1c(%rsp), %ecx
movq 0x10(%rsp), %rdx
movq 0x138(%rsp), %r10
movq 0x148(%rsp), %r11
jb 0x134521
decq %r15
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
pushq %r15
pushq 0x168(%rsp)
pushq %r12
pushq %rbx
pushq %r11
pushq %r14
pushq %r10
jmp 0x1341bf
incq %r15
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
movq 0x10(%rsp), %rdx
movl 0x1c(%rsp), %ecx
pushq %rbp
pushq %r15
pushq %r12
pushq %rbx
pushq 0x168(%rsp)
pushq %r14
pushq 0x168(%rsp)
pushq %rax
jmp 0x1344f5
movq %r13, %rax
notq %rax
addq %rbp, %rax
movq %r14, %r10
notq %r10
addq %rsi, %r10
cmpq %r10, %rax
cmovgeq %r10, %rax
leaq (%r14,%r14,2), %rcx
movq (%rsp), %rsi
leaq (%rsi,%rcx,8), %rsi
addq $0x18, %rsi
movq -0x10(%rsi), %r8
addq %rdx, %r15
subq %r8, %r15
addq %r14, %r9
incq %r9
leaq 0x1(%rdi,%r14), %r11
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movl $0x2, %ecx
pushq %rax
pushq $-0x1
pushq %r10
pushq %r11
pushq 0x168(%rsp)
pushq %r15
pushq %r8
pushq %r12
callq 0x1337af
addq $0x40, %rsp
leaq (%r14,%r14,2), %rax
movq (%rsp), %rcx
leaq (%rcx,%rax,8), %rax
movq (%rax), %r12
cmpq $-0x1, %r12
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
je 0x13425a
movq %r14, %r15
movq %rax, %rbx
jmp 0x1343f0
movq %r13, %rdx
notq %r13
addq %rbp, %r13
movq 0x50(%rsp), %rcx
incq %rcx
movq %rcx, 0x28(%rsp)
movq 0x150(%rsp), %rcx
incq %rcx
movq %rcx, 0x20(%rsp)
movq 0x160(%rsp), %rbp
subq %rdx, %rbp
incq %rbp
movq %r12, %r15
leaq (%r12,%r12,2), %rcx
movq (%rsp), %rdx
leaq (%rdx,%rcx,8), %rbx
movq (%rbx), %r12
movl 0x10(%rax), %ecx
testl %ecx, %ecx
je 0x1343db
cmpl $0x1, %ecx
je 0x134371
cmpl $0x2, %ecx
jne 0x134508
movq %r14, %rcx
subq %r15, %rcx
cmpq $0x1, %rcx
je 0x1343db
movq 0x10(%rbx), %rcx
movq %rcx, 0x90(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x8(%rbx), %r8
movq %r8, %r10
notq %r10
addq 0x8(%rax), %r10
movq %r10, %rcx
negq %rcx
movq %rbp, %rax
cmpq %rcx, %rbp
ja 0x134303
movq %rcx, %rax
incq %r8
movq 0x50(%rsp), %rcx
leaq (%r15,%rcx), %r9
movq 0x150(%rsp), %rcx
leaq (%r15,%rcx), %r11
movq %r15, %rcx
notq %rcx
addq %rcx, %r14
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %rdx
movl $0x1, %ecx
pushq $0x0
pushq %rax
pushq %r14
pushq %r11
pushq 0x168(%rsp)
pushq %r10
pushq %r8
pushq 0x168(%rsp)
callq 0x1337af
addq $0x40, %rsp
movq 0x90(%rsp), %rax
movq %rax, 0x10(%rbx)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rbx)
jmp 0x1343d8
movq %r15, %rcx
notq %rcx
addq %rcx, %r14
cmpq %r14, %r13
movq %r14, %r10
cmovlq %r13, %r10
movq 0x8(%rbx), %r8
movq %r8, %r11
notq %r11
addq 0x8(%rax), %r11
leaq 0x18(%rbx), %rsi
movq 0x28(%rsp), %rax
leaq (%rax,%r15), %r9
movq 0x20(%rsp), %rax
addq %r15, %rax
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movl $0x2, %ecx
pushq %r10
pushq $-0x1
pushq %r14
pushq %rax
pushq 0x168(%rsp)
pushq %r11
pushq %r8
pushq 0x168(%rsp)
callq 0x1337af
addq $0x40, %rsp
movq %r12, (%rbx)
testq %r15, %r15
je 0x1343f0
movq %rbx, %rax
movq %r15, %r14
cmpq $-0x1, %r12
jne 0x13428e
movq 0x150(%rsp), %r12
movq %r12, %rax
movq 0x50(%rsp), %r9
subq %r9, %rax
cmpq %r15, %rax
movq 0x130(%rsp), %r11
je 0x134486
movl 0x10(%rbx), %eax
cmpq $0x3, %rax
ja 0x134486
leaq 0x2467a4(%rip), %rcx    # 0x37abc4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x138(%rsp), %r14
movq %r14, %rax
notq %rax
addq 0x8(%rbx), %rax
movq %rax, %r10
negq %r10
movq 0x40(%rsp), %rcx
cmpq %r10, %rcx
cmovaq %rcx, %r10
movq 0x168(%rsp), %rbx
cmpq %rbx, %r15
cmovlq %r15, %rbx
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
movq 0x10(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movq 0x30(%rsp), %r8
pushq %rbx
pushq %r10
pushq %r15
pushq %r12
pushq 0x168(%rsp)
pushq %rax
pushq %r14
jmp 0x1344f3
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %rax
movq 0x138(%rsp), %rbx
movq %rbx, %r10
subq %rax, %r10
movq 0x160(%rsp), %rcx
cmpq %rcx, %r10
cmovleq %rcx, %r10
decq %r15
movq 0x40(%rsp), %r14
cmpq %r14, %r15
cmovlq %r15, %r14
subq %rbx, %rax
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
movq 0x10(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movq 0x30(%rsp), %r8
pushq %r14
pushq %r10
pushq %r15
pushq %r12
pushq 0x168(%rsp)
pushq %rax
pushq %rbx
pushq %r11
callq 0x1337af
addq $0x138, %rsp            # imm = 0x138
jmp 0x13448d
callq 0x3f225
callq 0x3f141
callq 0x3f2d0
callq 0x3f1ec
callq 0x3f297
callq 0x3f25e
callq 0x3f1b3
callq 0x3f17a
nop