// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r13
movl 0x24(%rsi), %r8d
leaq 0x10aea(%rip), %rsi     # 0x1a53c
leaq 0x11436(%rip), %r12     # 0x1ae8f
movl %ecx, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x11a0
testb $0x1, 0x20(%r15)
movl 0x28(%r15), %edx
leaq 0x11d3c(%rip), %rax     # 0x1b7b1
leaq 0x10acb(%rip), %rsi     # 0x1a547
cmoveq %rax, %rsi
movq %r13, %rdi
xorl %eax, %eax
callq 0x11a0
movl 0xc(%r15), %r10d
movl 0x10(%r15), %r8d
movl 0x18(%r15), %r9d
movl 0x14(%r15), %r11d
movl 0x1c(%r15), %ebx
subq $0x8, %rsp
leaq 0x10aa5(%rip), %rsi     # 0x1a54e
movq %r13, 0x18(%rsp)
movq %r13, %rdi
movl %r14d, 0x14(%rsp)
movl %r14d, %edx
movq %r12, %rcx
xorl %eax, %eax
pushq %r10
pushq %rbx
pushq %r11
callq 0x11a0
addq $0x20, %rsp
movq (%r15), %r13
cmpl $0x1, %ebp
jne 0x9ba2
testq %r13, %r13
je 0x9c84
movzbl 0x1(%r13), %ebp
addl 0x14(%r15), %ebp
movzbl (%r13), %r8d
leaq 0x10a7d(%rip), %rsi     # 0x1a573
leaq 0x11392(%rip), %rcx     # 0x1ae8f
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %edx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x11a0
cmpl $0x4, 0x8(%r15)
jl 0x9c67
addl $0x6, 0xc(%rsp)
movl $0xfffffffd, %ebx       # imm = 0xFFFFFFFD
movl $0x3, %r12d
xorl %r14d, %r14d
movl %r12d, %eax
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
imulq %rcx, %rax
shrq $0x23, %rax
leal (%rax,%rax,4), %eax
addl %eax, %eax
addl %ebx, %eax
jne 0x9b65
movq 0x10(%rsp), %rdi
leaq 0x10a32(%rip), %rsi     # 0x1a585
movl 0xc(%rsp), %edx
leaq 0x11331(%rip), %rcx     # 0x1ae8f
xorl %eax, %eax
callq 0x11a0
movzbl 0x3(%r13,%r14), %eax
addl %eax, %ebp
movzbl 0x2(%r13,%r14), %edx
movq 0x10(%rsp), %rdi
leaq 0x109fd(%rip), %rsi     # 0x1a57c
movl %ebp, %ecx
xorl %eax, %eax
callq 0x11a0
addl $-0x2, %ebx
addl $0x2, %r12d
addq $0x2, %r14
leal 0x3(%r14), %eax
cmpl %eax, 0x8(%r15)
jg 0x9b2e
jmp 0x9c67
testq %r13, %r13
je 0x9c84
movzwl 0x2(%r13), %ebp
addl 0x14(%r15), %ebp
movzwl (%r13), %r8d
leaq 0x109b3(%rip), %rsi     # 0x1a573
leaq 0x112c8(%rip), %rcx     # 0x1ae8f
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %edx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x11a0
cmpl $0x4, 0x8(%r15)
jl 0x9c67
addl $0x6, 0xc(%rsp)
movl $0xfffffffd, %ebx       # imm = 0xFFFFFFFD
movl $0x3, %r12d
xorl %r14d, %r14d
movl %r12d, %eax
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
imulq %rcx, %rax
shrq $0x23, %rax
leal (%rax,%rax,4), %eax
addl %eax, %eax
addl %ebx, %eax
jne 0x9c2f
movq 0x10(%rsp), %rdi
leaq 0x10968(%rip), %rsi     # 0x1a585
movl 0xc(%rsp), %edx
leaq 0x11267(%rip), %rcx     # 0x1ae8f
xorl %eax, %eax
callq 0x11a0
movzwl 0x6(%r13,%r14,2), %eax
addl %eax, %ebp
movzwl 0x4(%r13,%r14,2), %edx
movq 0x10(%rsp), %rdi
leaq 0x10933(%rip), %rsi     # 0x1a57c
movl %ebp, %ecx
xorl %eax, %eax
callq 0x11a0
addl $-0x2, %ebx
addl $0x2, %r12d
addq $0x2, %r14
leal 0x3(%r14), %eax
cmpl %eax, 0x8(%r15)
jg 0x9bf8
movl $0xa, %edi
movq 0x10(%rsp), %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1170
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq