// File: /workspace/github_c_makefile_star2_O1/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 0x3288d0
movq %rcx, %r15
movl %esi, %r14d
movq %rdi, %rbx
movq 0x48(%rsp), %rcx
movq 0x40(%rsp), %rsi
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rsi, 0x50(%rdi)
cmpq %rcx, %rsi
ja 0x3288d5
movl %r9d, %ebp
movq 0x70(%rsp), %r12
movq 0x50(%rsp), %r13
movl %r9d, %eax
andl $-0x3, %eax
testb %r8b, %r8b
je 0x328774
cmpl $0x1, %eax
jne 0x328790
notq %rcx
leaq (%rcx,%rsi,2), %rcx
addq %r12, %rcx
jmp 0x328790
cmpl $0x1, %eax
jne 0x32878a
addq %rsi, %rsi
addq %r13, %rcx
subq %rcx, %rsi
addq %r12, %rsi
movq %rsi, %rcx
jmp 0x328790
addq %r13, %rcx
decq %rcx
movq %rcx, 0x48(%rbx)
testb %r8b, %r8b
je 0x3287b0
movl %ebp, %ecx
orl $0x2, %ecx
cmpl $0x3, %ecx
jne 0x3288c4
testb %r8b, %r8b
je 0x3287b0
xorl %eax, %eax
jmp 0x3287b6
cmpl $0x1, %eax
sete %al
movb %al, 0x58(%rbx)
testb %dl, %dl
je 0x3287c8
movq %r15, %rdi
callq 0xf1c71
movq %rax, (%rbx)
testq %r15, %r15
je 0x328865
movl %r14d, %eax
andl $-0x3, %eax
cmpl $0x1, %eax
jne 0x328843
cmpq $0x0, (%rbx)
jne 0x328843
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 0xed48e
movq %r12, 0x18(%rbx)
testq %r12, %r12
je 0x3288da
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x3288da
movq %rax, 0x28(%rbx)
movq (%rax), %rax
movq %rax, 0x20(%rbx)
movq $0x0, 0x40(%rbx)
movq 0x70(%rsp), %r12
cmpq $0x0, (%rbx)
jne 0x328865
cmpq $0x0, 0x18(%rbx)
jne 0x328865
cmpl $0x3, %r14d
je 0x328861
cmpl $0x2, %r14d
je 0x32886b
testl %r14d, %r14d
jne 0x328888
movq %r15, 0x8(%rbx)
cmpl $0x2, %r14d
jne 0x328888
cmpq $0x0, (%rbx)
jne 0x3288cb
cmpq $0x0, 0x18(%rbx)
jne 0x3288cb
cmpq $0x0, 0x8(%rbx)
jne 0x3288cb
movq 0x68(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r13, 0x30(%rbx)
movq %r12, 0x38(%rbx)
andl $-0x2, %ebp
cmpl $0x2, %ebp
sete 0x59(%rbx)
cmpq $0x0, (%rbx)
jne 0x3288b5
cmpq $0x0, 0x18(%rbx)
jne 0x3288b5
cmpq $0x0, 0x8(%rbx)
jne 0x3288b5
cmpq $0x0, 0x10(%rbx)
je 0x3288df
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0x3287b6
callq 0x95420
callq 0x954c7
callq 0x95490
callq 0x953e9
callq 0x95457