// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_sequence2bytecode
void gt_encseq_sequence2bytecode(GtUchar *dest,
                                 const GtEncseq *encseq,
                                 GtUword startindex,
                                 GtUword len)
{
  if (encseq->sat == GT_ACCESS_TYPE_DIRECTACCESS)
    gt_encseq_plainseq2bytecode(dest, encseq->plainseq + startindex, len);
  else
    encseq2bytecode(dest, encseq, startindex, len);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r9
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r13
movl (%rsi), %eax
testl %eax, %eax
je 0xbfaf2
testq %r13, %r13
je 0xbff18
cmpq $0x0, 0x280(%rbx)
je 0xbfb4f
cmpq $0x3, %r9
jb 0xbfb15
leaq (%r14,%r9), %rax
addq $-0x3, %rax
cmpq %r14, %rax
jbe 0xbfb15
leaq (%r14,%r14), %rdx
xorl %r12d, %r12d
movq 0x280(%rbx), %rsi
movq %r14, %rcx
shrq $0x5, %rcx
movq (%rsi,%rcx,8), %r8
movl %edx, %ecx
notb %cl
andb $0x3e, %cl
shrq %cl, %r8
shlb $0x6, %r8b
leaq 0x1(%r14), %rcx
shrq $0x5, %rcx
movq (%rsi,%rcx,8), %rdi
leal 0x2(%rdx), %ecx
notb %cl
andb $0x3e, %cl
shrq %cl, %rdi
shlb $0x4, %dil
andb $0x30, %dil
orb %r8b, %dil
leaq 0x2(%r14), %rcx
shrq $0x5, %rcx
movq (%rsi,%rcx,8), %r8
leal 0x4(%rdx), %ecx
notb %cl
andb $0x3e, %cl
shrq %cl, %r8
shlb $0x2, %r8b
andb $0xc, %r8b
leaq 0x3(%r14), %rcx
shrq $0x5, %rcx
movq (%rsi,%rcx,8), %rsi
leal 0x6(%rdx), %ecx
notb %cl
andb $0x3e, %cl
shrq %cl, %rsi
orb %dil, %r8b
andb $0x3, %sil
orb %r8b, %sil
movb %sil, (%r13,%r12)
addq $0x4, %r14
incq %r12
addq $0x8, %rdx
cmpq %rax, %r14
jb 0xbfa55
jmp 0xbfb18
addq 0x290(%rbx), %r14
movq %r13, %rdi
movq %r14, %rsi
movq %r9, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbf978
xorl %r12d, %r12d
andl $0x3, %r9d
leaq 0x42bed(%rip), %rax     # 0x102710
movslq (%rax,%r9,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x280(%rbx), %rax
movq %r14, %rcx
shrq $0x5, %rcx
movq (%rax,%rcx,8), %rax
notl %r14d
addl %r14d, %r14d
movl %r14d, %ecx
shrq %cl, %rax
jmp 0xbfdba
cmpl $0x1, %eax
jne 0xbfef5
cmpq $0x3, %r9
jb 0xbfd6d
leaq (%r14,%r9), %rax
addq $-0x3, %rax
movq %rax, 0x20(%rsp)
cmpq %r14, %rax
jbe 0xbfd6d
movq %r9, 0x10(%rsp)
xorl %r12d, %r12d
movq %r13, 0x18(%rsp)
movq %rbx, 0x8(%rsp)
movq 0x2a0(%rbx), %rax
testq %rax, %rax
je 0xbff04
movq %r14, %r15
cmpq %r14, 0x8(%rax)
jbe 0xbff04
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff04
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r15, %rsi
callq 0xde1d4
movl %eax, %ebp
movq 0x2a0(%rbx), %rax
testq %rax, %rax
je 0xbff09
leaq 0x1(%r15), %r14
cmpq %r14, 0x8(%rax)
jbe 0xbff09
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff09
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r14, %rsi
callq 0xde1d4
movl %eax, %r13d
movq 0x2a0(%rbx), %rax
testq %rax, %rax
je 0xbff0e
incq %r14
cmpq %r14, 0x8(%rax)
jbe 0xbff0e
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff0e
leaq 0x2(%r15), %rsi
movq (%rax), %rdi
imulq %rdx, %rsi
callq 0xde1d4
movl %eax, %ebx
movq 0x8(%rsp), %rax
movq 0x2a0(%rax), %rax
testq %rax, %rax
je 0xbff13
incq %r14
cmpq %r14, 0x8(%rax)
jbe 0xbff13
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff13
shll $0x6, %ebp
shll $0x4, %r13d
orl %ebp, %r13d
shll $0x2, %ebx
orl %r13d, %ebx
leaq 0x3(%r15), %rsi
movq (%rax), %rdi
imulq %rdx, %rsi
callq 0xde1d4
orl %ebx, %eax
movq 0x18(%rsp), %r13
movb %al, (%r13,%r12)
incq %r12
incq %r14
cmpq 0x20(%rsp), %r14
movq 0x8(%rsp), %rbx
jb 0xbfb8a
addq $0x4, %r15
movq %r15, %r14
movq 0x10(%rsp), %r9
jmp 0xbfd70
movq 0x280(%rbx), %rax
movq %r14, %rcx
shrq $0x5, %rcx
movq (%rax,%rcx,8), %rdx
movl %r14d, %ecx
notl %ecx
addl %ecx, %ecx
shrq %cl, %rdx
incq %r14
movq %r14, %rcx
shrq $0x5, %rcx
movq (%rax,%rcx,8), %rax
notl %r14d
addl %r14d, %r14d
movl %r14d, %ecx
shrq %cl, %rax
shlb $0x6, %dl
shlb $0x4, %al
andb $0x30, %al
orb %dl, %al
jmp 0xbfef0
movq 0x280(%rbx), %rax
movq %r14, %rcx
shrq $0x5, %rcx
movq (%rax,%rcx,8), %rdx
movl %r14d, %ecx
notl %ecx
addl %ecx, %ecx
shrq %cl, %rdx
shlb $0x6, %dl
leaq 0x1(%r14), %rcx
movq %rcx, %rsi
shrq $0x5, %rsi
movq (%rax,%rsi,8), %rsi
notl %ecx
addl %ecx, %ecx
shrq %cl, %rsi
shlb $0x4, %sil
andb $0x30, %sil
addq $0x2, %r14
movq %r14, %rcx
shrq $0x5, %rcx
movq (%rax,%rcx,8), %rax
notl %r14d
addl %r14d, %r14d
movl %r14d, %ecx
shrq %cl, %rax
orb %dl, %sil
shlb $0x2, %al
andb $0xc, %al
orb %sil, %al
jmp 0xbfef0
xorl %r12d, %r12d
andl $0x3, %r9d
leaq 0x429a5(%rip), %rax     # 0x102720
movslq (%rax,%r9,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x2a0(%rbx), %rax
testq %rax, %rax
je 0xbff1d
cmpq %r14, 0x8(%rax)
jbe 0xbff1d
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff1d
movq (%rax), %rdi
imulq %rdx, %r14
movq %r14, %rsi
callq 0xde1d4
shlb $0x6, %al
jmp 0xbfef0
movq 0x2a0(%rbx), %rax
testq %rax, %rax
je 0xbff22
cmpq %r14, 0x8(%rax)
jbe 0xbff22
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff22
movq %rbx, %r15
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r14, %rsi
callq 0xde1d4
movl %eax, %ebx
movq 0x2a0(%r15), %rax
testq %rax, %rax
je 0xbff2c
incq %r14
cmpq %r14, 0x8(%rax)
jbe 0xbff2c
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff2c
shll $0x6, %ebx
movq (%rax), %rdi
imulq %rdx, %r14
movq %r14, %rsi
callq 0xde1d4
shll $0x4, %eax
jmp 0xbfeee
movq 0x2a0(%rbx), %rax
testq %rax, %rax
je 0xbff27
cmpq %r14, 0x8(%rax)
jbe 0xbff27
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff27
movq (%rax), %rdi
movq %rdx, %rsi
imulq %r14, %rsi
callq 0xde1d4
movl %eax, %ebp
movq 0x2a0(%rbx), %rax
testq %rax, %rax
je 0xbff31
leaq 0x1(%r14), %rsi
cmpq %rsi, 0x8(%rax)
jbe 0xbff31
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff31
movq %rbx, %r15
movq (%rax), %rdi
imulq %rdx, %rsi
callq 0xde1d4
movl %eax, %ebx
movq 0x2a0(%r15), %rax
testq %rax, %rax
je 0xbff36
addq $0x2, %r14
cmpq %r14, 0x8(%rax)
jbe 0xbff36
movl 0x10(%rax), %edx
cmpq $0x21, %rdx
jae 0xbff36
shll $0x6, %ebp
shll $0x4, %ebx
orl %ebp, %ebx
movq (%rax), %rdi
imulq %rdx, %r14
movq %r14, %rsi
callq 0xde1d4
shll $0x2, %eax
orl %ebx, %eax
movb %al, (%r13,%r12)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29db4
callq 0x29d7d
callq 0x29d46
callq 0x29d0f
callq 0x29deb
callq 0x29cd8
callq 0x29ca1
callq 0x29c33
callq 0x29c6a
callq 0x29bfc
callq 0x29bc5