// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/core/encseq.c
// Function: binpreparenextrangeGtEncseqReader
static void binpreparenextrangeGtEncseqReader(GtEncseqReader *esr,
                                              KindofSWtable kindsw)
{
  GtEncseqAccessType sat = (kindsw == SWtable_ssptab) ? esr->encseq->satsep
                                                         : esr->encseq->sat;
  switch (sat) {
    case GT_ACCESS_TYPE_UCHARTABLES:
      binpreparenextrangeGtEncseqReader_uchar(esr, kindsw);
      break;
    case GT_ACCESS_TYPE_USHORTTABLES:
      binpreparenextrangeGtEncseqReader_uint16(esr, kindsw);
      break;
    case GT_ACCESS_TYPE_UINT32TABLES:
      binpreparenextrangeGtEncseqReader_uint32(esr, kindsw);
      break;
    default: fprintf(stderr, "binpreparenextrangeGtEncseqReader(sat = %s "
                            "is undefined)\n",
                     gt_encseq_access_type_str(sat));
             exit(GT_EXIT_PROGRAMMING_ERROR);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
xorl %eax, %eax
cmpl $0x1, %esi
sete %al
movq %rdi, 0x18(%rsp)
movq (%rdi), %rbx
movl (%rbx,%rax,4), %edi
cmpl $0x6, %edi
je 0xa2c8c
cmpl $0x5, %edi
je 0xa2c3f
cmpl $0x4, %edi
jne 0xa32cd
movq 0x18(%rsp), %rdx
movl 0x8(%rdx), %r13d
leaq 0x240(%rbx), %rax
addq $0x2b8, %rbx            # imm = 0x2B8
xorl %ecx, %ecx
testl %esi, %esi
setne %cl
cmovneq %rax, %rbx
movq 0x28(%rdx,%rcx,8), %r14
andl $0x0, 0x39(%r14)
movq 0x10(%rdx), %rcx
movq %rcx, %r15
shrq $0x8, %r15
movq 0x10(%rbx), %rax
movq %rcx, 0x30(%rsp)
cmpq $0x100, %rcx            # imm = 0x100
jae 0xa2e9e
xorl %ebp, %ebp
jmp 0xa2ea3
movq 0x18(%rsp), %rdx
movl 0x8(%rdx), %r13d
leaq 0x240(%rbx), %rax
addq $0x2b8, %rbx            # imm = 0x2B8
xorl %ecx, %ecx
testl %esi, %esi
setne %cl
cmovneq %rax, %rbx
movq 0x28(%rdx,%rcx,8), %r14
andl $0x0, 0x39(%r14)
movq 0x10(%rdx), %rcx
movq %rcx, %r15
shrq $0x10, %r15
movq 0x10(%rbx), %rax
movq %rcx, 0x30(%rsp)
cmpq $0x10000, %rcx          # imm = 0x10000
jae 0xa2cd6
xorl %ebp, %ebp
jmp 0xa2cdb
movq 0x18(%rsp), %rdx
movl 0x8(%rdx), %r13d
leaq 0x240(%rbx), %rax
addq $0x2b8, %rbx            # imm = 0x2B8
xorl %ecx, %ecx
testl %esi, %esi
setne %cl
cmovneq %rax, %rbx
movq 0x28(%rdx,%rcx,8), %r14
andl $0x0, 0x39(%r14)
movq 0x10(%rdx), %r15
movq %r15, 0x30(%rsp)
shrq $0x20, %r15
movq 0x10(%rbx), %rax
jne 0xa2dba
xorl %ebp, %ebp
jmp 0xa2dbf
movq -0x8(%rax,%r15,8), %rbp
movq %rbp, (%r14)
movq (%rax,%r15,8), %r12
movq %r12, 0x8(%r14)
cmpq $0x0, 0x30(%rsp)
je 0xa2f82
movq %r14, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl %r13d, 0x8(%rsp)
movl %r13d, %r14d
orl $0x2, %r14d
cmpq %r12, %rbp
jae 0xa302d
movq %rbp, %r13
notq %r13
addq %r12, %r13
shrq %r13
addq %rbp, %r13
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xb41f2
cmpl $0x3, %r14d
jne 0xa2d76
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x20(%rsp), %rax
jb 0xa2d5e
incq %r13
movq %r13, %rbp
cmpq 0x28(%rsp), %rax
jae 0xa2d0b
jmp 0xa3063
leaq 0x1(%r13), %rax
movq 0x10(%rsp), %rcx
movq %rax, 0x8(%rcx)
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq %r13, %r12
jmp 0xa2d0b
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x28(%rsp), %rax
jbe 0xa2d9f
movq 0x10(%rsp), %rax
movq %r13, (%rax)
incq %r13
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq %r13, %rbp
jmp 0xa2d0b
movq %r13, %r12
cmpq 0x20(%rsp), %rax
jb 0xa2d0b
movq 0x10(%rsp), %r14
movq %r13, (%r14)
jmp 0xa306c
movq -0x8(%rax,%r15,8), %rbp
movq %rbp, (%r14)
movq (%rax,%r15,8), %r12
movq %r12, 0x8(%r14)
cmpq $0x0, 0x30(%rsp)
je 0xa2fbb
movq %r14, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl %r13d, 0x8(%rsp)
movl %r13d, %r14d
orl $0x2, %r14d
cmpq %r12, %rbp
jae 0xa303d
movq %rbp, %r13
notq %r13
addq %r12, %r13
shrq %r13
addq %rbp, %r13
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xb425f
cmpl $0x3, %r14d
jne 0xa2e5a
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x20(%rsp), %rax
jb 0xa2e42
incq %r13
movq %r13, %rbp
cmpq 0x28(%rsp), %rax
jae 0xa2def
jmp 0xa3075
leaq 0x1(%r13), %rax
movq 0x10(%rsp), %rcx
movq %rax, 0x8(%rcx)
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq %r13, %r12
jmp 0xa2def
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x28(%rsp), %rax
jbe 0xa2e83
movq 0x10(%rsp), %rax
movq %r13, (%rax)
incq %r13
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq %r13, %rbp
jmp 0xa2def
movq %r13, %r12
cmpq 0x20(%rsp), %rax
jb 0xa2def
movq 0x10(%rsp), %r14
movq %r13, (%r14)
jmp 0xa307e
movq -0x8(%rax,%r15,8), %rbp
movq %rbp, (%r14)
movq (%rax,%r15,8), %r12
movq %r12, 0x8(%r14)
cmpq $0x0, 0x30(%rsp)
je 0xa2ff4
movq %r14, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl %r13d, 0x8(%rsp)
movl %r13d, %r14d
orl $0x2, %r14d
cmpq %r12, %rbp
jae 0xa3050
movq %rbp, %r13
notq %r13
addq %r12, %r13
shrq %r13
addq %rbp, %r13
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xb4185
cmpl $0x3, %r14d
jne 0xa2f3e
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x20(%rsp), %rax
jb 0xa2f26
incq %r13
movq %r13, %rbp
cmpq 0x28(%rsp), %rax
jae 0xa2ed3
jmp 0xa308a
leaq 0x1(%r13), %rax
movq 0x10(%rsp), %rcx
movq %rax, 0x8(%rcx)
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq %r13, %r12
jmp 0xa2ed3
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x28(%rsp), %rax
jbe 0xa2f67
movq 0x10(%rsp), %rax
movq %r13, (%rax)
incq %r13
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq %r13, %rbp
jmp 0xa2ed3
movq %r13, %r12
cmpq 0x20(%rsp), %rax
jb 0xa2ed3
movq 0x10(%rsp), %r14
movq %r13, (%r14)
jmp 0xa3093
cmpq %r12, %rbp
jae 0xa30ab
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xb41f2
movl %r13d, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0xa309f
movq $0x1, 0x8(%r14)
movb $0x1, %dl
jmp 0xa30ad
cmpq %r12, %rbp
jae 0xa3134
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xb425f
movl %r13d, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0xa3128
movq $0x1, 0x8(%r14)
movb $0x1, %dl
jmp 0xa3136
cmpq %r12, %rbp
jae 0xa31ba
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xb4185
movl %r13d, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0xa31ae
movq $0x1, 0x8(%r14)
movb $0x1, %dl
jmp 0xa31bc
movq 0x10(%rsp), %r14
movl 0x8(%rsp), %r13d
movl 0xc(%rsp), %edx
jmp 0xa30ad
movq 0x10(%rsp), %r14
movl 0x8(%rsp), %r13d
movl 0xc(%rsp), %edx
jmp 0xa3136
movq 0x10(%rsp), %r14
movl 0x8(%rsp), %r13d
movl 0xc(%rsp), %edx
jmp 0xa31bc
movq 0x10(%rsp), %r14
movq %r13, 0x8(%r14)
movb $0x1, %dl
movl 0x8(%rsp), %r13d
jmp 0xa30ad
movq 0x10(%rsp), %r14
movq %r13, 0x8(%r14)
movb $0x1, %dl
movl 0x8(%rsp), %r13d
jmp 0xa3136
movq 0x10(%rsp), %r14
movq %r13, 0x8(%r14)
movb $0x1, %dl
movl 0x8(%rsp), %r13d
jmp 0xa31bc
cmpq $0x0, 0x20(%rsp)
je 0xa32b2
xorl %edx, %edx
orl $0x2, %r13d
cmpl $0x3, %r13d
jne 0xa30d3
testb $0x1, %dl
je 0xa31de
leaq 0x18(%r14), %r12
cmpl $0x3, %r13d
jne 0xa30f3
movq 0x8(%r14), %rcx
decq %rcx
jmp 0xa30f6
cmpq $0x10000, 0x30(%rsp)    # imm = 0x10000
setb %al
orb %dl, %al
testb $0x1, %al
jne 0xa30b7
movq 0x10(%rbx), %rax
cmpq $0x1, %r15
jne 0xa3109
xorl %ecx, %ecx
jmp 0xa310e
movq (%r14), %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xb41f2
jmp 0xa3224
movq -0x10(%rax,%r15,8), %rcx
movq -0x8(%rax,%r15,8), %rax
cmpq %rax, %rcx
jae 0xa30b7
leaq -0x1(%rax), %rcx
movq %rcx, (%r14)
movq %rax, 0x8(%r14)
decq %r15
jmp 0xa30c0
cmpq $0x0, 0x20(%rsp)
je 0xa32bb
xorl %edx, %edx
orl $0x2, %r13d
cmpl $0x3, %r13d
jne 0xa315c
testb $0x1, %dl
je 0xa31de
leaq 0x18(%r14), %r12
cmpl $0x3, %r13d
jne 0xa3179
movq 0x8(%r14), %rcx
decq %rcx
jmp 0xa317c
shrq $0x20, 0x30(%rsp)
sete %al
orb %dl, %al
testb $0x1, %al
jne 0xa3140
movq 0x10(%rbx), %rax
cmpl $0x1, %r15d
jne 0xa318f
xorl %ecx, %ecx
jmp 0xa3194
movq (%r14), %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xb425f
jmp 0xa3224
movq -0x10(%rax,%r15,8), %rcx
movq -0x8(%rax,%r15,8), %rax
cmpq %rax, %rcx
jae 0xa3140
leaq -0x1(%rax), %rcx
movq %rcx, (%r14)
movq %rax, 0x8(%r14)
decq %r15
jmp 0xa3149
cmpq $0x0, 0x20(%rsp)
je 0xa32c4
xorl %edx, %edx
orl $0x2, %r13d
cmpl $0x3, %r13d
jne 0xa31f3
testb $0x1, %dl
je 0xa31de
leaq 0x18(%r14), %r12
cmpl $0x3, %r13d
jne 0xa3213
movq 0x8(%r14), %rcx
decq %rcx
jmp 0xa3216
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
cmpq 0x20(%rbx), %r15
setb 0x38(%r14)
jmp 0xa3279
cmpq $0x100, 0x30(%rsp)      # imm = 0x100
setb %al
orb %dl, %al
testb $0x1, %al
jne 0xa31c6
movq 0x10(%rbx), %rax
cmpq $0x1, %r15
jne 0xa328c
xorl %ecx, %ecx
jmp 0xa3291
movq (%r14), %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xb4185
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq %rax, (%r12)
ja 0xa323e
cmpq 0x20(%r14), %rax
jae 0xa323e
movb $0x1, 0x3a(%r14)
cmpl $0x3, %r13d
jne 0xa3253
testq %r15, %r15
je 0xa3268
movb $0x1, 0x38(%r14)
decq %r15
jmp 0xa3279
leaq 0x1(%r15), %rax
cmpq 0x20(%rbx), %rax
jae 0xa3274
movb $0x1, 0x38(%r14)
movq %rax, 0x10(%r14)
jmp 0xa327d
movb $0x0, 0x38(%r14)
andq $0x0, 0x10(%r14)
jmp 0xa327d
movb $0x0, 0x38(%r14)
movq %r15, 0x10(%r14)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x10(%rax,%r15,8), %rcx
movq -0x8(%rax,%r15,8), %rax
cmpq %rax, %rcx
jae 0xa31c6
leaq -0x1(%rax), %rcx
movq %rcx, (%r14)
movq %rax, 0x8(%r14)
decq %r15
jmp 0xa31cb
andq $0x0, (%r14)
jmp 0xa2fb4
andq $0x0, (%r14)
jmp 0xa2fed
andq $0x0, (%r14)
jmp 0xa3026
movq 0x8ace4(%rip), %rax     # 0x12dfb8
movq (%rax), %rbx
callq 0xb948c
leaq 0x4c063(%rip), %rsi     # 0xef346
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xb8c0
pushq $0x2
popq %rdi
callq 0xb7b0