// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/firstcodes-tab.c
// Function: gt_firstcodes_countocc_increment
static void gt_firstcodes_countocc_increment(GtFirstcodestab *fct,
                                             GtUword *differences,
                                             GtUword idx,
                                             GtUword inc)
{
  GtUword count;

  if (fct->countocc_small == NULL)
  {
    if ((count = (GtUword) (differences[idx] >> fct->shiftforcounts)) > 0)
    {
      differences[idx] &= fct->differencemask;
      if (inc + count <= fct->countmax)
      {
        differences[idx] |= ((inc + count) << fct->shiftforcounts);
      } else
      {
        ul_u32_gt_hashmap_add(fct->countocc_exceptions,idx,
                              (uint32_t) (inc + count - fct->countmax));
        fct->hashmap_addcount++;
      }
    } else
    {
      uint32_t *valueptr = ul_u32_gt_hashmap_get(fct->countocc_exceptions,idx);

      gt_assert(valueptr != NULL && *valueptr + inc <= UINT32_MAX);
      (*valueptr) += inc;
      fct->hashmap_getcount++;
    }
  } else
  {
    if ((count = (GtUword) fct->countocc_small[idx]) > 0)
    {
      if (inc + count <= GT_FIRSTCODES_MAXSMALL)
      {
        fct->countocc_small[idx] += inc;
      } else
      {
        ul_u32_gt_hashmap_add(fct->countocc_exceptions,idx,
                              inc + count - GT_FIRSTCODES_MAXSMALL);
        fct->countocc_small[idx] = 0;
        fct->hashmap_addcount++;
      }
    } else
    {
      uint32_t *valueptr = ul_u32_gt_hashmap_get(fct->countocc_exceptions,idx);

      gt_assert(valueptr != NULL && *valueptr + inc <= UINT32_MAX);
      (*valueptr) += inc;
      fct->hashmap_getcount++;
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0x321695
movzbl (%rax,%r14), %r12d
testq %r12, %r12
je 0x3216ec
addq %r15, %r12
cmpq $0xff, %r12
ja 0x32171d
movb %r12b, (%rax,%r14)
jmp 0x321795
movq (%rsi,%r14,8), %rax
movl 0x68(%rbx), %ecx
movq %rax, %r12
shrq %cl, %r12
testq %r12, %r12
je 0x321757
andq 0x58(%rbx), %rax
movq %rax, (%rsi,%r14,8)
addq %r15, %r12
movq 0x60(%rbx), %rdx
cmpq %rdx, %r12
jbe 0x32178b
movq 0x40(%rbx), %rdi
subl %edx, %r12d
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movl %r12d, 0x8(%rsi)
movq %rsp, %rdx
callq 0x106536
testl %eax, %eax
jne 0x321751
movq (%rsp), %rax
movl %r12d, 0x8(%rax)
jmp 0x321751
movq 0x40(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
callq 0x10620e
leaq 0x8(%rax), %rcx
testq %rax, %rax
cmoveq %rax, %rcx
je 0x321718
movl (%rcx), %eax
addq %r15, %rax
movq %rax, %rdx
shrq $0x20, %rdx
je 0x321783
callq 0x9359f
movq 0x40(%rbx), %rdi
addl $0xffffff01, %r12d      # imm = 0xFFFFFF01
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movl %r12d, 0x8(%rsi)
movq %rsp, %rdx
callq 0x106536
testl %eax, %eax
jne 0x321748
movq (%rsp), %rax
movl %r12d, 0x8(%rax)
movq 0x38(%rbx), %rax
movb $0x0, (%rax,%r14)
incq 0x18(%rbx)
jmp 0x321795
movq 0x40(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
callq 0x10620e
leaq 0x8(%rax), %rcx
testq %rax, %rax
cmoveq %rax, %rcx
je 0x3217a1
movl (%rcx), %eax
addq %r15, %rax
movq %rax, %rdx
shrq $0x20, %rdx
jne 0x3217a1
movl %eax, (%rcx)
incq 0x20(%rbx)
jmp 0x321795
shlq %cl, %r12
orq %r12, %rax
movq %rax, (%rsi,%r14,8)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x935d8