// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/uint64hashtable.c
// Function: gt_uint64hashtable_get_size
static size_t gt_uint64hashtable_get_size(size_t n)
{
  size_t u, l, i, k, k_i;

  k = n;
  if (k > (size_t)GT_UINT64TABLE_LARGEST_PRIME)
  {
    fprintf(stderr, GT_UINT64TABLE_TOO_LARGE, (GtUword)k);
    exit(1);
  }
  if (k < (size_t)gt_uint64hashtable_primes[0])
  {
    return (size_t)gt_uint64hashtable_primes[0];
  }
  l = 0;
  u = GT_UINT64TABLE_NOFPRIMES - (size_t)1;
  do {
    i = (l + u) >> 1;
    gt_assert(u >= l);
    if (u - l == (size_t)1)
    {
      return ((size_t)gt_uint64hashtable_primes[l] == k)
          ? k
          : (size_t)gt_uint64hashtable_primes[u];
    }
    k_i = (size_t)gt_uint64hashtable_primes[i];
    if (k < k_i)
    {
      u = i;
    }
    else if (k > k_i)
    {
      l = i;
    }
    else
    {
      return k_i;
    }
  } while (true);
  gt_assert(false); /* this point should never be reached */
  return 0;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x37a1e9(%rip), %rax    # 0x56f148
jbe 0x1f4f88
movq 0x447038(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x18(%rsp), %rdx
leaq 0x375518(%rip), %rsi    # 0x56a48f
movb $0x0, %al
callq 0x199f0
movl $0x1, %edi
callq 0x19890
movq 0x18(%rsp), %rax
cmpq 0x3755bc(%rip), %rax    # 0x56a550
jae 0x1f4fa7
movq 0x3755b3(%rip), %rax    # 0x56a550
movq %rax, 0x40(%rsp)
jmp 0x1f5103
movq $0x0, 0x28(%rsp)
movq $0x97f, 0x30(%rsp)      # imm = 0x97F
movq 0x28(%rsp), %rax
addq 0x30(%rsp), %rax
shrq %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x28(%rsp), %rax
jae 0x1f500f
movq 0x446fc2(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x32102b(%rip), %rsi    # 0x516013
leaq 0x365368(%rip), %rdx    # 0x55a357
leaq 0x375518(%rip), %rcx    # 0x56a50e
leaq 0x37521b(%rip), %r8     # 0x56a218
movl $0x3d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f5011
movq 0x30(%rsp), %rax
subq 0x28(%rsp), %rax
cmpq $0x1, %rax
jne 0x1f5068
movq 0x28(%rsp), %rcx
leaq 0x375523(%rip), %rax    # 0x56a550
movq (%rax,%rcx,8), %rax
cmpq 0x18(%rsp), %rax
jne 0x1f5044
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x1f5059
movq 0x30(%rsp), %rcx
leaq 0x375500(%rip), %rax    # 0x56a550
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x1f5103
movq 0x20(%rsp), %rcx
leaq 0x3754dc(%rip), %rax    # 0x56a550
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jae 0x1f5095
movq 0x20(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x1f50bb
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jbe 0x1f50ad
movq 0x20(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0x1f50b9
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x1f5103
jmp 0x1f50bb
jmp 0x1f50bd
movb $0x1, %al
testb $0x1, %al
jne 0x1f4fb9
jmp 0x1f50c9
jmp 0x1f50cb
movq 0x446ece(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x320f37(%rip), %rsi    # 0x516013
leaq 0x363c80(%rip), %rdx    # 0x558d63
leaq 0x375424(%rip), %rcx    # 0x56a50e
leaq 0x375127(%rip), %r8     # 0x56a218
movl $0x52, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax)