// File: /workspace/github_c_makefile_star2_O1/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, 0x10(%rsp)
movq (%rdi), %rcx
movl (%rcx,%rax,4), %edi
cmpl $0x6, %edi
je 0xbf790
cmpl $0x5, %edi
je 0xbf745
cmpl $0x4, %edi
jne 0xbfe22
movq 0x10(%rsp), %rdx
movl 0x8(%rdx), %r13d
xorl %eax, %eax
testl %esi, %esi
setne %al
movl $0x2b8, %ecx            # imm = 0x2B8
movl $0x240, %r15d           # imm = 0x240
cmoveq %rcx, %r15
addq (%rdx), %r15
movq 0x28(%rdx,%rax,8), %rbx
movl $0x0, 0x39(%rbx)
movq 0x10(%rdx), %rax
movq %rax, %r14
shrq $0x8, %r14
movq %rax, 0x30(%rsp)
cmpq $0x100, %rax            # imm = 0x100
jae 0xbf99f
xorl %r12d, %r12d
jmp 0xbf9a8
movq 0x10(%rsp), %rdx
movl 0x8(%rdx), %r13d
xorl %eax, %eax
testl %esi, %esi
setne %al
movl $0x2b8, %ecx            # imm = 0x2B8
movl $0x240, %r15d           # imm = 0x240
cmoveq %rcx, %r15
addq (%rdx), %r15
movq 0x28(%rdx,%rax,8), %rbx
movl $0x0, 0x39(%rbx)
movq 0x10(%rdx), %rax
movq %rax, %r14
shrq $0x10, %r14
movq %rax, 0x30(%rsp)
cmpq $0x10000, %rax          # imm = 0x10000
jae 0xbf7d9
xorl %r12d, %r12d
jmp 0xbf7e2
movq 0x10(%rsp), %rdx
movl 0x8(%rdx), %r13d
xorl %eax, %eax
testl %esi, %esi
movl $0x2b8, %ecx            # imm = 0x2B8
movl $0x240, %r15d           # imm = 0x240
cmoveq %rcx, %r15
setne %al
movq 0x28(%rdx,%rax,8), %rbx
addq (%rdx), %r15
movl $0x0, 0x39(%rbx)
movq 0x10(%rdx), %r14
movq %r14, 0x30(%rsp)
shrq $0x20, %r14
jne 0xbf8bc
xorl %r12d, %r12d
jmp 0xbf8c5
movq 0x10(%r15), %rax
movq -0x8(%rax,%r14,8), %r12
movq %r12, (%rbx)
movq 0x10(%r15), %rax
movq (%rax,%r14,8), %rbp
movq %rbp, 0x8(%rbx)
cmpq $0x0, 0x30(%rsp)
movq %rbx, 0x8(%rsp)
movl %r13d, 0x1c(%rsp)
je 0xbfa82
cmpq %rbp, %r12
jae 0xbfb51
movl $0x0, 0x4(%rsp)
movl %r13d, %ebx
orl $0x2, %ebx
movq %r12, %r13
notq %r13
addq %rbp, %r13
shrq %r13
addq %r12, %r13
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0xce28b
cmpl $0x3, %ebx
jne 0xbf86a
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x20(%rsp), %rax
jae 0xbf88d
leaq 0x1(%r13), %rax
movq 0x8(%rsp), %rcx
movq %rax, 0x8(%rcx)
movb $0x1, %al
movl %eax, 0x4(%rsp)
jmp 0xbf8ab
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x28(%rsp), %rax
jbe 0xbf8a0
movq 0x8(%rsp), %rax
movq %r13, (%rax)
incq %r13
movb $0x1, %al
movl %eax, 0x4(%rsp)
jmp 0xbf89b
incq %r13
cmpq 0x28(%rsp), %rax
jb 0xbfb1f
movq %r13, %r12
jmp 0xbf8ae
cmpq 0x20(%rsp), %rax
jae 0xbfb8d
movq %r13, %rbp
cmpq %rbp, %r12
jb 0xbf81e
jmp 0xbfbbe
movq 0x10(%r15), %rax
movq -0x8(%rax,%r14,8), %r12
movq %r12, (%rbx)
movq 0x10(%r15), %rax
movq (%rax,%r14,8), %rbp
movq %rbp, 0x8(%rbx)
cmpq $0x0, 0x30(%rsp)
movq %rbx, 0x8(%rsp)
movl %r13d, 0x1c(%rsp)
je 0xbfab9
cmpq %rbp, %r12
jae 0xbfb67
movl $0x0, 0x4(%rsp)
movl %r13d, %ebx
orl $0x2, %ebx
movq %r12, %r13
notq %r13
addq %rbp, %r13
shrq %r13
addq %r12, %r13
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0xce2c5
cmpl $0x3, %ebx
jne 0xbf94d
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x20(%rsp), %rax
jae 0xbf970
leaq 0x1(%r13), %rax
movq 0x8(%rsp), %rcx
movq %rax, 0x8(%rcx)
movb $0x1, %al
movl %eax, 0x4(%rsp)
jmp 0xbf98e
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x28(%rsp), %rax
jbe 0xbf983
movq 0x8(%rsp), %rax
movq %r13, (%rax)
incq %r13
movb $0x1, %al
movl %eax, 0x4(%rsp)
jmp 0xbf97e
incq %r13
cmpq 0x28(%rsp), %rax
jb 0xbfb2d
movq %r13, %r12
jmp 0xbf991
cmpq 0x20(%rsp), %rax
jae 0xbfb97
movq %r13, %rbp
cmpq %rbp, %r12
jb 0xbf901
jmp 0xbfc69
movq 0x10(%r15), %rax
movq -0x8(%rax,%r14,8), %r12
movq %r12, (%rbx)
movq 0x10(%r15), %rax
movq (%rax,%r14,8), %rbp
movq %rbp, 0x8(%rbx)
cmpq $0x0, 0x30(%rsp)
movq %rbx, 0x8(%rsp)
movl %r13d, 0x1c(%rsp)
je 0xbfaec
cmpq %rbp, %r12
jae 0xbfb80
movl $0x0, 0x4(%rsp)
movl %r13d, %ebx
orl $0x2, %ebx
movq %r12, %r13
notq %r13
addq %rbp, %r13
shrq %r13
addq %r12, %r13
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0xce251
cmpl $0x3, %ebx
jne 0xbfa30
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x20(%rsp), %rax
jae 0xbfa53
leaq 0x1(%r13), %rax
movq 0x8(%rsp), %rcx
movq %rax, 0x8(%rcx)
movb $0x1, %al
movl %eax, 0x4(%rsp)
jmp 0xbfa71
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x28(%rsp), %rax
jbe 0xbfa66
movq 0x8(%rsp), %rax
movq %r13, (%rax)
incq %r13
movb $0x1, %al
movl %eax, 0x4(%rsp)
jmp 0xbfa61
incq %r13
cmpq 0x28(%rsp), %rax
jb 0xbfb3b
movq %r13, %r12
jmp 0xbfa74
cmpq 0x20(%rsp), %rax
jae 0xbfba4
movq %r13, %rbp
cmpq %rbp, %r12
jb 0xbf9e4
jmp 0xbfd11
cmpq %rbp, %r12
jae 0xbfb51
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xce28b
movl %r13d, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0xbfb49
movq $0x1, 0x8(%rbx)
jmp 0xbfbb8
cmpq %rbp, %r12
jae 0xbfb67
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xce2c5
movl %r13d, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0xbfb5b
movq $0x1, 0x8(%rbx)
jmp 0xbfc63
cmpq %rbp, %r12
jae 0xbfb80
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xce251
movl %r13d, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0xbfb74
movq $0x1, 0x8(%rbx)
jmp 0xbfd0b
movq 0x8(%rsp), %rax
movq %r13, 0x8(%rax)
jmp 0xbfbb8
movq 0x8(%rsp), %rax
movq %r13, 0x8(%rax)
jmp 0xbfc63
movq 0x8(%rsp), %rax
movq %r13, 0x8(%rax)
jmp 0xbfd0b
cmpq $0x0, 0x20(%rsp)
je 0xbfbb1
movl $0x0, 0x4(%rsp)
jmp 0xbfbbe
cmpq $0x0, 0x20(%rsp)
je 0xbfc5c
movl $0x0, 0x4(%rsp)
jmp 0xbfc69
cmpq $0x0, 0x20(%rsp)
je 0xbfd04
movl $0x0, 0x4(%rsp)
jmp 0xbfd11
movq 0x8(%rsp), %rax
movq %r13, (%rax)
jmp 0xbfbb8
movq 0x8(%rsp), %rax
movq %r13, (%rax)
jmp 0xbfc63
movq 0x8(%rsp), %rax
movq %r13, (%rax)
jmp 0xbfd0b
movq $0x0, (%rbx)
movb $0x1, %al
movl %eax, 0x4(%rsp)
movl 0x1c(%rsp), %ebp
orl $0x2, %ebp
cmpl $0x3, %ebp
jne 0xbfbee
movq 0x8(%rsp), %rbx
movl 0x4(%rsp), %edx
testb $0x1, %dl
je 0xbfd3d
leaq 0x18(%rbx), %r12
cmpl $0x3, %ebp
jne 0xbfc0b
movq 0x8(%rbx), %rcx
decq %rcx
jmp 0xbfc0e
cmpq $0x10000, 0x30(%rsp)    # imm = 0x10000
setb %al
movl 0x4(%rsp), %edx
orb %dl, %al
testb $0x1, %al
je 0xbfc21
movq 0x8(%rsp), %rbx
jmp 0xbfbd3
movq (%rbx), %rcx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xce28b
jmp 0xbfd7e
cmpq $0x1, %r14
movq 0x8(%rsp), %rbx
jne 0xbfc30
xorl %eax, %eax
jmp 0xbfc39
movq 0x10(%r15), %rax
movq -0x10(%rax,%r14,8), %rax
movq 0x10(%r15), %rcx
movq -0x8(%rcx,%r14,8), %rcx
cmpq %rcx, %rax
jae 0xbfbd3
leaq -0x1(%rcx), %rax
movq %rax, (%rbx)
movq %rcx, 0x8(%rbx)
decq %r14
movb $0x1, %dl
jmp 0xbfbd3
movq $0x0, (%rbx)
movb $0x1, %al
movl %eax, 0x4(%rsp)
movl 0x1c(%rsp), %ebp
orl $0x2, %ebp
cmpl $0x3, %ebp
jne 0xbfc99
movq 0x8(%rsp), %rbx
movl 0x4(%rsp), %edx
testb $0x1, %dl
je 0xbfd3d
leaq 0x18(%rbx), %r12
cmpl $0x3, %ebp
jne 0xbfcb3
movq 0x8(%rbx), %rcx
decq %rcx
jmp 0xbfcb6
shrq $0x20, 0x30(%rsp)
sete %al
movl 0x4(%rsp), %edx
orb %dl, %al
testb $0x1, %al
je 0xbfcc9
movq 0x8(%rsp), %rbx
jmp 0xbfc7e
movq (%rbx), %rcx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xce2c5
jmp 0xbfd7e
cmpl $0x1, %r14d
movq 0x8(%rsp), %rbx
jne 0xbfcd8
xorl %eax, %eax
jmp 0xbfce1
movq 0x10(%r15), %rax
movq -0x10(%rax,%r14,8), %rax
movq 0x10(%r15), %rcx
movq -0x8(%rcx,%r14,8), %rcx
cmpq %rcx, %rax
jae 0xbfc7e
leaq -0x1(%rcx), %rax
movq %rax, (%rbx)
movq %rcx, 0x8(%rbx)
decq %r14
movb $0x1, %dl
jmp 0xbfc7e
movq $0x0, (%rbx)
movb $0x1, %al
movl %eax, 0x4(%rsp)
movl 0x1c(%rsp), %ebp
orl $0x2, %ebp
cmpl $0x3, %ebp
jne 0xbfd50
movq 0x8(%rsp), %rbx
movl 0x4(%rsp), %edx
testb $0x1, %dl
je 0xbfd3d
leaq 0x18(%rbx), %r12
cmpl $0x3, %ebp
jne 0xbfd6d
movq 0x8(%rbx), %rcx
decq %rcx
jmp 0xbfd70
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
cmpq 0x20(%r15), %r14
setb 0x38(%rbx)
jmp 0xbfdd0
cmpq $0x100, 0x30(%rsp)      # imm = 0x100
setb %al
movl 0x4(%rsp), %edx
orb %dl, %al
testb $0x1, %al
je 0xbfde3
movq 0x8(%rsp), %rbx
jmp 0xbfd26
movq (%rbx), %rcx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xce251
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
cmpq %rax, (%r12)
ja 0xbfd97
cmpq 0x20(%rbx), %rax
jae 0xbfd97
movb $0x1, 0x3a(%rbx)
cmpl $0x3, %ebp
jne 0xbfdaa
testq %r14, %r14
je 0xbfdbe
movb $0x1, 0x38(%rbx)
decq %r14
jmp 0xbfdd0
leaq 0x1(%r14), %rax
cmpq 0x20(%r15), %rax
jae 0xbfdcc
movb $0x1, 0x38(%rbx)
movq %rax, 0x10(%rbx)
jmp 0xbfdd4
movb $0x0, 0x38(%rbx)
movq $0x0, 0x10(%rbx)
jmp 0xbfdd4
movb $0x0, 0x38(%rbx)
movq %r14, 0x10(%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x1, %r14
movq 0x8(%rsp), %rbx
jne 0xbfdf2
xorl %eax, %eax
jmp 0xbfdfb
movq 0x10(%r15), %rax
movq -0x10(%rax,%r14,8), %rax
movq 0x10(%r15), %rcx
movq -0x8(%rcx,%r14,8), %rcx
cmpq %rcx, %rax
jae 0xbfd26
leaq -0x1(%rcx), %rax
movq %rax, (%rbx)
movq %rcx, 0x8(%rbx)
decq %r14
movb $0x1, %dl
jmp 0xbfd26
callq 0x2a74b