// File: /workspace/github_cpp_makefile_star2_O2/isovic[P]cigargen/cigargen.cc
// Function: Verbose(_IO_FILE*, char*, unsigned int, char*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<unsigned char, std::allocator<unsigned char>>, std::allocator<std::vector<unsigned char, std::allocator<unsigned char>>>>&)
void Verbose(FILE *fp, char *query, uint32_t query_length, char *reference, uint32_t reference_length, std::string &cigar, std::vector<std::vector<int32_t> > &dp_matrix, std::vector<std::vector<uint8_t> > &dp_traceback) {
  fprintf (fp, "%3c", ' ');
  for (uint32_t i=0; i<=reference_length; i++) {
    if (i > 0)
      fprintf (fp, "%3c", reference[i-1]);
    else
      fprintf (fp, "%3c", '-');
  }
  fprintf (fp, "\n");

  for (uint32_t i=0; i<=query_length; i++) {
    if (i > 0)
      fprintf (fp, "%3c", query[i-1]);
    else
      fprintf (fp, "%3c", '-');

    for (uint32_t j=0; j<=reference_length; j++) {
      fprintf (fp, "%3d", dp_matrix[i][j]);
    }
    fprintf (fp, "\n");
  }

  fprintf (fp, "\n");
  fprintf (fp, "Traceback:\n");

  fprintf (fp, "%3c", ' ');
  for (uint32_t i=0; i<=reference_length; i++) {
    if (i > 0)
      fprintf (fp, "%3c", reference[i-1]);
    else
      fprintf (fp, "%3c", '-');
  }
  fprintf (fp, "\n");

  for (uint32_t i=0; i<=query_length; i++) {
    if (i > 0)
      fprintf (fp, "%3c", query[i-1]);
    else
      fprintf (fp, "%3c", '-');

    for (uint32_t j=0; j<=reference_length; j++) {
      fprintf (fp, "%3d", dp_traceback[i][j]);
    }
    fprintf (fp, "\n");
  }

  fprintf (fp, "\n");

  fprintf (fp, "CIGAR: %s\n", cigar.c_str());
  fprintf (fp, "\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, -0x50(%rbp)
movl %r8d, %r15d
movq %rcx, -0x40(%rbp)
movl %edx, -0x2c(%rbp)
movq %rsi, -0x48(%rbp)
movq %rdi, %rbx
movq 0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x10(%rbp), %r14
leaq 0x15ab(%rip), %rsi      # 0x40ca
pushq $0x20
popq %rdx
xorl %eax, %eax
callq 0x2180
pushq $0x2d
popq %r12
xorl %r13d, %r13d
cmpl %r15d, %r13d
ja 0x2b5f
movl %r12d, %edx
testl %r13d, %r13d
je 0x2b49
leal -0x1(%r13), %eax
movq -0x40(%rbp), %rcx
movsbl (%rcx,%rax), %edx
movq %rbx, %rdi
leaq 0x1577(%rip), %rsi      # 0x40ca
xorl %eax, %eax
callq 0x2180
incl %r13d
jmp 0x2b30
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x2170
xorl %r13d, %r13d
cmpl -0x2c(%rbp), %r13d
ja 0x2be2
pushq $0x2d
popq %rdx
testl %r13d, %r13d
je 0x2b87
leal -0x1(%r13), %eax
movq -0x48(%rbp), %rcx
movsbl (%rcx,%rax), %edx
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0x1536(%rip), %rsi      # 0x40ca
xorl %eax, %eax
callq 0x2180
movq %r13, -0x38(%rbp)
movl %r13d, %eax
imulq $0x18, %rax, %r13
cmpl %r15d, %r12d
ja 0x2bce
movq (%r14), %rax
movl %r12d, %ecx
movq (%rax,%r13), %rax
movl (%rax,%rcx,4), %edx
movq %rbx, %rdi
leaq 0x150c(%rip), %rsi      # 0x40ce
xorl %eax, %eax
callq 0x2180
incl %r12d
jmp 0x2ba6
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x2170
movq -0x38(%rbp), %r13
incl %r13d
jmp 0x2b6d
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x2170
leaq 0x14de(%rip), %rdi      # 0x40d2
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x21f0
leaq 0x14c1(%rip), %r13      # 0x40ca
pushq $0x20
popq %rdx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x2180
pushq $0x2d
popq %r14
xorl %r12d, %r12d
cmpl %r15d, %r12d
ja 0x2c4c
movl %r14d, %edx
testl %r12d, %r12d
je 0x2c3a
leal -0x1(%r12), %eax
movq -0x40(%rbp), %rcx
movsbl (%rcx,%rax), %edx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x2180
incl %r12d
jmp 0x2c20
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x2170
leaq 0x1470(%rip), %r14      # 0x40ce
xorl %r13d, %r13d
cmpl -0x2c(%rbp), %r13d
ja 0x2cd7
pushq $0x2d
popq %rdx
testl %r13d, %r13d
je 0x2c7b
leal -0x1(%r13), %eax
movq -0x48(%rbp), %rcx
movsbl (%rcx,%rax), %edx
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0x1442(%rip), %rsi      # 0x40ca
xorl %eax, %eax
callq 0x2180
movq %r13, -0x38(%rbp)
movl %r13d, %eax
imulq $0x18, %rax, %r13
cmpl %r15d, %r12d
ja 0x2cc3
movq -0x58(%rbp), %rax
movq (%rax), %rax
movl %r12d, %ecx
movq (%rax,%r13), %rax
movzbl (%rax,%rcx), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2180
incl %r12d
jmp 0x2c9a
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x2170
movq -0x38(%rbp), %r13
incl %r13d
jmp 0x2c61
pushq $0xa
popq %r14
movl %r14d, %edi
movq %rbx, %rsi
callq 0x2170
movq -0x50(%rbp), %rax
movq (%rax), %rdx
leaq 0x1369(%rip), %rsi      # 0x405d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2180
movl %r14d, %edi
movq %rbx, %rsi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2170
nop