// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/diagbandseed.c
// Function: gt_diagbandseed_processkmercode
static void gt_diagbandseed_processkmercode(void *prockmerinfo,
                                            bool firstinrange,
                                            GtUword startpos,
                                            GtCodetype code)
{
  GtDiagbandseedProcKmerInfo *pkinfo;
  GtDiagbandseedKmerPos kmerpos_entry;

  gt_assert(prockmerinfo != NULL);
  pkinfo = (GtDiagbandseedProcKmerInfo *) prockmerinfo;
  /* check separator positions and determine next seqnum and endpos */
  if (firstinrange)
  {
    const GtUword current_endpos = startpos + pkinfo->seedlength - 1;

    while (current_endpos >= pkinfo->next_separator)
    {
      pkinfo->current_seqnum++;
      pkinfo->prev_separator = pkinfo->next_separator + 1;
      pkinfo->next_separator
        = gt_diagbandseed_update_separatorpos(pkinfo->specialrange,
                                              pkinfo->sri,
                                              pkinfo->encseq,
                                              pkinfo->last_specialpos,
                                              pkinfo->readmode);
      gt_assert(pkinfo->next_separator >= pkinfo->prev_separator);
    }
    gt_assert(current_endpos >= pkinfo->prev_separator &&
              startpos < pkinfo->next_separator);
    if (pkinfo->readmode == GT_READMODE_FORWARD)
    {
      pkinfo->current_endpos = (GtDiagbandseedPosition)
                               (current_endpos - pkinfo->prev_separator);
    } else
    {
      pkinfo->current_endpos = (GtDiagbandseedPosition)
                               (pkinfo->next_separator - 1 - startpos);
    }
  }

  /* save k-mer code */
  kmerpos_entry.code = (pkinfo->readmode == GT_READMODE_FORWARD)
                         ? code
                         : gt_kmercode_reverse(code, pkinfo->seedlength);
  if (pkinfo->spaced_seed_spec != NULL)
  {
    kmerpos_entry.code
      = gt_spaced_seed_extract_generic(pkinfo->spaced_seed_spec,
                                       kmerpos_entry.code);
  }
  /* save endpos and seqnum */
  gt_assert(pkinfo->current_endpos != UINT32_MAX);
  kmerpos_entry.endpos = pkinfo->current_endpos;
  pkinfo->current_endpos = (pkinfo->readmode == GT_READMODE_FORWARD)
                             ? pkinfo->current_endpos + 1
                             : pkinfo->current_endpos - 1;
  kmerpos_entry.seqnum = pkinfo->current_seqnum;
  gt_kmerpos_list_add(pkinfo->kmerpos_list_ref,&kmerpos_entry);
}

// Assembly:
subq $0x58, %rsp
movb %sil, %al
movq %rdi, 0x50(%rsp)
andb $0x1, %al
movb %al, 0x4f(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0x211efc
movq 0x42a0d5(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x30413e(%rip), %rsi    # 0x516013
leaq 0x360539(%rip), %rdx    # 0x572415
leaq 0x360547(%rip), %rcx    # 0x57242a
leaq 0x3600aa(%rip), %r8     # 0x571f94
movl $0x256, %r9d            # imm = 0x256
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x211efe
movq 0x50(%rsp), %rax
movq %rax, 0x30(%rsp)
testb $0x1, 0x4f(%rsp)
je 0x212094
movq 0x40(%rsp), %rax
movq 0x30(%rsp), %rcx
movl 0x44(%rcx), %ecx
addq %rcx, %rax
subq $0x1, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x38(%rcx), %rax
jb 0x211ff5
movq 0x30(%rsp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rcx
addq $0x1, %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rsi
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rdx
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rcx
movq 0x30(%rsp), %rax
movl 0x50(%rax), %r8d
callq 0x211da0
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x30(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jae 0x211fee
movq 0x429fe3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x30404c(%rip), %rsi    # 0x516013
leaq 0x36047c(%rip), %rdx    # 0x57244a
leaq 0x360455(%rip), %rcx    # 0x57242a
leaq 0x35ffb8(%rip), %r8     # 0x571f94
movl $0x267, %r9d            # imm = 0x267
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x211ff0
jmp 0x211f2c
jmp 0x211ff7
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jb 0x212017
movq 0x40(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x38(%rcx), %rax
jb 0x21204f
movq 0x429f82(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x303feb(%rip), %rsi    # 0x516013
leaq 0x36044c(%rip), %rdx    # 0x57247b
leaq 0x3603f4(%rip), %rcx    # 0x57242a
leaq 0x35ff57(%rip), %r8     # 0x571f94
movl $0x26a, %r9d            # imm = 0x26A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x212051
movq 0x30(%rsp), %rax
cmpl $0x0, 0x50(%rax)
jne 0x212076
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
subq 0x30(%rcx), %rax
movl %eax, %ecx
movq 0x30(%rsp), %rax
movl %ecx, 0xc(%rax)
jmp 0x212092
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
subq $0x1, %rax
subq 0x40(%rsp), %rax
movl %eax, %ecx
movq 0x30(%rsp), %rax
movl %ecx, 0xc(%rax)
jmp 0x212094
movq 0x30(%rsp), %rax
cmpl $0x0, 0x50(%rax)
jne 0x2120ab
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x2120c2
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rax
movl 0x44(%rax), %esi
callq 0x2127b0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
cmpq $0x0, 0x48(%rax)
je 0x2120f0
movq 0x30(%rsp), %rax
movq 0x48(%rax), %rdi
movq 0x20(%rsp), %rsi
callq 0x20c2c0
movq %rax, 0x20(%rsp)
jmp 0x2120f2
movq 0x30(%rsp), %rax
cmpl $-0x1, 0xc(%rax)
jne 0x212135
movq 0x429e9c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x303f05(%rip), %rsi    # 0x516013
leaq 0x3603b4(%rip), %rdx    # 0x5724c9
leaq 0x36030e(%rip), %rcx    # 0x57242a
leaq 0x35fe71(%rip), %r8     # 0x571f94
movl $0x281, %r9d            # imm = 0x281
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x212137
movq 0x30(%rsp), %rax
movl 0xc(%rax), %eax
movl %eax, 0x2c(%rsp)
movq 0x30(%rsp), %rax
cmpl $0x0, 0x50(%rax)
jne 0x21215f
movq 0x30(%rsp), %rax
movl 0xc(%rax), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x21216e
movq 0x30(%rsp), %rax
movl 0xc(%rax), %eax
subl $0x1, %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, 0xc(%rax)
movq 0x30(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rdi
leaq 0x20(%rsp), %rsi
callq 0x214e40
addq $0x58, %rsp
retq
nopl (%rax)