// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/ft-front-prune.c
// Function: ft_sequenceobject_init
static void ft_sequenceobject_init(GtFtSequenceObject *seq,
                                   GtExtendCharAccess extend_char_access_mode,
                                   bool twobit_possible,
                                   const GtEncseq *encseq,
                                   bool rightextension,
                                   GtReadmode readmode,
                                   GtUword seqstartpos,
                                   GtUword startpos,
                                   GtUword len,
                                   GtEncseqReader *encseq_r,
                                   GtAllocatedMemory *sequence_cache,
                                   const GtUchar *bytesequence,
                                   GtUword totallength,
                                   GtUword full_totallength
                                   )
{
  gt_assert(seq != NULL);
  seq->encseq = NULL;
  seq->encseqreader = NULL;
  seq->twobitencoding = NULL;
  seq->cache_ptr = NULL;
  seq->sequence_cache = NULL;
  seq->bytesequenceptr = NULL;
  seq->seqstartpos = seqstartpos;
  gt_assert(seqstartpos <= startpos);
  seq->offset = GT_EXTEND_OFFSET(rightextension,
                                 readmode,
                                 totallength,
                                 seqstartpos,
                                 startpos,
                                 len);
  seq->read_seq_left2right = GT_EXTEND_READ_SEQ_LEFT2RIGHT(rightextension,
                                                           readmode);
  if (twobit_possible)
  {
    seq->twobitencoding = gt_encseq_twobitencoding_export(encseq);
  }
  if (encseq != NULL && seq->twobitencoding == NULL &&
      (extend_char_access_mode == GT_EXTEND_CHAR_ACCESS_ANY ||
       extend_char_access_mode == GT_EXTEND_CHAR_ACCESS_ENCSEQ_READER))
  {
    gt_encseq_reader_reinit_with_readmode(encseq_r, encseq,
                                          seq->read_seq_left2right
                                            ? GT_READMODE_FORWARD
                                            : GT_READMODE_REVERSE,
                                          seq->read_seq_left2right
                                            ? seq->offset
                                            : GT_REVERSEPOS(full_totallength,
                                                            seq->offset));
    seq->encseqreader = encseq_r;
    gt_assert(seq->encseqreader != NULL && sequence_cache != NULL);
    seq->sequence_cache = sequence_cache;
    seq->cache_ptr = (GtUchar *) sequence_cache->space;
    seq->cache_num_positions = 0;
  }
  if (encseq != NULL && seq->twobitencoding == NULL &&
      seq->encseqreader == NULL &&
      (extend_char_access_mode == GT_EXTEND_CHAR_ACCESS_ANY ||
       extend_char_access_mode == GT_EXTEND_CHAR_ACCESS_ENCSEQ))
  {
    seq->encseq = encseq;
  }
  if (extend_char_access_mode == GT_EXTEND_CHAR_ACCESS_DIRECT)
  {
    gt_assert(seq->twobitencoding == NULL && seq->encseqreader == NULL &&
              seq->encseq == NULL);
    seq->bytesequenceptr = bytesequence;
  }
  seq->substringlength = len;
  seq->totallength = totallength;
  seq->dir_is_complement = GT_ISDIRCOMPLEMENT(readmode) ? true : false;
  gt_assert(seq->twobitencoding != NULL || seq->encseqreader != NULL ||
            seq->encseq != NULL || seq->bytesequenceptr != NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2bf08d
movq %rcx, %r15
movq %rdi, %rbx
movq 0x48(%rsp), %rcx
movq 0x40(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rax, 0x50(%rdi)
cmpq %rcx, %rax
ja 0x2bf0b7
movl %r9d, %ebp
movl %esi, %r14d
movq 0x70(%rsp), %r13
movq 0x50(%rsp), %r12
movl %r9d, %esi
andl $-0x3, %esi
testb %r8b, %r8b
je 0x2bef1f
movq %rcx, %rdi
notq %rdi
leaq (%rdi,%rax,2), %rax
addq %r13, %rax
cmpl $0x1, %esi
cmovneq %rcx, %rax
movq %rax, 0x48(%rbx)
movl %ebp, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0x2bef45
xorl %eax, %eax
jmp 0x2bef47
cmpl $0x1, %esi
jne 0x2bef32
addq %rax, %rax
addq %r12, %rcx
subq %rcx, %rax
addq %r13, %rax
jmp 0x2bef39
leaq (%r12,%rcx), %rax
decq %rax
movq %rax, 0x48(%rbx)
cmpl $0x1, %esi
sete %al
jmp 0x2bef47
movb $0x1, %al
movb %al, 0x58(%rbx)
testb %dl, %dl
je 0x2bef5b
movq %r15, %rdi
callq 0x776db
movq %rax, (%rbx)
jmp 0x2bef5d
xorl %eax, %eax
testq %r15, %r15
je 0x2bf000
testq %rax, %rax
setne %cl
movl %r14d, %edx
andl $-0x3, %edx
cmpl $0x1, %edx
setne %dl
orb %cl, %dl
jne 0x2befdd
movq 0x58(%rsp), %r12
movzbl 0x58(%rbx), %eax
movl %eax, %edx
movq 0x48(%rbx), %rsi
movq %rsi, %rcx
notq %rcx
addq 0x78(%rsp), %rcx
xorl $0x1, %edx
testl %eax, %eax
cmovneq %rsi, %rcx
movq %r12, %rdi
movq %r15, %rsi
callq 0x71f38
movq %r12, 0x18(%rbx)
testq %r12, %r12
je 0x2bf0e1
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x2bf0e1
movq %rax, 0x28(%rbx)
movq (%rax), %rax
movq %rax, 0x20(%rbx)
andq $0x0, 0x40(%rbx)
movq (%rbx), %rax
movq 0x50(%rsp), %r12
testq %rax, %rax
jne 0x2bf000
cmpq $0x0, 0x18(%rbx)
jne 0x2beffe
cmpl $0x3, %r14d
je 0x2beffa
cmpl $0x2, %r14d
je 0x2bf012
testl %r14d, %r14d
jne 0x2bf022
movq %r15, 0x8(%rbx)
xorl %eax, %eax
cmpl $0x2, %r14d
jne 0x2bf024
testq %rax, %rax
jne 0x2bf063
cmpq $0x0, 0x18(%rbx)
jne 0x2bf063
cmpq $0x0, 0x8(%rbx)
jne 0x2bf063
movq 0x68(%rsp), %rax
movq %rax, 0x10(%rbx)
xorl %eax, %eax
movq %r12, 0x30(%rbx)
movq %r13, 0x38(%rbx)
andl $-0x2, %ebp
cmpl $0x2, %ebp
sete 0x59(%rbx)
testq %rax, %rax
jne 0x2bf054
cmpq $0x0, 0x18(%rbx)
jne 0x2bf054
cmpq $0x0, 0x8(%rbx)
jne 0x2bf054
cmpq $0x0, 0x10(%rbx)
je 0x2bf117
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x178efe(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x25f9f(%rip), %rsi     # 0x2e5013
leaq 0xc5054(%rip), %rdx     # 0x3840cf
leaq 0xc4fea(%rip), %rcx     # 0x38406c
leaq 0xc4e89(%rip), %r8      # 0x383f12
pushq $0x7f
jmp 0x2bf109
movq 0x178ed4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x25f75(%rip), %rsi     # 0x2e5013
leaq 0x9d79d(%rip), %rdx     # 0x35c842
leaq 0xc4fc0(%rip), %rcx     # 0x38406c
leaq 0xc4e5f(%rip), %r8      # 0x383f12
pushq $0x4e
jmp 0x2bf109
movq 0x178eaa(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x25f4b(%rip), %rsi     # 0x2e5013
leaq 0xc4fb4(%rip), %rdx     # 0x384083
leaq 0xc4f96(%rip), %rcx     # 0x38406c
leaq 0xc4e35(%rip), %r8      # 0x383f12
pushq $0x56
jmp 0x2bf109
movq 0x178e80(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x25f21(%rip), %rsi     # 0x2e5013
leaq 0xc4fa2(%rip), %rdx     # 0x38409b
leaq 0xc4f6c(%rip), %rcx     # 0x38406c
leaq 0xc4e0b(%rip), %r8      # 0x383f12
pushq $0x70
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x178e4a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x25eeb(%rip), %rsi     # 0x2e5013
leaq 0xc4ff0(%rip), %rdx     # 0x38411f
leaq 0xc4f36(%rip), %rcx     # 0x38406c
leaq 0xc4dd5(%rip), %r8      # 0x383f12
movl $0x86, %r9d
jmp 0x2bf10b