// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idxlocalidp.c
// Function: gt_processelemLocaliTracebackstate
void gt_processelemLocaliTracebackstate(Limdfsconstinfo *lci,
                                     GtUchar currentchar,
                                     const void *aliasstate)
{
  LocaliTracebackstate *tbs = &lci->tbs;
  const LocaliColumn *column = (const LocaliColumn *) aliasstate;

  while (true)
  {
    /*
    printf(" coord(i="GT_WU",j="GT_WU") with ",tbs->querypos,
                                       (GtUword) tbs->dbcurrent);
    printf("cellvalue="GT_WD", ",column->colvalues[tbs->querypos].bestcell);
    */
    switch (column->colvalues[tbs->querypos].tracebit)
    {
      case Insertbit:
        /* printf("insertbit\n"); */
        gt_alignment_add_insertion(tbs->alignment);
        gt_assert(tbs->dbcurrent > 0);
        tbs->dbcurrent--;
        tbs->spaceGtUchardbsubstring[tbs->dbcurrent] = currentchar;
        return;
      case Replacebit:
        /* printf("replacebit\n"); */
        gt_alignment_add_replacement(tbs->alignment);
        gt_assert(tbs->dbcurrent > 0);
        tbs->dbcurrent--;
        tbs->spaceGtUchardbsubstring[tbs->dbcurrent] = currentchar;
        gt_assert(tbs->querypos > 0);
        tbs->querypos--;
        return;
      case Deletebit:
        /* printf("deletebit\n"); */
        gt_alignment_add_deletion(tbs->alignment);
        gt_assert(tbs->querypos > 0);
        tbs->querypos--;
        break; /* stay in the same column => so next iteration */
      case Notraceback:
        fprintf(stderr,"tracebit = Notraceback not allowed\n");
        fprintf(stderr,"column->colvalues[tbs->querypos].bestcell="GT_WD"\n",
                        column->colvalues[tbs->querypos].bestcell);
        exit(GT_EXIT_PROGRAMMING_ERROR);
      default:
        fprintf(stderr,"tracebit = %d not allowed\n",
                (int) column->colvalues[tbs->querypos].tracebit);
        exit(GT_EXIT_PROGRAMMING_ERROR);
    }
  }
}

// Assembly:
subq $0x38, %rsp
movb %sil, %al
movq %rdi, 0x30(%rsp)
movb %al, 0x2f(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rax
addq $0x40, %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rcx
shlq $0x4, %rcx
movl 0x8(%rax,%rcx), %eax
movq %rax, 0x8(%rsp)
subq $0x3, %rax
ja 0x25913e
movq 0x8(%rsp), %rax
leaq 0x3218cf(%rip), %rcx    # 0x57a7f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x12a4f0
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
ja 0x258f7b
movq 0x3e3056(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2bd0bf(%rip), %rsi    # 0x516013
leaq 0x3218bd(%rip), %rdx    # 0x57a818
leaq 0x3218c9(%rip), %rcx    # 0x57a82b
leaq 0x321897(%rip), %r8     # 0x57a800
movl $0x2c8, %r9d            # imm = 0x2C8
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x258f7d
movq 0x18(%rsp), %rax
movq (%rax), %rcx
addq $-0x1, %rcx
movq %rcx, (%rax)
movb 0x2f(%rsp), %dl
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movb %dl, (%rax,%rcx)
jmp 0x259180
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x12a410
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
ja 0x258ffa
movq 0x3e2fd7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2bd040(%rip), %rsi    # 0x516013
leaq 0x32183e(%rip), %rdx    # 0x57a818
leaq 0x32184a(%rip), %rcx    # 0x57a82b
leaq 0x321818(%rip), %r8     # 0x57a800
movl $0x2cf, %r9d            # imm = 0x2CF
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x258ffc
movq 0x18(%rsp), %rax
movq (%rax), %rcx
addq $-0x1, %rcx
movq %rcx, (%rax)
movb 0x2f(%rsp), %dl
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movb %dl, (%rax,%rcx)
movq 0x18(%rsp), %rax
cmpq $0x0, 0x10(%rax)
ja 0x259067
movq 0x3e2f6a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2bcfd3(%rip), %rsi    # 0x516013
leaq 0x321807(%rip), %rdx    # 0x57a84e
leaq 0x3217dd(%rip), %rcx    # 0x57a82b
leaq 0x3217ab(%rip), %r8     # 0x57a800
movl $0x2d2, %r9d            # imm = 0x2D2
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x259069
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x10(%rax)
jmp 0x259180
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x12a480
movq 0x18(%rsp), %rax
cmpq $0x0, 0x10(%rax)
ja 0x2590d1
movq 0x3e2f00(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2bcf69(%rip), %rsi    # 0x516013
leaq 0x32179d(%rip), %rdx    # 0x57a84e
leaq 0x321773(%rip), %rcx    # 0x57a82b
leaq 0x321741(%rip), %r8     # 0x57a800
movl $0x2d8, %r9d            # imm = 0x2D8
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2590d3
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x10(%rax)
jmp 0x25917b
movq 0x3e2eb0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x321766(%rip), %rsi    # 0x57a860
movb $0x0, %al
callq 0x199f0
movq 0x3e2e98(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdx
leaq 0x321757(%rip), %rsi    # 0x57a884
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
movq 0x3e2e5b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
leaq 0x321749(%rip), %rsi    # 0x57a8b3
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
jmp 0x258eed
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)