// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0x2b6c4b
movzbl (%rax,%r14), %edx
testq %rdx, %rdx
je 0x2b6c8a
addq %r15, %rdx
cmpq $0xff, %rdx
ja 0x2b6cda
movb %dl, (%rax,%r14)
jmp 0x2b6d2c
movq (%rsi,%r14,8), %rax
movl 0x68(%rbx), %ecx
movq %rax, %rdx
shrq %cl, %rdx
testq %rdx, %rdx
je 0x2b6cfb
andq 0x58(%rbx), %rax
movq %rax, (%rsi,%r14,8)
addq %r15, %rdx
movq 0x60(%rbx), %r8
cmpq %r8, %rdx
jbe 0x2b6d22
movq 0x40(%rbx), %rdi
subl %r8d, %edx
movq %r14, %rsi
callq 0x2b7753
jmp 0x2b6cf5
movq 0x40(%rbx), %rdi
movq %r14, %rsi
callq 0x2b7784
testq %rax, %rax
je 0x2b6ca9
movl (%rax), %ecx
addq %r15, %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
je 0x2b6d1a
movq 0x1812b8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2e359(%rip), %rsi     # 0x2e5013
leaq 0xcc24b(%rip), %rdx     # 0x382f0c
leaq 0xcc276(%rip), %rcx     # 0x382f3e
leaq 0xcbdfb(%rip), %r8      # 0x382aca
movl $0x8c, %r9d
jmp 0x2b6d5c
movq 0x40(%rbx), %rdi
addl $0xffffff01, %edx       # imm = 0xFFFFFF01
movq %r14, %rsi
callq 0x2b7753
movq 0x38(%rbx), %rax
movb $0x0, (%rax,%r14)
incq 0x18(%rbx)
jmp 0x2b6d2c
movq 0x40(%rbx), %rdi
movq %r14, %rsi
callq 0x2b7784
testq %rax, %rax
je 0x2b6d32
movl (%rax), %ecx
addq %r15, %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
jne 0x2b6d32
movl %ecx, (%rax)
incq 0x20(%rbx)
jmp 0x2b6d2c
shlq %cl, %rdx
orq %rdx, %rax
movq %rax, (%rsi,%r14,8)
popq %rbx
popq %r14
popq %r15
retq
movq 0x18122f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2e2d0(%rip), %rsi     # 0x2e5013
leaq 0xcc1c2(%rip), %rdx     # 0x382f0c
leaq 0xcc1ed(%rip), %rcx     # 0x382f3e
leaq 0xcbd72(%rip), %r8      # 0x382aca
pushq $0x76
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390