// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrange_new
GtSfxmappedrange *gt_Sfxmappedrange_new(const char *tablename,
                                        GtUword numofentries,
                                        GtSfxmappedrangetype type,
                                        GtSfxmappedrangetransformfunc
                                          transformfunc,
                                        const void *transformfunc_data)
{
  GtSfxmappedrange *sfxmappedrange;

  sfxmappedrange = gt_malloc(sizeof (*sfxmappedrange));
  sfxmappedrange->ptr = NULL;
  sfxmappedrange->pagesize = gt_pagesize();
  sfxmappedrange->usedptrptr = NULL;
  sfxmappedrange->filename = NULL;
  sfxmappedrange->writable = false;
  sfxmappedrange->entire = NULL;
  sfxmappedrange->transformfunc = transformfunc;
  sfxmappedrange->transformfunc_data = transformfunc_data;
  sfxmappedrange->type = type;
  sfxmappedrange->tablename = gt_str_new_cstr(tablename);
  sfxmappedrange->currentminindex = sfxmappedrange->currentmaxindex = 0;
  sfxmappedrange->indexrange_defined = false;
  switch (type)
  {
    case GtSfxGtBitsequence:
      sfxmappedrange->sizeofunit = sizeof (GtBitsequence);
      sfxmappedrange->numofunits = GT_NUMOFINTSFORBITS(numofentries);
      break;
    case GtSfxuint32_t:
      sfxmappedrange->sizeofunit = sizeof (uint32_t);
      sfxmappedrange->numofunits = (size_t) numofentries;
      break;
    case GtSfxunsignedlong:
      sfxmappedrange->sizeofunit = sizeof (GtUword);
      sfxmappedrange->numofunits = (size_t) numofentries;
      break;
    default:
      gt_assert(false);
      break;
  }
  return sfxmappedrange;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
leaq 0x2bf810(%rip), %rsi    # 0x58b3b3
movl $0x78, %edi
movl $0x78, %edx
callq 0xe80f0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq $0x0, (%rax)
callq 0xa2640
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x18(%rsp), %rax
movb $0x0, 0x70(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x8(%rax)
movq 0x28(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x60(%rax)
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x68(%rax)
movl 0x34(%rsp), %ecx
movq 0x18(%rsp), %rax
movl %ecx, 0x40(%rax)
movq 0x40(%rsp), %rdi
callq 0x11d510
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x50(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x48(%rax)
movq 0x18(%rsp), %rax
movb $0x0, 0x58(%rax)
movl 0x34(%rsp), %eax
movl %eax, 0x14(%rsp)
testl %eax, %eax
je 0x2cbc8c
jmp 0x2cbc73
movl 0x14(%rsp), %eax
subl $0x1, %eax
je 0x2cbcf7
jmp 0x2cbc7e
movl 0x14(%rsp), %eax
subl $0x2, %eax
je 0x2cbcda
jmp 0x2cbd14
movq 0x18(%rsp), %rax
movq $0x8, 0x38(%rax)
movq 0x38(%rsp), %rax
shrq $0x6, %rax
cmpq $0x0, %rax
jne 0x2cbcb4
movl $0x1, %eax
movq %rax, 0x8(%rsp)
jmp 0x2cbcca
movq 0x38(%rsp), %rax
subq $0x1, %rax
shrq $0x6, %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x30(%rax)
jmp 0x2cbd4e
movq 0x18(%rsp), %rax
movq $0x4, 0x38(%rax)
movq 0x38(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x30(%rax)
jmp 0x2cbd4e
movq 0x18(%rsp), %rax
movq $0x8, 0x38(%rax)
movq 0x38(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x30(%rax)
jmp 0x2cbd4e
jmp 0x2cbd16
movq 0x370283(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x24a2ec(%rip), %rsi    # 0x516013
leaq 0x28d035(%rip), %rdx    # 0x558d63
leaq 0x2bf713(%rip), %rcx    # 0x58b448
leaq 0x2bf677(%rip), %r8     # 0x58b3b3
movl $0x94, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
movq 0x18(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax,%rax)