// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_sizeofSWtable
static uint64_t gt_encseq_sizeofSWtable(GtEncseqAccessType sat,
                                        bool withrangelength,
                                        bool withmappositions,
                                        GtUword totallength,
                                        GtUword items)
{
  if (items == 0)
    return 0;
  switch (sat) {
    case GT_ACCESS_TYPE_UCHARTABLES:
      return SIZEOFSWTABLE(GtUchar, UCHAR_MAX);
    case GT_ACCESS_TYPE_USHORTTABLES:
      return SIZEOFSWTABLE(uint16_t, USHRT_MAX);
    case GT_ACCESS_TYPE_UINT32TABLES:
      return SIZEOFSWTABLE(uint32_t, UINT32_MAX);
    default:
      fprintf(stderr, "gt_encseq_sizeofSWtable(sat=%d) is undefined\n",
              (int) sat);
      exit(GT_EXIT_PROGRAMMING_ERROR);
  }
}

// Assembly:
subq $0x48, %rsp
movb %dl, %al
movb %sil, %dl
movl %edi, 0x3c(%rsp)
andb $0x1, %dl
movb %dl, 0x3b(%rsp)
andb $0x1, %al
movb %al, 0x3a(%rsp)
movq %rcx, 0x30(%rsp)
movq %r8, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x11ceba
movq $0x0, 0x40(%rsp)
jmp 0x11d07a
movl 0x3c(%rsp), %eax
movl %eax, 0x24(%rsp)
subl $0x4, %eax
je 0x11ceea
jmp 0x11cec9
movl 0x24(%rsp), %eax
subl $0x5, %eax
je 0x11cf64
jmp 0x11ced8
movl 0x24(%rsp), %eax
subl $0x6, %eax
je 0x11cfdd
jmp 0x11d054
movb 0x3b(%rsp), %dl
movl $0x1, %eax
movl $0x2, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
movq 0x28(%rsp), %rcx
shlq $0x0, %rcx
imulq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rax
movl $0xff, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq 0x18(%rsp), %rax
addq $0x1, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movb 0x3a(%rsp), %sil
xorl %ecx, %ecx
movl $0x1, %edx
testb $0x1, %sil
cmovnel %edx, %ecx
movslq %ecx, %rcx
movq 0x28(%rsp), %rdx
shlq $0x3, %rdx
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
jmp 0x11d07a
movb 0x3b(%rsp), %dl
movl $0x1, %eax
movl $0x2, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
movq 0x28(%rsp), %rcx
shlq %rcx
imulq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movl $0xffff, %ecx           # imm = 0xFFFF
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq 0x10(%rsp), %rax
addq $0x1, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movb 0x3a(%rsp), %sil
xorl %ecx, %ecx
movl $0x1, %edx
testb $0x1, %sil
cmovnel %edx, %ecx
movslq %ecx, %rcx
movq 0x28(%rsp), %rdx
shlq $0x3, %rdx
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
jmp 0x11d07a
movb 0x3b(%rsp), %dl
movl $0x1, %eax
movl $0x2, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
movq 0x28(%rsp), %rcx
shlq $0x2, %rcx
imulq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq 0x8(%rsp), %rax
addq $0x1, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movb 0x3a(%rsp), %sil
xorl %ecx, %ecx
movl $0x1, %edx
testb $0x1, %sil
cmovnel %edx, %ecx
movslq %ecx, %rcx
movq 0x28(%rsp), %rdx
shlq $0x3, %rdx
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
jmp 0x11d07a
movq 0x96f7d(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
movl 0x3c(%rsp), %edx
leaq 0x6c51d(%rip), %rsi     # 0x189586
movb $0x0, %al
callq 0xb890
movl $0x2, %edi
callq 0xb780
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)