// File: /workspace/github_c_makefile_star2_O2/thegenemyers[P]DASCRUBBER/align.c
// Function: Print_Overlap
void Print_Overlap(FILE *output, Overlap *ovl, int tbytes, int indent)
{ int     i;

  fprintf(output,"%*s%d vs. ",indent,"",ovl->aread);
  if (COMP(ovl->flags))
    fprintf(output,"c(%d)\n",ovl->bread);
  else
    fprintf(output,"%d\n",ovl->bread);
  fprintf(output,"%*s  [%d,%d] vs [%d,%d] w. %d diffs\n",indent,"",
                 ovl->path.abpos,ovl->path.aepos,ovl->path.bbpos,ovl->path.bepos,ovl->path.diffs);

  if (tbytes == 1)
    { uint8 *trace = (uint8 *) (ovl->path.trace);
      if (trace != NULL)
        { int p = ovl->path.bbpos + trace[1];
          fprintf(output,"%*sTrace: %3d/%5d",indent,"",trace[0],p);
          for (i = 3; i < ovl->path.tlen; i += 2)
            { if (i%10 == 0)
                fprintf(output,"\n%*s",indent+6,"");
              p += trace[i];
              fprintf(output," %3d/%5d",trace[i-1],p);
            }
          fprintf(output,"\n");
        }
    }
  else
    { uint16 *trace = (uint16 *) (ovl->path.trace);
      if (trace != NULL)
        { int p = ovl->path.bbpos + trace[1];
          fprintf(output,"%*sTrace: %3d/%5d",indent,"",trace[0],p);
          for (i = 3; i < ovl->path.tlen; i += 2)
            { if (i%10 == 0)
                fprintf(output,"\n%*s",indent+6,"");
              p += trace[i];
              fprintf(output," %3d/%5d",trace[i-1],p);
            }
          fprintf(output,"\n");
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movl 0x24(%rsi), %r8d
leaq 0x10052(%rip), %rsi     # 0x1853c
leaq 0x1099e(%rip), %r12     # 0x18e8f
movl %ecx, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x11a0
testb $0x1, 0x20(%r14)
movl 0x28(%r14), %edx
leaq 0x112a4(%rip), %rax     # 0x197b1
leaq 0x10033(%rip), %rsi     # 0x18547
cmoveq %rax, %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
movl 0xc(%r14), %r10d
movl 0x10(%r14), %r8d
movl 0x18(%r14), %r9d
movl 0x14(%r14), %r11d
movl 0x1c(%r14), %r13d
subq $0x8, %rsp
leaq 0x1000d(%rip), %rsi     # 0x1854e
movq %rbx, %rdi
movl %ebp, 0xc(%rsp)
movl %ebp, %edx
movq %r12, %rcx
xorl %eax, %eax
pushq %r10
pushq %r13
pushq %r11
callq 0x11a0
addq $0x20, %rsp
movq (%r14), %rbp
cmpl $0x1, %r15d
jne 0x861e
testq %rbp, %rbp
je 0x86e6
movzbl 0x1(%rbp), %r15d
addl 0x14(%r14), %r15d
movzbl (%rbp), %r8d
leaq 0xffea(%rip), %rsi      # 0x18573
leaq 0x108ff(%rip), %rcx     # 0x18e8f
movq %rbx, %rdi
movl 0x4(%rsp), %r12d
movl %r12d, %edx
movl %r15d, %r9d
xorl %eax, %eax
callq 0x11a0
addl $0x6, %r12d
movl %r12d, 0x4(%rsp)
pushq $0x3
popq %r12
pushq $0x2
popq %r13
movl %r13d, %eax
xorl %edx, %edx
pushq $0xa
popq %rcx
divl %ecx
movslq 0x8(%r14), %rcx
cmpq %rcx, %r12
jge 0x86cd
imull $-0xa, %eax, %eax
addl %r12d, %eax
jne 0x85f1
movq %rbx, %rdi
leaq 0xffa6(%rip), %rsi      # 0x18585
movl 0x4(%rsp), %edx
leaq 0x108a5(%rip), %rcx     # 0x18e8f
xorl %eax, %eax
callq 0x11a0
movzbl (%rbp,%r12), %eax
addl %eax, %r15d
movzbl -0x1(%rbp,%r12), %edx
movq %rbx, %rdi
leaq 0xff72(%rip), %rsi      # 0x1857c
movl %r15d, %ecx
xorl %eax, %eax
callq 0x11a0
addq $0x2, %r12
addl $0x2, %r13d
jmp 0x85b6
testq %rbp, %rbp
je 0x86e6
movzwl 0x2(%rbp), %r15d
addl 0x14(%r14), %r15d
movzwl (%rbp), %r8d
leaq 0xff37(%rip), %rsi      # 0x18573
leaq 0x1084c(%rip), %rcx     # 0x18e8f
movq %rbx, %rdi
movl 0x4(%rsp), %r12d
movl %r12d, %edx
movl %r15d, %r9d
xorl %eax, %eax
callq 0x11a0
addl $0x6, %r12d
movl %r12d, 0x4(%rsp)
pushq $0x3
popq %r12
pushq $0x2
popq %r13
movl %r13d, %eax
xorl %edx, %edx
pushq $0xa
popq %rcx
divl %ecx
movslq 0x8(%r14), %rcx
cmpq %rcx, %r12
jge 0x86cd
imull $-0xa, %eax, %eax
addl %r12d, %eax
jne 0x86a0
movq %rbx, %rdi
leaq 0xfef7(%rip), %rsi      # 0x18585
movl 0x4(%rsp), %edx
leaq 0x107f6(%rip), %rcx     # 0x18e8f
xorl %eax, %eax
callq 0x11a0
movzwl (%rbp,%r12,2), %eax
addl %eax, %r15d
movzwl -0x2(%rbp,%r12,2), %edx
movq %rbx, %rdi
leaq 0xfec3(%rip), %rsi      # 0x1857c
movl %r15d, %ecx
xorl %eax, %eax
callq 0x11a0
addq $0x2, %r12
addl $0x2, %r13d
jmp 0x8669
pushq $0xa
popq %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1170
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq