// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-lcpintervals.c
// Function: gt_processlcpintervals
int gt_processlcpintervals(Sequentialsuffixarrayreader *ssar,
                           int (*processfunction)(void *,const Lcpinterval *),
                           void *processinfo,
                           GtLogger *logger,
                           GtError *err)
{
  Elcpstate *state;
  bool haserr = false;

  state = gt_malloc(sizeof (*state));
  state->processlcpinterval = processfunction;
  state->processinfo = processinfo;
  if (gt_depthfirstesa(ssar,
                       allocateDfsinfo_elcp,
                       freeDfsinfo_elcp,
                       state->processlcpinterval == NULL
                         ? processleafedge_elcp : NULL,
                       state->processlcpinterval == NULL
                         ? processbranchedge_elcp : NULL,
                       processcompletenode_elcp,
                       assignleftmostleaf_elcp,
                       assignrightmostleaf_elcp,
                       (Dfsstate *) state,
                       logger,
                       err) != 0)
  {
    haserr = true;
  }
  if (!haserr && state->processlcpinterval != NULL)
  {
    state->lastcompletenode.offset = 0;
    state->lastcompletenode.left = 0;
    state->lastcompletenode.right
      = gt_Sequentialsuffixarrayreader_totallength(ssar);
    if (state->processlcpinterval(state->processinfo,
                                  &state->lastcompletenode) != 0)
    {
      haserr = true;
    }
  }
  gt_free(state);
  return haserr ? -1 : 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movb $0x0, 0x37(%rsp)
movl $0x28, %edi
leaq 0x34450b(%rip), %rsi    # 0x57689c
movl $0x8d, %edx
callq 0xe80f0
movq %rax, 0x38(%rsp)
movq 0x58(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x50(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x60(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rdx
xorl %eax, %eax
movl %eax, %ecx
leaq 0x16b(%rip), %rax       # 0x232540
cmpq $0x0, %rdx
cmoveq %rax, %rcx
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rdx
xorl %eax, %eax
movl %eax, %r8d
leaq 0x1be(%rip), %rax       # 0x2325b0
cmpq $0x0, %rdx
cmoveq %rax, %r8
movq 0x38(%rsp), %r11
movq 0x48(%rsp), %r10
movq 0x40(%rsp), %rax
leaq 0xe0(%rip), %rsi        # 0x2324f0
leaq 0xf9(%rip), %rdx        # 0x232510
leaq 0x242(%rip), %r9        # 0x232660
leaq 0x37b(%rip), %r14       # 0x2327a0
leaq 0x394(%rip), %rbx       # 0x2327c0
movq %r14, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x4b5200
cmpl $0x0, %eax
je 0x232453
movb $0x1, 0x37(%rsp)
testb $0x1, 0x37(%rsp)
jne 0x2324ba
movq 0x38(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x2324ba
movq 0x38(%rsp), %rax
movq $0x0, (%rax)
movq 0x38(%rsp), %rax
movq $0x0, 0x8(%rax)
movq 0x60(%rsp), %rdi
callq 0x23bf20
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rdi
movq 0x38(%rsp), %rsi
callq *%rax
cmpl $0x0, %eax
je 0x2324b8
movb $0x1, 0x37(%rsp)
jmp 0x2324ba
movq 0x38(%rsp), %rdi
leaq 0x3443d6(%rip), %rsi    # 0x57689c
movl $0xac, %edx
callq 0xe88c0
movb 0x37(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)