// File: /workspace/github_c_makefile_star2_O1/thegenemyers[P]DASCRUBBER/align.c
// Function: Alignment_Cartoon
void Alignment_Cartoon(FILE *file, Alignment *align, int indent, int coord)
{ int   alen = align->alen;
  int   blen = align->blen;
  Path *path = align->path;
  int   comp = COMP(align->flags);
  int   w;

  fprintf(file,"%*s",indent,"");
  if (path->abpos > 0)
    fprintf(file,"    %*d ",coord,path->abpos);
  else
    fprintf(file,"%*s",coord+5,"");
  if (path->aepos < alen)
    fprintf(file,"%*s%d",coord+8,"",alen-path->aepos);
  fprintf(file,"\n");

  fprintf(file,"%*s",indent,"");
  if (path->abpos > 0)
    { fprintf(file,"A ");
      w = Number_Digits((int64) path->abpos);
      repchar(file,' ',coord-w);
      repchar(file,'=',w+3);
      fputc('+',file);
      repchar(file,'-',coord+5);
    }
  else
    { fprintf(file,"A %*s",coord+4,"");
      repchar(file,'-',coord+5);
    }

  if (path->aepos < alen)
    { fputc('+',file);
      w = Number_Digits((int64) (alen-path->aepos));
      repchar(file,'=',w+2);
      fputc('>',file);
      repchar(file,' ',w);
    }
  else
    { fputc('>',file);
      repchar(file,' ',coord+3);
    }

  { int asub, bsub;

    asub = path->aepos - path->abpos;
    bsub = path->bepos - path->bbpos;
    fprintf(file,"   dif/(len1+len2) = %d/(%d+%d) = %5.2f%%\n",
                 path->diffs,asub,bsub,(200.*path->diffs)/(asub+bsub));
  }

  { int   sym1e, sym2e;
    int   sym1p, sym2p;

    if (comp > 0)
      { sym1p = '<'; sym2p = '-'; sym1e = '<'; sym2e = '='; }
    else
      { sym1p = '-'; sym2p = '>'; sym1e = '='; sym2e = '>'; }

    fprintf(file,"%*s",indent,"");
    if (path->bbpos > 0)
      { fprintf(file,"B ");
        w = Number_Digits((int64) path->bbpos);
        repchar(file,' ',coord-w);
        fputc(sym1e,file);
        repchar(file,'=',w+2);
        fputc('+',file);
        repchar(file,'-',coord+5);
      }
    else
      { fprintf(file,"B ");
        repchar(file,' ',coord+3);
        fputc(sym1p,file);
        repchar(file,'-',coord+5);
      }
    if (path->bepos < blen)
      { fprintf(file,"+");
        w = Number_Digits((int64) (blen-path->bepos));
        repchar(file,'=',w+2);
        fprintf(file,"%c\n",sym2e);
      }
    else
      fprintf(file,"%c\n",sym2p);
  }

  fprintf(file,"%*s",indent,"");
  if (path->bbpos > 0)
    fprintf(file,"    %*d ",coord,path->bbpos);
  else
    fprintf(file,"%*s",coord+5,"");
  if (path->bepos < blen)
    fprintf(file,"%*s%d",coord+8,"",blen-path->bepos);
  fprintf(file,"\n");

  fflush(file);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r12d
movq %rdi, %rbx
movslq 0x20(%rsi), %r13
movslq 0x24(%rsi), %r15
movq (%rsi), %rbp
movl 0x8(%rsi), %r14d
leaq 0xb3d9(%rip), %rsi      # 0x1a586
leaq 0xbcdb(%rip), %rcx      # 0x1ae8f
movl %edx, 0x1c(%rsp)
xorl %eax, %eax
callq 0x11a0
movl 0x10(%rbp), %ecx
testl %ecx, %ecx
jle 0xf1dc
leaq 0xb445(%rip), %rsi      # 0x1a612
movq %rbx, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x11a0
jmp 0xf1f9
leal 0x5(%r12), %edx
leaq 0xb39e(%rip), %rsi      # 0x1a586
leaq 0xbca0(%rip), %rcx      # 0x1ae8f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
movl 0x18(%rbp), %eax
cmpl %eax, %r13d
jle 0xf224
leal 0x8(%r12), %edx
movl %r13d, %r8d
subl %eax, %r8d
leaq 0xb408(%rip), %rsi      # 0x1a61b
leaq 0xbc75(%rip), %rcx      # 0x1ae8f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
movq %r15, 0x20(%rsp)
movl $0xa, %edi
movq %rbx, %rsi
callq 0x1170
leaq 0xb349(%rip), %rsi      # 0x1a586
leaq 0xbc4b(%rip), %rcx      # 0x1ae8f
movq %rbx, %rdi
movl 0x1c(%rsp), %edx
xorl %eax, %eax
callq 0x11a0
cmpl $0x0, 0x10(%rbp)
movq %r12, 0x10(%rsp)
jle 0xf2f9
leaq 0xb3b9(%rip), %rdi      # 0x1a621
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1290
movslq 0x10(%rbp), %rdi
callq 0x12c8f
movl %eax, %r15d
subl %eax, %r12d
jle 0xf2a4
incl %r12d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r12d
cmpl $0x1, %r12d
jg 0xf28e
cmpl $-0x2, %r15d
jl 0xf2c4
addl $0x4, %r15d
movl $0x3d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf2ae
movl $0x2b, %edi
movq %rbx, %rsi
callq 0x1170
movq 0x10(%rsp), %r12
cmpl $-0x4, %r12d
jl 0xf337
leal 0x6(%r12), %r15d
movl $0x2d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf2e1
jmp 0xf337
leal 0x4(%r12), %edx
leaq 0xb31f(%rip), %rsi      # 0x1a624
leaq 0xbb83(%rip), %rcx      # 0x1ae8f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
cmpl $-0x4, %r12d
jl 0xf337
leal 0x6(%r12), %r15d
movl $0x2d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf321
andl $0x1, %r14d
cmpl %r13d, 0x18(%rbp)
jge 0xf3ac
movl $0x2b, %edi
movq %rbx, %rsi
callq 0x1170
movslq 0x18(%rbp), %rax
subq %rax, %r13
movq %r13, %rdi
callq 0x12c8f
movl %eax, %r15d
cmpl $-0x1, %eax
jl 0xf37f
leal 0x3(%r15), %r12d
movl $0x3d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r12d
cmpl $0x1, %r12d
jg 0xf369
movl $0x3e, %edi
movq %rbx, %rsi
callq 0x1170
testl %r15d, %r15d
jle 0xf3de
incl %r15d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf394
jmp 0xf3de
movl $0x3e, %edi
movq %rbx, %rsi
callq 0x1170
cmpl $-0x2, %r12d
jl 0xf3de
movq 0x10(%rsp), %rax
leal 0x4(%rax), %r15d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf3c8
movl 0x18(%rbp), %ecx
subl 0x10(%rbp), %ecx
movl 0xc(%rbp), %edx
movl 0x1c(%rbp), %r8d
subl 0x14(%rbp), %r8d
cvtsi2sd %edx, %xmm0
mulsd 0xb03d(%rip), %xmm0     # 0x1a438
leal (%r8,%rcx), %eax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
leaq 0xb21c(%rip), %rsi      # 0x1a62a
movq %rbx, %rdi
movb $0x1, %al
callq 0x11a0
testl %r14d, %r14d
movl $0x2d, %eax
movl $0x3c, %r15d
cmovel %eax, %r15d
sete 0xf(%rsp)
movl $0x3e, %r13d
cmovnel %eax, %r13d
leaq 0xb146(%rip), %rsi      # 0x1a586
leaq 0xba48(%rip), %rcx      # 0x1ae8f
movq %rbx, %rdi
movl 0x1c(%rsp), %edx
xorl %eax, %eax
callq 0x11a0
movl 0x14(%rbp), %r12d
leaq 0xb1f5(%rip), %rdi      # 0x1a655
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1290
testl %r12d, %r12d
jle 0xf510
xorl $0x3d, %r14d
movslq 0x14(%rbp), %rdi
callq 0x12c8f
movl %eax, %r15d
movq 0x10(%rsp), %rax
movl %eax, %r12d
subl %r15d, %r12d
jle 0xf4b1
incl %r12d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r12d
cmpl $0x1, %r12d
jg 0xf49b
movl %r14d, %edi
movq %rbx, %rsi
callq 0x1170
cmpl $-0x1, %r15d
jl 0xf4dc
addl $0x3, %r15d
movl $0x3d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf4c6
movl $0x2b, %edi
movq %rbx, %rsi
callq 0x1170
movq 0x10(%rsp), %r14
cmpl $-0x4, %r14d
jl 0xf566
leal 0x6(%r14), %r15d
movl $0x2d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf4f8
jmp 0xf566
cmpl $-0x2, 0x10(%rsp)
jl 0xf536
movq 0x10(%rsp), %rax
leal 0x4(%rax), %r12d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r12d
cmpl $0x1, %r12d
jg 0xf520
movl %r15d, %edi
movq %rbx, %rsi
callq 0x1170
movq 0x10(%rsp), %r14
cmpl $-0x4, %r14d
jl 0xf566
leal 0x6(%r14), %r15d
movl $0x2d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf550
movq 0x20(%rsp), %r15
cmpl %r15d, 0x1c(%rbp)
jge 0xf5c2
xorl %r13d, %r13d
movb 0xf(%rsp), %al
movb %al, %r13b
addl $0x3d, %r13d
movl $0x2b, %edi
movq %rbx, %rsi
callq 0x1170
movslq 0x1c(%rbp), %rax
subq %rax, %r15
movq %r15, %rdi
callq 0x12c8f
cmpl $-0x1, %eax
jl 0xf5bd
movl %eax, %r15d
addl $0x3, %r15d
movl $0x3d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
jg 0xf5a7
movq 0x20(%rsp), %r15
leaq 0xb08f(%rip), %rsi      # 0x1a658
movq %rbx, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x11a0
leaq 0xafa9(%rip), %rsi      # 0x1a586
leaq 0xb8ab(%rip), %rcx      # 0x1ae8f
movq %rbx, %rdi
movl 0x1c(%rsp), %edx
xorl %eax, %eax
callq 0x11a0
movl 0x14(%rbp), %ecx
testl %ecx, %ecx
jle 0xf60f
leaq 0xb012(%rip), %rsi      # 0x1a612
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x11a0
jmp 0xf62b
leal 0x5(%r14), %edx
leaq 0xaf6c(%rip), %rsi      # 0x1a586
leaq 0xb86e(%rip), %rcx      # 0x1ae8f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
movl 0x1c(%rbp), %eax
cmpl %eax, %r15d
jle 0xf658
addl $0x8, %r14d
subl %eax, %r15d
leaq 0xafda(%rip), %rsi      # 0x1a61b
leaq 0xb847(%rip), %rcx      # 0x1ae8f
movq %rbx, %rdi
movl %r14d, %edx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x11a0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x1170
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1200