// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/shu-encseq-gc.c
// Function: gt_encseq_get_rel_gc
double *gt_encseq_get_rel_gc(const GtEncseq *encseq,
                             GT_UNUSED GtError *err)
{
  double *gc_content;
  GtUword *gc_count_per_seq,
                max_unit,
                seq_idx = 0;
  bool is_mirrored_encseq;

  is_mirrored_encseq = gt_encseq_is_mirrored(encseq);
  if (is_mirrored_encseq)
  {
    max_unit = GT_DIV2(gt_encseq_num_of_sequences(encseq));
    gc_content = gt_calloc((size_t) GT_MULT2(max_unit), sizeof (double));
  }
  else
  {
    max_unit = gt_encseq_num_of_sequences(encseq);
    gc_content = gt_calloc((size_t) max_unit, sizeof (double));
  }

  gc_count_per_seq = gt_encseq_gc_count(encseq);
  for (seq_idx = 0; seq_idx < max_unit; seq_idx++) {
    calculate_rel_gc(encseq,
                     gc_content,
                     seq_idx,
                     gc_count_per_seq[seq_idx]);
  }
  if (is_mirrored_encseq)
  {
    GtUword double_max_unit = GT_MULT2(max_unit);
    for (seq_idx = 0; seq_idx < max_unit; seq_idx++)
    {
      gc_content[double_max_unit - seq_idx - 1] = gc_content[seq_idx];
    }
  }
  return gc_content;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x81dea
movl %eax, %ebp
movq %rbx, %rdi
callq 0x705a1
movq %rax, %r15
movb %bpl, 0x7(%rsp)
testb %bpl, %bpl
je 0x1b0c2b
movq %r15, %r13
shrq %r13
andq $-0x2, %r15
leaq 0x1ab06e(%rip), %rdx    # 0x35bc86
pushq $0x8
popq %rsi
pushq $0x76
popq %rcx
movq %r15, %rdi
callq 0x9334a
movq %rax, %r14
jmp 0x1b0c46
leaq 0x1ab054(%rip), %rdx    # 0x35bc86
pushq $0x8
popq %rsi
pushq $0x7b
popq %rcx
movq %r15, %rdi
callq 0x9334a
movq %rax, %r14
movq %r15, %r13
movq %rbx, %rdi
callq 0x1b09a0
movq %rax, %r15
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x1b0d30
movq (%r15,%r12,8), %rbp
movq %rbx, %rdi
callq 0x705a1
cmpq %r12, %rax
jbe 0x1b0dc5
movq %rbx, %rdi
movq %r12, %rsi
callq 0x75173
cmpq %rbp, %rax
jb 0x1b0d71
movq %rbp, %xmm1
movq 0x136c4d(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x136c51(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movsd %xmm0, (%r14,%r12,8)
xorpd %xmm1, %xmm1
callq 0x955a7
cmpl $-0x1, %eax
je 0x1b0d9b
movsd (%r14,%r12,8), %xmm0
movsd 0x135536(%rip), %xmm1   # 0x2e6228
callq 0x955a7
incq %r12
cmpl $0x1, %eax
jne 0x1b0c54
movq 0x28725e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1342ff(%rip), %rsi    # 0x2e5013
leaq 0x1ab06e(%rip), %rdx    # 0x35bd89
leaq 0x1ab011(%rip), %rcx    # 0x35bd33
leaq 0x1aaf5d(%rip), %r8     # 0x35bc86
pushq $0x2a
jmp 0x1b0ded
cmpb $0x0, 0x7(%rsp)
je 0x1b0d5f
movq %r13, %rax
shlq $0x4, %rax
addq %r14, %rax
addq $-0x8, %rax
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x1b0d5f
movsd (%r14,%rcx,8), %xmm0
movsd %xmm0, (%rax)
incq %rcx
addq $-0x8, %rax
jmp 0x1b0d47
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2871f0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x134291(%rip), %rsi    # 0x2e5013
leaq 0x1aafbb(%rip), %rdx    # 0x35bd44
leaq 0x1aafa3(%rip), %rcx    # 0x35bd33
leaq 0x1aaeef(%rip), %r8     # 0x35bc86
pushq $0x27
jmp 0x1b0ded
movq 0x2871c6(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x134267(%rip), %rsi    # 0x2e5013
leaq 0x1aafa4(%rip), %rdx    # 0x35bd57
leaq 0x1aaf79(%rip), %rcx    # 0x35bd33
leaq 0x1aaec5(%rip), %r8     # 0x35bc86
pushq $0x29
jmp 0x1b0ded
movq 0x28719c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x13423d(%rip), %rsi    # 0x2e5013
leaq 0x1aaf29(%rip), %rdx    # 0x35bd06
leaq 0x1aaf4f(%rip), %rcx    # 0x35bd33
leaq 0x1aae9b(%rip), %r8     # 0x35bc86
pushq $0x25
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390