// File: /workspace/github_c_makefile_star2_O3/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, %r13d
movl %edx, %r12d
movq %rdi, %rbx
movslq 0x20(%rsi), %r14
movslq 0x24(%rsi), %r15
movq (%rsi), %rbp
movl 0x8(%rsi), %eax
movl %eax, 0x1c(%rsp)
leaq 0xb53a(%rip), %rsi      # 0x1a5b6
leaq 0xbe6c(%rip), %rcx      # 0x1aeef
xorl %eax, %eax
callq 0x11a0
movl 0x10(%rbp), %ecx
testl %ecx, %ecx
movq %r13, 0x10(%rsp)
jle 0xf0ac
leaq 0xb5a5(%rip), %rsi      # 0x1a642
movq %rbx, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x11a0
jmp 0xf0c8
leal 0x5(%r13), %edx
leaq 0xb4ff(%rip), %rsi      # 0x1a5b6
leaq 0xbe31(%rip), %rcx      # 0x1aeef
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
movl 0x18(%rbp), %eax
cmpl %eax, %r14d
jle 0xf0f6
movq 0x10(%rsp), %rcx
leal 0x8(%rcx), %edx
movl %r14d, %r8d
subl %eax, %r8d
leaq 0xb566(%rip), %rsi      # 0x1a64b
leaq 0xbe03(%rip), %rcx      # 0x1aeef
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
movq %r15, 0x20(%rsp)
movl $0xa, %edi
movq %rbx, %rsi
callq 0x1170
leaq 0xb4a7(%rip), %rsi      # 0x1a5b6
leaq 0xbdd9(%rip), %rcx      # 0x1aeef
movq %rbx, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x11a0
cmpl $0x0, 0x10(%rbp)
movl %r12d, 0x18(%rsp)
jle 0xf1d7
leaq 0xb518(%rip), %rdi      # 0x1a651
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1290
movslq 0x10(%rbp), %rdi
callq 0x12c42
movl %eax, %r15d
movq 0x10(%rsp), %rax
movl %eax, %r12d
subl %r15d, %r12d
jle 0xf17d
incl %r12d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r12d
cmpl $0x1, %r12d
ja 0xf167
cmpl $-0x2, %r15d
jl 0xf19d
addl $0x4, %r15d
movl $0x3d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf187
movl $0x2b, %edi
movq %rbx, %rsi
callq 0x1170
cmpl $-0x4, 0x10(%rsp)
movl 0x18(%rsp), %r12d
jl 0xf21d
movq 0x10(%rsp), %rax
leal 0x6(%rax), %r15d
movl $0x2d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf1bf
jmp 0xf21d
movq 0x10(%rsp), %r15
leal 0x4(%r15), %edx
leaq 0xb46d(%rip), %rsi      # 0x1a654
leaq 0xbd01(%rip), %rcx      # 0x1aeef
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
cmpl $-0x4, %r15d
jl 0xf21d
movq 0x10(%rsp), %rax
leal 0x6(%rax), %r15d
movl $0x2d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf207
andl $0x1, 0x1c(%rsp)
cmpl %r14d, 0x18(%rbp)
jge 0xf29d
movl $0x2b, %edi
movq %rbx, %rsi
callq 0x1170
movslq 0x18(%rbp), %rax
subq %rax, %r14
movq %r14, %rdi
callq 0x12c42
cmpl $-0x2, %eax
jle 0xf2d2
movl %eax, %r15d
movl %r12d, %r13d
leal 0x3(%r15), %r12d
movl $0x3d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r12d
cmpl $0x1, %r12d
ja 0xf257
movl $0x3e, %edi
movq %rbx, %rsi
callq 0x1170
testl %r15d, %r15d
movl %r13d, %r12d
jle 0xf2df
incl %r15d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf285
jmp 0xf2df
movl $0x3e, %edi
movq %rbx, %rsi
callq 0x1170
cmpl $-0x2, 0x10(%rsp)
jl 0xf2df
movq 0x10(%rsp), %rax
leal 0x4(%rax), %r15d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf2ba
jmp 0xf2df
movl $0x3e, %edi
movq %rbx, %rsi
callq 0x1170
movl 0x18(%rbp), %ecx
subl 0x10(%rbp), %ecx
movl 0xc(%rbp), %edx
movl 0x1c(%rbp), %r8d
subl 0x14(%rbp), %r8d
cvtsi2sd %edx, %xmm0
mulsd 0xb13c(%rip), %xmm0     # 0x1a438
leal (%r8,%rcx), %eax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
leaq 0xb34b(%rip), %rsi      # 0x1a65a
movq %rbx, %rdi
movb $0x1, %al
callq 0x11a0
movl 0x1c(%rsp), %r14d
testl %r14d, %r14d
movl $0x2d, %eax
movl $0x3c, %r15d
cmovel %eax, %r15d
sete 0xf(%rsp)
movl $0x3e, %r13d
cmovnel %eax, %r13d
leaq 0xb270(%rip), %rsi      # 0x1a5b6
leaq 0xbba2(%rip), %rcx      # 0x1aeef
movq %rbx, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x11a0
movl 0x14(%rbp), %r12d
leaq 0xb320(%rip), %rdi      # 0x1a685
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1290
testl %r12d, %r12d
jle 0xf41a
xorl $0x3d, %r14d
movslq 0x14(%rbp), %rdi
callq 0x12c42
movl %eax, %r15d
movq 0x10(%rsp), %rax
movl %eax, %r12d
subl %r15d, %r12d
jle 0xf3b6
incl %r12d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r12d
cmpl $0x1, %r12d
ja 0xf3a0
movl %r14d, %edi
movq %rbx, %rsi
callq 0x1170
cmpl $-0x1, %r15d
jl 0xf3e1
addl $0x3, %r15d
movl $0x3d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf3cb
movl $0x2b, %edi
movq %rbx, %rsi
callq 0x1170
movq 0x10(%rsp), %r14
cmpl $-0x4, %r14d
movl 0x18(%rsp), %r12d
jl 0xf46f
leal 0x6(%r14), %r15d
movl $0x2d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf402
jmp 0xf46f
movq 0x10(%rsp), %r14
cmpl $-0x2, %r14d
jl 0xf43f
leal 0x4(%r14), %r12d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x1170
decl %r12d
cmpl $0x1, %r12d
ja 0xf429
movl %r15d, %edi
movq %rbx, %rsi
callq 0x1170
cmpl $-0x4, %r14d
movl 0x18(%rsp), %r12d
jl 0xf46f
leal 0x6(%r14), %r15d
movl $0x2d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf459
movq 0x20(%rsp), %r15
cmpl %r15d, 0x1c(%rbp)
jge 0xf4cb
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 0x12c42
cmpl $-0x1, %eax
jl 0xf4c6
movl %eax, %r15d
addl $0x3, %r15d
movl $0x3d, %edi
movq %rbx, %rsi
callq 0x1170
decl %r15d
cmpl $0x1, %r15d
ja 0xf4b0
movq 0x20(%rsp), %r15
leaq 0xb1b6(%rip), %rsi      # 0x1a688
movq %rbx, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x11a0
leaq 0xb0d0(%rip), %rsi      # 0x1a5b6
leaq 0xba02(%rip), %rcx      # 0x1aeef
movq %rbx, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x11a0
movl 0x14(%rbp), %ecx
testl %ecx, %ecx
jle 0xf517
leaq 0xb13a(%rip), %rsi      # 0x1a642
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x11a0
jmp 0xf533
leal 0x5(%r14), %edx
leaq 0xb094(%rip), %rsi      # 0x1a5b6
leaq 0xb9c6(%rip), %rcx      # 0x1aeef
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11a0
movl 0x1c(%rbp), %eax
cmpl %eax, %r15d
jle 0xf560
addl $0x8, %r14d
subl %eax, %r15d
leaq 0xb102(%rip), %rsi      # 0x1a64b
leaq 0xb99f(%rip), %rcx      # 0x1aeef
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