// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x30(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x4bff20
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x30(%rsp), %rcx
movl 0x68(%rcx), %ecx
shrq %cl, %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, %rax
jbe 0x4bfe89
movq 0x30(%rsp), %rax
movq 0x58(%rax), %rdx
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
andq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rsp), %rax
addq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x60(%rcx), %rax
ja 0x4bfe4b
movq 0x18(%rsp), %rdx
addq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rax
movl 0x68(%rax), %eax
movl %eax, %ecx
shlq %cl, %rdx
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
jmp 0x4bfe84
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rax
addq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
subq 0x60(%rcx), %rax
movl %eax, %edx
callq 0x4c12c0
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x18(%rax)
jmp 0x4bff1b
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x20(%rsp), %rsi
callq 0x4c1310
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x4bfebf
movq 0x8(%rsp), %rax
movl (%rax), %eax
addq 0x18(%rsp), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jbe 0x4bfef7
movq 0x17c0da(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x56143(%rip), %rsi     # 0x516013
leaq 0xf8319(%rip), %rdx     # 0x5b81f0
leaq 0xf8344(%rip), %rcx     # 0x5b8222
leaq 0xf7ea9(%rip), %r8      # 0x5b7d8e
movl $0x76, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4bfef9
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rax
movl (%rax), %ecx
addq %rdx, %rcx
movl %ecx, (%rax)
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rax)
jmp 0x4c004b
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movq %rax, 0x10(%rsp)
cmpq $0x0, %rax
jbe 0x4bffbb
movq 0x18(%rsp), %rax
addq 0x10(%rsp), %rax
cmpq $0xff, %rax
ja 0x4bff6e
movq 0x18(%rsp), %rsi
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rsp), %rcx
movzbl (%rax,%rcx), %edx
addq %rsi, %rdx
movb %dl, (%rax,%rcx)
jmp 0x4bffb6
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rax
addq 0x10(%rsp), %rax
subq $0xff, %rax
movl %eax, %edx
callq 0x4c12c0
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x18(%rax)
jmp 0x4c0049
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x20(%rsp), %rsi
callq 0x4c1310
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x4bffee
movq (%rsp), %rax
movl (%rax), %eax
addq 0x18(%rsp), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jbe 0x4c0026
movq 0x17bfab(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x56014(%rip), %rsi     # 0x516013
leaq 0xf81ea(%rip), %rdx     # 0x5b81f0
leaq 0xf8215(%rip), %rcx     # 0x5b8222
leaq 0xf7d7a(%rip), %r8      # 0x5b7d8e
movl $0x8c, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c0028
movq 0x18(%rsp), %rdx
movq (%rsp), %rax
movl (%rax), %ecx
addq %rdx, %rcx
movl %ecx, (%rax)
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rax)
jmp 0x4c004b
addq $0x38, %rsp
retq