// File: /workspace/github_c_makefile_star2_O2/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 0x14220b
movq %rsi, %r13
movq 0x88(%rbx), %rdx
testq %rdx, %rdx
je 0x142241
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 0x142807
addq $0x20, %rsp
movq %r12, 0x98(%rbx)
jmp 0x142273
cmpq %r12, %rax
je 0x142273
movq 0x2f5d51(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1a2df2(%rip), %rsi    # 0x2e5013
leaq 0x1ff61b(%rip), %rdx    # 0x341843
leaq 0x1ff5e9(%rip), %rcx    # 0x341818
leaq 0x1fdc86(%rip), %r8     # 0x33febc
movl $0xa26, %r9d            # imm = 0xA26
jmp 0x14234c
movq %r13, %rdi
movq %r12, %rsi
callq 0x190d60
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
callq 0x190d86
cmpq $0x0, 0x20(%rbx)
je 0x142320
movq %rbp, 0x30(%rbx)
subq %rbp, %rax
incq %rax
movq %rax, 0x38(%rbx)
movq 0x90(%rbx), %rdx
testq %rdx, %rdx
je 0x1422b5
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 0x142807
addq $0x28, %rsp
jmp 0x1422e7
movq %r15, %rdi
movq %r14, %rsi
callq 0x190d60
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x190d86
cmpq $0x0, 0x58(%rbx)
je 0x1422f2
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
movq 0x2f5c6f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1a2d10(%rip), %rsi    # 0x2e5013
leaq 0x1ff562(%rip), %rdx    # 0x34186c
leaq 0x1ff507(%rip), %rcx    # 0x341818
leaq 0x1fdba4(%rip), %r8     # 0x33febc
movl $0xa3c, %r9d            # imm = 0xA3C
jmp 0x14234c
movq 0x2f5c41(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1a2ce2(%rip), %rsi    # 0x2e5013
leaq 0x1ff4bc(%rip), %rdx    # 0x3417f4
leaq 0x1ff4d9(%rip), %rcx    # 0x341818
leaq 0x1fdb76(%rip), %r8     # 0x33febc
movl $0xa22, %r9d            # imm = 0xA22
xorl %eax, %eax
callq 0x17a50
callq 0x17390