// File: /workspace/github_c_makefile_star2_O3/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 0x31e4db
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 0x31e4e0
movl %r9d, %ebp
movl %esi, %r14d
movq 0x70(%rsp), %r13
movq 0x50(%rsp), %r12
movl %r9d, %esi
andl $-0x3, %esi
testb %r8b, %r8b
je 0x31e393
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 0x31e3b9
xorl %ecx, %ecx
jmp 0x31e3bb
cmpl $0x1, %esi
jne 0x31e3a6
addq %rax, %rax
addq %r12, %rcx
subq %rcx, %rax
addq %r13, %rax
jmp 0x31e3ad
leaq (%r12,%rcx), %rax
decq %rax
cmpl $0x1, %esi
sete %cl
movq %rax, 0x48(%rbx)
jmp 0x31e3bb
movb $0x1, %cl
movb %cl, 0x58(%rbx)
testb %dl, %dl
je 0x31e3cf
movq %r15, %rdi
callq 0xed62d
movq %rax, (%rbx)
jmp 0x31e3d1
xorl %eax, %eax
testq %r15, %r15
je 0x31e477
testq %rax, %rax
setne %cl
movl %r14d, %edx
andl $-0x3, %edx
cmpl $0x1, %edx
setne %dl
orb %cl, %dl
jne 0x31e454
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 0xe8eed
movq %r12, 0x18(%rbx)
testq %r12, %r12
je 0x31e4e5
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x31e4e5
movq %rax, 0x28(%rbx)
movq (%rax), %rax
movq %rax, 0x20(%rbx)
movq $0x0, 0x40(%rbx)
movq (%rbx), %rax
movq 0x50(%rsp), %r12
testq %rax, %rax
jne 0x31e477
cmpq $0x0, 0x18(%rbx)
jne 0x31e475
cmpl $0x3, %r14d
je 0x31e471
cmpl $0x2, %r14d
je 0x31e489
testl %r14d, %r14d
jne 0x31e499
movq %r15, 0x8(%rbx)
xorl %eax, %eax
cmpl $0x2, %r14d
jne 0x31e49b
testq %rax, %rax
jne 0x31e4d6
cmpq $0x0, 0x18(%rbx)
jne 0x31e4d6
cmpq $0x0, 0x8(%rbx)
jne 0x31e4d6
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 0x31e4c7
cmpq $0x0, 0x18(%rbx)
jne 0x31e4c7
cmpq $0x0, 0x8(%rbx)
jne 0x31e4c7
cmpq $0x0, 0x10(%rbx)
je 0x31e4ea
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x93462
callq 0x93509
callq 0x934d2
callq 0x9342b
callq 0x93499