// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-shulen.c
// Function: processleafedge_shulen
static int processleafedge_shulen(bool firstsucc,
                                  GtUword fatherdepth,
                                  GtBUinfo_shulen *father,
                                  GtUword leafnumber,
                                  GtBUstate_shulen *state,
                                  GT_UNUSED GtError *err)
{
  GtUword gnum;

#ifdef SHUDEBUG
  printf("processleafedge " GT_WU " firstsucc=%s, "
         " depth(father)=" GT_WU ", path=",
         leafnumber,
         firstsucc ? "true" : "false",
         fatherdepth);
  if (fatherdepth > 0)
  {
    gt_encseq_showatstartposwithdepth(stdout,
                                      state->encseq,
                                      GT_READMODE_FORWARD,
                                      leafnumber,
                                      fatherdepth);
  }
  printf("\n");
#endif
  if (state->file_to_genome_map != NULL)
  {
    gnum = state->file_to_genome_map[gt_encseq_filenum(state->encseq,
                                                       leafnumber)];
  } else
  {
    gnum = gt_encseq_filenum(state->encseq,leafnumber);
  }
  if (firstsucc)
  {
    gt_assert(father != NULL);
    if (father->gnumdist == NULL)
    {
      father->gnumdist
        = gt_malloc(sizeof (*father->gnumdist) * state->numofdbfiles);
    }
    resetgnumdist_shulen(father,state->numofdbfiles);
#ifdef SHUDEBUG
    shownode(__LINE__,state,"father",father);
#endif
  } else
  {
#ifdef SHUDEBUG
    shownode(__LINE__,state,"father",father);
#endif
    shu_compute_leaf_edge_contrib(state,father->gnumdist,gnum,fatherdepth);
  }
  father->gnumdist[gnum]++;
#ifdef SHUDEBUG
  printf("gnumdist[id=" GT_WU ",filenum=" GT_WU "]=" GT_WU "\n",father->id,gnum,
                                              father->gnumdist[gnum]);
  state->lastleafnumber = leafnumber;
#endif
  return 0;
}

// Assembly:
subq $0x48, %rsp
movb %dil, %al
andb $0x1, %al
movb %al, 0x47(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq 0x20(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x23f236
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0xc2af0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
jmp 0x23f24e
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0xc2af0
movq %rax, 0x10(%rsp)
testb $0x1, 0x47(%rsp)
je 0x23f2e4
jmp 0x23f25b
cmpq $0x0, 0x30(%rsp)
jne 0x23f29b
movq 0x3fcd36(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2d6d9f(%rip), %rsi    # 0x516013
leaq 0x338780(%rip), %rdx    # 0x5779fb
leaq 0x338788(%rip), %rcx    # 0x577a0a
leaq 0x3386a6(%rip), %r8     # 0x57792f
movl $0xe7, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23f29d
movq 0x30(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x23f2d0
movq 0x20(%rsp), %rax
movq (%rax), %rdi
shlq $0x3, %rdi
leaq 0x338674(%rip), %rsi    # 0x57792f
movl $0xeb, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %rsi
callq 0x23f4c0
jmp 0x23f300
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rax
movq (%rax), %rsi
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rcx
callq 0x23f510
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
addq $0x1, %rdx
movq %rdx, (%rax,%rcx,8)
xorl %eax, %eax
addq $0x48, %rsp
retq