// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/diagbandseed.c
// Function: gt_diagbandseed_plainsequence_next_segment
static void gt_diagbandseed_plainsequence_next_segment(
                         GtDiagbandSeedPlainSequence *ps,
                         const GtSequencePartsInfo *aseqranges,
                         GtUword currsegm_aseqnum,
                         const GtSequencePartsInfo *bseqranges,
                         GtUword currsegm_bseqnum)
{
  if (ps->previous_aseqnum == GT_UWORD_MAX ||
      ps->previous_aseqnum < currsegm_aseqnum)
  {
    if (ps->a_byte_sequence != NULL)
    {
      gt_diagbandseed_set_sequence(&ps->aseqorencseq,
                                   aseqranges,
                                   ps->a_byte_sequence,
                                   ps->a_first_seqstartpos,
                                   currsegm_aseqnum,
                                   ps->characters,
                                   ps->wildcardshow,
                                   ps->a_haswildcards,
                                   ps->a_encseq_for_seq_desc);
      ps->previous_aseqnum = currsegm_aseqnum;
    } else
    {
      GtUword seqstartpos = gt_sequence_parts_info_seqstartpos(aseqranges,
                                                             currsegm_aseqnum),
              seqendpos = gt_sequence_parts_info_seqendpos(aseqranges,
                                                           currsegm_aseqnum);

      GT_SEQORENCSEQ_ADD_SEQ_COORDS(&ps->aseqorencseq,
                                    seqstartpos,
                                    seqendpos - seqstartpos + 1);
    }
  } else
  {
    gt_assert(ps->previous_aseqnum == currsegm_aseqnum);
  }
  if (ps->b_byte_sequence != NULL)
  {
    gt_diagbandseed_set_sequence(&ps->bseqorencseq,
                                 bseqranges,
                                 ps->b_byte_sequence,
                                 ps->b_first_seqstartpos,
                                 currsegm_bseqnum,
                                 ps->characters,
                                 ps->wildcardshow,
                                 ps->b_haswildcards,
                                 ps->b_encseq_for_seq_desc);
  } else
  {
    GtUword seqstartpos = gt_sequence_parts_info_seqstartpos(bseqranges,
                                                             currsegm_bseqnum),
            seqendpos = gt_sequence_parts_info_seqendpos(bseqranges,
                                                         currsegm_bseqnum);

    GT_SEQORENCSEQ_ADD_SEQ_COORDS(&ps->bseqorencseq,
                                  seqstartpos,
                                  seqendpos - seqstartpos + 1);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
movq 0x98(%rdi), %rax
cmpq $-0x1, %rax
setne %cl
cmpq %rdx, %rax
setae %dl
testb %dl, %cl
jne 0x1a07b3
movq %rsi, %r13
movq 0x88(%rbx), %rdx
testq %rdx, %rdx
je 0x1a07bd
leaq 0x18(%rbx), %rdi
movq 0x8(%rbx), %r9
movq 0xa8(%rbx), %rcx
movzbl 0x10(%rbx), %eax
movzbl 0x1(%rbx), %r10d
subq $0x8, %rsp
movq %r13, %rsi
movq %r12, %r8
pushq 0xc0(%rbx)
pushq %r10
pushq %rax
callq 0x1a0c1e
addq $0x20, %rsp
movq %r12, 0x98(%rbx)
jmp 0x1a07ef
cmpq %r12, %rax
je 0x1a07ef
callq 0x5f3bd
movq %r13, %rdi
movq %r12, %rsi
callq 0x1eb7dc
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
callq 0x1eb802
cmpq $0x0, 0x20(%rbx)
je 0x1a0873
movq %rbp, 0x30(%rbx)
subq %rbp, %rax
incq %rax
movq %rax, 0x38(%rbx)
movq 0x90(%rbx), %rdx
testq %rdx, %rdx
je 0x1a0831
leaq 0x50(%rbx), %rdi
movq 0x8(%rbx), %r9
movq 0xb8(%rbx), %rcx
movzbl 0x10(%rbx), %eax
movzbl 0x2(%rbx), %r10d
subq $0x8, %rsp
movq %r15, %rsi
movq %r14, %r8
pushq 0xc8(%rbx)
pushq %r10
pushq %rax
callq 0x1a0c1e
addq $0x28, %rsp
jmp 0x1a0863
movq %r15, %rdi
movq %r14, %rsi
callq 0x1eb7dc
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x1eb802
cmpq $0x0, 0x58(%rbx)
je 0x1a086e
movq %r12, 0x68(%rbx)
subq %r12, %rax
incq %rax
movq %rax, 0x70(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5f3f6
callq 0x5f42f