// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain2dim_retrace_previousinchain
static void gt_chain2dim_retrace_previousinchain(GtChain2Dim *chain,
                                   const GtChain2Dimmatchtable *matchtable,
                                   GtUword retracestart)
{
  GtUword matchnum, lengthofchain;

  chain->storedinreverseorder = false;
  for (lengthofchain = 0, matchnum = retracestart;
       matchnum != GT_CHAIN2DIM_UNDEFPREVIOUS; lengthofchain++)
  {
    /* Use previousinchain */
    matchnum = matchtable->matches[matchnum].previousinchain;
  }
  MINARRAYSPACE(&chain->chainedmatches,GtChain2Dimref,lengthofchain);
  chain->chainedmatches.nextfreeGtChain2Dimref = lengthofchain;
  for (matchnum = retracestart;
       matchnum != GT_CHAIN2DIM_UNDEFPREVIOUS;
       /* Use previousinchain */
       matchnum = matchtable->matches[matchnum].previousinchain)
  {
    gt_assert(lengthofchain > 0);
    lengthofchain--;
    chain->chainedmatches.spaceGtChain2Dimref[lengthofchain] = matchnum;
  }
  gt_assert(lengthofchain == 0);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
movb $0x0, 0x20(%rax)
movq $0x0, (%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x18(%rcx), %rax
je 0x20ad26
movq 0x18(%rsp), %rax
movq (%rax), %rax
imulq $0x50, 0x8(%rsp), %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movq %rax, 0x8(%rsp)
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x20acee
jmp 0x20ad28
movq (%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x20ad75
movq (%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
leaq 0x3667a8(%rip), %rdx    # 0x571508
movl $0x1a7, %ecx            # imm = 0x1A7
callq 0xe8540
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
jmp 0x20ad77
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x20adba
movq 0x431217(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x30b280(%rip), %rsi    # 0x516013
leaq 0x366c91(%rip), %rdx    # 0x571a2b
leaq 0x366cc0(%rip), %rcx    # 0x571a61
leaq 0x366760(%rip), %r8     # 0x571508
movl $0x1a7, %r9d            # imm = 0x1A7
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x20adbc
jmp 0x20adbe
movq (%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x18(%rcx), %rax
je 0x20ae6c
jmp 0x20adeb
cmpq $0x0, (%rsp)
ja 0x20ae2a
movq 0x4311a7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x30b210(%rip), %rsi    # 0x516013
leaq 0x366c7c(%rip), %rdx    # 0x571a86
leaq 0x366c50(%rip), %rcx    # 0x571a61
leaq 0x3666f0(%rip), %r8     # 0x571508
movl $0x1ae, %r9d            # imm = 0x1AE
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x20ae2c
movq (%rsp), %rax
addq $-0x1, %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq (%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rsp), %rax
movq (%rax), %rax
imulq $0x50, 0x8(%rsp), %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0x20add5
jmp 0x20ae6e
cmpq $0x0, (%rsp)
je 0x20aead
movq 0x431124(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x30b18d(%rip), %rsi    # 0x516013
leaq 0x366c0b(%rip), %rdx    # 0x571a98
leaq 0x366bcd(%rip), %rcx    # 0x571a61
leaq 0x36666d(%rip), %r8     # 0x571508
movl $0x1b2, %r9d            # imm = 0x1B2
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x20aeaf
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)