// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/range.c
// Function: gt_ranges_copy_to_opposite_strand
void gt_ranges_copy_to_opposite_strand(GtArray *outranges,
                                       const GtArray *inranges,
                                       GtUword gen_total_length,
                                       GtUword gen_offset)
{
  GtRange range;
  GtUword i;

  /* outranges are empty */
  gt_assert(!gt_array_size(outranges));
  /* inranges are not empty */
  gt_assert(gt_array_size(inranges));

  for (i = gt_array_size(inranges); i > 0; i--) {
    /* genomic offset is defined */
    gt_assert(gen_offset != GT_UNDEF_UWORD);
    range.start  = gen_total_length - 1
                  - (((GtRange*) gt_array_get(inranges, i-1))->end -
                     gen_offset)
                  + gen_offset;
    range.end = gen_total_length - 1
                  - (((GtRange*) gt_array_get(inranges, i-1))->start -
                     gen_offset)
                  + gen_offset;
    gt_array_add(outranges, range);
  }

  /* outranges has the same number of elements as inranges */
  gt_assert(gt_array_size(inranges) == gt_array_size(outranges));
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq 0x50(%rsp), %rdi
callq 0x76490
cmpq $0x0, %rax
je 0x95ef0
movq 0x11e119(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xc819d(%rip), %rsi     # 0x15e066
leaq 0xda6c1(%rip), %rdx     # 0x170591
leaq 0xda6d4(%rip), %rcx     # 0x1705ab
leaq 0xda12d(%rip), %r8      # 0x17000b
movl $0x1f2, %r9d            # imm = 0x1F2
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x95ef2
jmp 0x95ef4
movq 0x48(%rsp), %rdi
callq 0x76490
cmpq $0x0, %rax
jne 0x95f3c
movq 0x11e0cd(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xc8151(%rip), %rsi     # 0x15e066
leaq 0xda6b1(%rip), %rdx     # 0x1705cd
leaq 0xda688(%rip), %rcx     # 0x1705ab
leaq 0xda0e1(%rip), %r8      # 0x17000b
movl $0x1f4, %r9d            # imm = 0x1F4
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x95f3e
movq 0x48(%rsp), %rdi
callq 0x76490
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jbe 0x96041
jmp 0x95f5b
cmpq $-0x1, 0x38(%rsp)
jne 0x95f9b
movq 0x11e06e(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xc80f2(%rip), %rsi     # 0x15e066
leaq 0xda66a(%rip), %rdx     # 0x1705e5
leaq 0xda629(%rip), %rcx     # 0x1705ab
leaq 0xda082(%rip), %r8      # 0x17000b
movl $0x1f8, %r9d            # imm = 0x1F8
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x95f9d
movq 0x40(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
subq $0x1, %rsi
callq 0x75c80
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq 0x8(%rcx), %rcx
subq 0x38(%rsp), %rcx
subq %rcx, %rax
addq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x18(%rsp)
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
subq $0x1, %rsi
callq 0x75c80
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq (%rcx), %rcx
subq 0x38(%rsp), %rcx
subq %rcx, %rax
addq 0x38(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl $0x10, %edx
callq 0x76220
movq 0x20(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x95f4d
jmp 0x96043
movq 0x48(%rsp), %rdi
callq 0x76490
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
callq 0x76490
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
je 0x960a1
movq 0x11df68(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xc7fec(%rip), %rsi     # 0x15e066
leaq 0xda581(%rip), %rdx     # 0x170602
leaq 0xda523(%rip), %rcx     # 0x1705ab
leaq 0xd9f7c(%rip), %r8      # 0x17000b
movl $0x205, %r9d            # imm = 0x205
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x960a3
addq $0x58, %rsp
retq
nopl (%rax,%rax)