// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/ft-eoplist.c
// Function: gt_eoplist_reader_next_segment
bool gt_eoplist_reader_next_segment(GtEoplistSegment *segment,
                                    GtEoplistReader *eoplist_reader,
                                    GtUword delta)
{
  while (true)
  {
    if (eoplist_reader->repcount > 0)
    {
      eoplist_reader->aligned_u++;
      eoplist_reader->aligned_v++;
      eoplist_reader->repcount--;
    } else
    {
      if (eoplist_reader->currenteop == eoplist_reader->endeoplist)
      {
        break;
      }
      switch (*eoplist_reader->currenteop)
      {
        case FT_EOPCODE_DELETION:
          eoplist_reader->aligned_u++;
          break;
        case FT_EOPCODE_INSERTION:
          eoplist_reader->aligned_v++;
          break;
        case FT_EOPCODE_MISMATCH:
          eoplist_reader->aligned_u++;
          eoplist_reader->aligned_v++;
          break;
        default:
          eoplist_reader->aligned_u++;
          eoplist_reader->aligned_v++;
          eoplist_reader->repcount = (GtUword) *eoplist_reader->currenteop;
      }
      eoplist_reader->currenteop += eoplist_reader->difference;
    }
    if (eoplist_reader->aligned_u == delta)
    {
      segment->aligned_u = delta;
      segment->aligned_v = eoplist_reader->aligned_v;
      eoplist_reader->aligned_u = eoplist_reader->aligned_v = 0;
      return true;
    }
  }
  if (eoplist_reader->aligned_v > 0 || eoplist_reader->aligned_u > 0)
  {
    gt_assert(eoplist_reader->repcount == 0);
    segment->aligned_u = eoplist_reader->aligned_u;
    segment->aligned_v = eoplist_reader->aligned_v;
    eoplist_reader->aligned_v = 0;
    eoplist_reader->aligned_u = 0;
    gt_assert(eoplist_reader->currenteop == eoplist_reader->endeoplist);
    return true;
  }
  return false;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x10(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jbe 0x4c32c7
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x38(%rax)
jmp 0x4c33ac
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x4c32df
jmp 0x4c3404
movq 0x10(%rsp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movl %eax, 0x4(%rsp)
subl $0xfd, %eax
je 0x4c3337
jmp 0x4c32f7
movl 0x4(%rsp), %eax
subl $0xfe, %eax
je 0x4c3311
jmp 0x4c3304
movl 0x4(%rsp), %eax
subl $0xff, %eax
je 0x4c3324
jmp 0x4c335b
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x28(%rax)
jmp 0x4c3393
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
jmp 0x4c3393
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
jmp 0x4c3393
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
movq 0x10(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x10(%rsp), %rax
movl 0x10(%rax), %edx
movq 0x10(%rsp), %rax
movq (%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
cmpq 0x8(%rsp), %rax
jne 0x4c33ff
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x30(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x28(%rax)
movb $0x1, 0x27(%rsp)
jmp 0x4c34fe
jmp 0x4c3283
movq 0x10(%rsp), %rax
cmpq $0x0, 0x30(%rax)
ja 0x4c3420
movq 0x10(%rsp), %rax
cmpq $0x0, 0x28(%rax)
jbe 0x4c34f9
jmp 0x4c3422
movq 0x10(%rsp), %rax
cmpq $0x0, 0x38(%rax)
je 0x4c3466
movq 0x178b6b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x52bd4(%rip), %rsi     # 0x516013
leaq 0xf519b(%rip), %rdx     # 0x5b85e1
leaq 0xf51b2(%rip), %rcx     # 0x5b85ff
leaq 0xf4ee4(%rip), %r8      # 0x5b8338
movl $0x1fb, %r9d            # imm = 0x1FB
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c3468
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x30(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x28(%rax)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
cmpq 0x8(%rcx), %rax
je 0x4c34f0
movq 0x178ae1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x52b4a(%rip), %rsi     # 0x516013
leaq 0xf514e(%rip), %rdx     # 0x5b861e
leaq 0xf5128(%rip), %rcx     # 0x5b85ff
leaq 0xf4e5a(%rip), %r8      # 0x5b8338
movl $0x200, %r9d            # imm = 0x200
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c34f2
movb $0x1, 0x27(%rsp)
jmp 0x4c34fe
movb $0x0, 0x27(%rsp)
movb 0x27(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopl (%rax)