// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-errfind.c
// Function: processlcpinterval_errfind
static int processlcpinterval_errfind(GtUword lcp,
    GT_UNUSED GtBUinfo_errfind *info, GtBUstate_errfind *state,
    GT_UNUSED GtError *err)
{
  if (lcp == state->k - 1 && !gt_errfind_are_all_trusted(state))
  {
    GtUchar trusted_char = gt_errfind_trusted_char(state);
    if (trusted_char != (GtUchar)GT_UNDEF_UCHAR)
    {
      unsigned int cnum;
      for (cnum = 0; cnum < state->alphasize && state->count[cnum] > 0; cnum++)
      {
        if (state->count[cnum] < state->c)
        {
          GtUword i;
          for (i = 0; i < state->count[cnum]; i++)
          {
            GtUword pos = state->kpositions[cnum * state->c + i];
            GtUchar newchar = trusted_char;
            if (pos >= state->firstmirrorpos)
            {
              pos = state->totallength - 1UL - pos;
              newchar = (GtUchar)3 - newchar;
            }
            if (state->editor != NULL)
            {
#ifdef RDJ_ERRFIND_DEBUG
              printf(""GT_WU":%u\n", pos, (unsigned int)newchar);
#endif
              gt_twobitenc_editor_edit(state->editor, pos, newchar);
            }
          }
        }
      }
    }
  }
  return 0;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq 0x40(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x20(%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x28466f
movq 0x30(%rsp), %rdi
callq 0x284820
testb $0x1, %al
jne 0x28466f
movq 0x30(%rsp), %rdi
callq 0x284890
movb %al, 0x27(%rsp)
movzbl 0x27(%rsp), %eax
cmpl $0xff, %eax
je 0x28466d
movl $0x0, 0x20(%rsp)
movl 0x20(%rsp), %ecx
movq 0x30(%rsp), %rdx
xorl %eax, %eax
cmpl 0x18(%rdx), %ecx
movb %al, 0xe(%rsp)
jae 0x284568
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movl 0x20(%rsp), %ecx
cmpq $0x0, (%rax,%rcx,8)
seta %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0x284575
jmp 0x28466b
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movl 0x20(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq 0x30(%rsp), %rcx
cmpq 0x28(%rcx), %rax
jae 0x284659
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x38(%rcx), %rcx
movl 0x20(%rsp), %edx
cmpq (%rcx,%rdx,8), %rax
jae 0x284657
movq 0x30(%rsp), %rax
movq 0x30(%rax), %rax
movl 0x20(%rsp), %ecx
movq 0x30(%rsp), %rdx
imulq 0x28(%rdx), %rcx
addq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movb 0x27(%rsp), %al
movb %al, 0xf(%rsp)
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x58(%rcx), %rax
jb 0x28461e
movq 0x30(%rsp), %rax
movq 0x60(%rax), %rax
subq $0x1, %rax
subq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movzbl 0xf(%rsp), %ecx
movl $0x3, %eax
subl %ecx, %eax
movb %al, 0xf(%rsp)
movq 0x30(%rsp), %rax
cmpq $0x0, 0x68(%rax)
je 0x284642
movq 0x30(%rsp), %rax
movq 0x68(%rax), %rdi
movq 0x10(%rsp), %rsi
movzbl 0xf(%rsp), %edx
callq 0x2a0380
jmp 0x284644
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x28459e
jmp 0x284659
jmp 0x28465b
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0x28453b
jmp 0x28466d
jmp 0x28466f
xorl %eax, %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)