// File: /workspace/github_c_makefile_star2_O3/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 0x3172f9
movzbl (%rax,%r14), %r12d
testq %r12, %r12
je 0x317350
addq %r15, %r12
cmpq $0xff, %r12
ja 0x31737a
movb %r12b, (%rax,%r14)
jmp 0x3173ec
movq (%rsi,%r14,8), %rax
movl 0x68(%rbx), %ecx
movq %rax, %r12
shrq %cl, %r12
testq %r12, %r12
je 0x3173b4
andq 0x58(%rbx), %rax
movq %rax, (%rsi,%r14,8)
addq %r15, %r12
movq 0x60(%rbx), %rdx
cmpq %rdx, %r12
jbe 0x3173e2
movq 0x40(%rbx), %rdi
subl %edx, %r12d
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movl %r12d, 0x8(%rsi)
movq %rsp, %rdx
callq 0x1015ee
testl %eax, %eax
jne 0x3173ae
movq (%rsp), %rax
movl %r12d, 0x8(%rax)
jmp 0x3173ae
movq 0x40(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
callq 0x1012ee
testq %rax, %rax
je 0x317375
movl 0x8(%rax), %ecx
addq %r15, %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
je 0x3173d9
callq 0x916fe
movq 0x40(%rbx), %rdi
addl $0xffffff01, %r12d      # imm = 0xFFFFFF01
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movl %r12d, 0x8(%rsi)
movq %rsp, %rdx
callq 0x1015ee
testl %eax, %eax
jne 0x3173a5
movq (%rsp), %rax
movl %r12d, 0x8(%rax)
movq 0x38(%rbx), %rax
movb $0x0, (%rax,%r14)
incq 0x18(%rbx)
jmp 0x3173ec
movq 0x40(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
callq 0x1012ee
testq %rax, %rax
je 0x3173f8
movl 0x8(%rax), %ecx
addq %r15, %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
jne 0x3173f8
movl %ecx, 0x8(%rax)
incq 0x20(%rbx)
jmp 0x3173ec
shlq %cl, %r12
orq %r12, %rax
movq %rax, (%rsi,%r14,8)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x91737