// File: /workspace/github_c_makefile_star2_O3/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 0x10b97(%rip), %rsi     # 0x1a56c
leaq 0x11513(%rip), %r12     # 0x1aeef
movl %ecx, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x11a0
testb $0x1, 0x20(%r15)
movl 0x28(%r15), %edx
leaq 0x11e29(%rip), %rax     # 0x1b821
leaq 0x10b78(%rip), %rsi     # 0x1a577
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 0x10b52(%rip), %rsi     # 0x1a57e
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 0x9b25
testq %r13, %r13
je 0x9c07
movzbl 0x1(%r13), %ebp
addl 0x14(%r15), %ebp
movzbl (%r13), %r8d
leaq 0x10b2a(%rip), %rsi     # 0x1a5a3
leaq 0x1146f(%rip), %rcx     # 0x1aeef
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %edx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x11a0
cmpl $0x4, 0x8(%r15)
jl 0x9bea
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 0x9ae8
movq 0x10(%rsp), %rdi
leaq 0x10adf(%rip), %rsi     # 0x1a5b5
movl 0xc(%rsp), %edx
leaq 0x1140e(%rip), %rcx     # 0x1aeef
xorl %eax, %eax
callq 0x11a0
movzbl 0x3(%r13,%r14), %eax
addl %eax, %ebp
movzbl 0x2(%r13,%r14), %edx
movq 0x10(%rsp), %rdi
leaq 0x10aaa(%rip), %rsi     # 0x1a5ac
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 0x9ab1
jmp 0x9bea
testq %r13, %r13
je 0x9c07
movzwl 0x2(%r13), %ebp
addl 0x14(%r15), %ebp
movzwl (%r13), %r8d
leaq 0x10a60(%rip), %rsi     # 0x1a5a3
leaq 0x113a5(%rip), %rcx     # 0x1aeef
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %edx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x11a0
cmpl $0x4, 0x8(%r15)
jl 0x9bea
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 0x9bb2
movq 0x10(%rsp), %rdi
leaq 0x10a15(%rip), %rsi     # 0x1a5b5
movl 0xc(%rsp), %edx
leaq 0x11344(%rip), %rcx     # 0x1aeef
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 0x109e0(%rip), %rsi     # 0x1a5ac
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 0x9b7b
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