// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_mirror
int gt_encseq_mirror(GtEncseq *encseq, GtError *err)
{
  int had_err = 0;
  gt_assert(encseq && !encseq->hasmirror);
  gt_error_check(err);
  if (!gt_alphabet_is_dna(encseq->alpha)) {
    gt_error_set(err, "mirroring can only be enabled for DNA sequences, "
                      "this encoded sequence has alphabet: %.*s",
                      gt_alphabet_num_of_chars(encseq->alpha),
                      gt_alphabet_characters(encseq->alpha));
    had_err = -1;
  }
  if (!had_err) {
    encseq->hasmirror = true;
    encseq->logicalnumofdbsequences = gt_safe_mult_ulong_check(2,
                                                     encseq->numofdbsequences,
                                                     gt_encseq_overflow_abort,
                                                     &encseq->numofdbsequences);
    encseq->logicaltotallength = gt_safe_mult_ulong_check(2,
                                                       encseq->totallength,
                                                       gt_encseq_overflow_abort,
                                                       &encseq->totallength)
                                  + 1;
  }
  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x125f0c
movq 0x20(%rsp), %rax
testb $0x1, 0x3a8(%rax)
je 0x125f44
movq 0x8e0c5(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x38149(%rip), %rsi     # 0x15e066
leaq 0x6296d(%rip), %rdx     # 0x188891
leaq 0x62983(%rip), %rcx     # 0x1888ae
leaq 0x5f72c(%rip), %r8      # 0x18565e
movl $0x2587, %r9d           # imm = 0x2587
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x125f46
jmp 0x125f48
cmpq $0x0, 0x18(%rsp)
je 0x125f98
movq 0x18(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x125f60
jmp 0x125f98
movq 0x8e071(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x380f5(%rip), %rsi     # 0x15e066
leaq 0x386d0(%rip), %rdx     # 0x15e648
leaq 0x6292f(%rip), %rcx     # 0x1888ae
leaq 0x5f6d8(%rip), %r8      # 0x18565e
movl $0x2588, %r9d           # imm = 0x2588
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x125f9a
movq 0x20(%rsp), %rax
movq 0x220(%rax), %rdi
callq 0x10a8e0
testb $0x1, %al
jne 0x126001
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x220(%rax), %rdi
callq 0x109da0
movl %eax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x220(%rax), %rdi
callq 0x109e50
movq 0x8(%rsp), %rdi
movl 0x10(%rsp), %edx
movq %rax, %rcx
leaq 0x628cd(%rip), %rsi     # 0x1888bf
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x14(%rsp)
jne 0x126092
movq 0x20(%rsp), %rax
movb $0x1, 0x3a8(%rax)
movq 0x20(%rsp), %rax
movq 0x40(%rax), %rsi
movq 0x20(%rsp), %r9
addq $0x40, %r9
movl $0x2, %edi
leaq 0x5f628(%rip), %rdx     # 0x18565e
movl $0x2595, %ecx           # imm = 0x2595
leaq 0x6f9e(%rip), %r8       # 0x12cfe0
callq 0x96520
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x48(%rax)
movq 0x20(%rsp), %rax
movq 0x30(%rax), %rsi
movq 0x20(%rsp), %r9
addq $0x30, %r9
movl $0x2, %edi
leaq 0x5f5ed(%rip), %rdx     # 0x18565e
movl $0x2599, %ecx           # imm = 0x2599
leaq 0x6f63(%rip), %r8       # 0x12cfe0
callq 0x96520
movq %rax, %rcx
addq $0x1, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x38(%rax)
movl 0x14(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax,%rax)