// File: ncbi[P]amr/amr_report.cpp
// Function: (anonymous namespace)::Batch::report(Common_sp::TsvOut&, bool) const
void report (TsvOut &td,
	             bool mutationAll) const
	// Input: target2goodBlastAls
	{
	  ASSERT (td. empty ());
	  	  
		const Chronometer_OnePass cop ("report", cerr, false, Chronometer::enabled);  

    // PD-283, PD-780
  	// Cf. BlastAlignment::report()
    if (! input_name. empty ())
      td << "Name";
    // Target
    td << prot_colName;                          //  1  // targetName 
    if (cdsExist)  
      // Contig (target)
      td << contig_colName                       //  2
         << start_colName                        //  3
         << stop_colName                         //  4
         << strand_colName;                      //  5
    // Reference
    td << genesymbol_colName                     //  6 or 2  
       << elemName_colName                       //  7 or 3
       << scope_colName                          //  8 or 4       
       << type_colName                           //  9 or 5
       << subtype_colName                        // 10 or 6
       << class_colName                          // 11 or 7
       << subclass_colName                       // 12 or 8
       << method_colName                         // 13 or 9
       // target
       << targetLen_colName                      // 14 or 10       
       //
       << refLen_colName                         // 15 or 11  // refLen
       << refCov_colName                         // 16 or 12  // queryCoverage
       << refIdent_colName                       // 17 or 13 
       << alignLen_colName                       // 18 or 14  // targetSeq.size()
       << closestRefAccession_colName            // 19 or 15  // refAccession
       << closestRefName_colName                 // 20 or 16
       //
       << hmmAccession_colName                   // 21 or 17
       << hmmDescr_colName                       // 22 or 18
       ;
    if (cdsExist)
    	if (useCrossOrigin)
      	 td << "Cross-origin length";
    if (print_node)
      td << hierarchyNode_colName; 
    td. newLn ();

 	  for (const auto& it : target2goodBlastAls)
    	for (const BlastAlignment* blastAl : it. second)
    	{
    	  ASSERT (blastAl);
     	  if (blastAl->isMutationProt ())
    	  	if (blastAl->seqChanges. empty ())
    	  	  ;
    	  	else
    	  	{
        	  blastAl->report (td, it. first, mutationAll);
         	  blastAl->qc ();
        	}
     	  else if (   (   blastAl->fusion2reportable () >= reportable_min
     	               || blastAl->alleleReportable ()
     	              )
     	           && ! suppress_prots. containsFast (blastAl->refAccession)
     	           && ! blastAl->fusionRedundant
     	         //&& ! blastAl->stxtyper  // PD-4926
     	          )
     	  {
      	  blastAl->report (td, it. first, mutationAll);
       	  blastAl->qc ();
      	}
      }
	}

// Assembly:
subq $0x3b8, %rsp            # imm = 0x3B8
movb %dl, %al
movq %rdi, 0x3b0(%rsp)
movq %rsi, 0x3a8(%rsp)
andb $0x1, %al
movb %al, 0x3a7(%rsp)
movq 0x3b0(%rsp), %rax
movq %rax, 0xc8(%rsp)
callq 0xc090
movl $0x0, (%rax)
movq 0x3a8(%rsp), %rdi
callq 0x63c70
testb $0x1, %al
jne 0x30685
callq 0xc870
cmpl $0x0, %eax
jne 0x3067b
leaq 0x2ff(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
callq 0xcca0
movq 0xc0(%rsp), %rdx
leaq 0xcd4e3(%rip), %rsi     # 0xfd907
leaq 0x300(%rsp), %rdi
callq 0x50b50
jmp 0x30433
leaq 0x2c8(%rsp), %rdi
movl $0x7f8, %esi            # imm = 0x7F8
callq 0x52760
jmp 0x30447
leaq 0x320(%rsp), %rdi
leaq 0x300(%rsp), %rsi
leaq 0x2c8(%rsp), %rdx
callq 0x52670
jmp 0x30466
leaq 0xcd4b2(%rip), %rdx     # 0xfd91f
leaq 0x340(%rsp), %rdi
leaq 0x320(%rsp), %rsi
callq 0x50db0
jmp 0x30484
leaq 0x287(%rsp), %rdi
movq %rdi, 0xb8(%rsp)
callq 0xcca0
movq 0xb8(%rsp), %rdx
leaq 0xced5b(%rip), %rsi     # 0xff203
leaq 0x288(%rsp), %rdi
callq 0x50b50
jmp 0x304b7
leaq 0xcd960(%rip), %rdx     # 0xfde1e
leaq 0x2a8(%rsp), %rdi
leaq 0x288(%rsp), %rsi
callq 0x50db0
jmp 0x304d5
leaq 0x360(%rsp), %rdi
leaq 0x340(%rsp), %rsi
leaq 0x2a8(%rsp), %rdx
callq 0x52670
jmp 0x304f4
leaq 0xd37e7(%rip), %rdx     # 0x103ce2
leaq 0x380(%rsp), %rdi
leaq 0x360(%rsp), %rsi
callq 0x50db0
jmp 0x30512
leaq 0x380(%rsp), %rdi
callq 0x69f20
jmp 0x30521
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30669
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x3065c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x3064f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30642
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30628
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x3061b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x3060e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30601
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
leaq 0x380(%rsp), %rdi
callq 0xce58
leaq 0x360(%rsp), %rdi
callq 0xce58
leaq 0x2a8(%rsp), %rdi
callq 0xce58
leaq 0x288(%rsp), %rdi
callq 0xce58
leaq 0x287(%rsp), %rdi
callq 0xc750
leaq 0x340(%rsp), %rdi
callq 0xce58
leaq 0x320(%rsp), %rdi
callq 0xce58
leaq 0x2c8(%rsp), %rdi
callq 0xce58
leaq 0x300(%rsp), %rdi
callq 0xce58
leaq 0x2ff(%rsp), %rdi
callq 0xc750
jmp 0x30f05
movl $0x1, %edi
callq 0xc880
leaq 0x227(%rsp), %rdi
movq %rdi, 0xb0(%rsp)
callq 0xcca0
movq 0xb0(%rsp), %rdx
leaq 0xcd0ea(%rip), %rsi     # 0xfd793
leaq 0x228(%rsp), %rdi
callq 0x50b50
jmp 0x306b8
leaq 0x111963(%rip), %rax    # 0x142022
movzbl (%rax), %r8d
andl $0x1, %r8d
movq 0x11091a(%rip), %rdx    # 0x140fe8
leaq 0x248(%rsp), %rdi
leaq 0x228(%rsp), %rsi
xorl %ecx, %ecx
callq 0x6aba0
jmp 0x306e7
leaq 0x228(%rsp), %rdi
callq 0xce58
leaq 0x227(%rsp), %rdi
callq 0xc750
leaq 0x1114f0(%rip), %rdi    # 0x141bf8
callq 0xcbb0
testb $0x1, %al
jne 0x3078b
movq 0x3a8(%rsp), %rdi
leaq 0xd05b3(%rip), %rsi     # 0x100cd3
callq 0x63cc0
jmp 0x30727
jmp 0x3078b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30760
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
leaq 0x228(%rsp), %rdi
callq 0xce58
leaq 0x227(%rsp), %rdi
callq 0xc750
jmp 0x30f05
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30ef8
movq 0x3a8(%rsp), %rdi
leaq 0x10ebb6(%rip), %rsi    # 0x13f350
callq 0x63e60
jmp 0x307a1
testb $0x1, 0x111505(%rip)    # 0x141cad
je 0x3081c
movq 0x3a8(%rsp), %rdi
leaq 0x10eb9f(%rip), %rsi    # 0x13f358
callq 0x63e60
movq %rax, 0xa8(%rsp)
jmp 0x307c8
movq 0xa8(%rsp), %rdi
leaq 0x10eb89(%rip), %rsi    # 0x13f360
callq 0x63e60
movq %rax, 0xa0(%rsp)
jmp 0x307e6
movq 0xa0(%rsp), %rdi
leaq 0x10eb73(%rip), %rsi    # 0x13f368
callq 0x63e60
movq %rax, 0x98(%rsp)
jmp 0x30804
movq 0x98(%rsp), %rdi
leaq 0x10eb5d(%rip), %rsi    # 0x13f370
callq 0x63e60
jmp 0x3081a
jmp 0x3081c
movq 0x3a8(%rsp), %rdi
leaq 0x10eb4d(%rip), %rsi    # 0x13f378
callq 0x63e60
movq %rax, 0x90(%rsp)
jmp 0x3083a
movq 0x90(%rsp), %rdi
leaq 0x10eb37(%rip), %rsi    # 0x13f380
callq 0x63e60
movq %rax, 0x88(%rsp)
jmp 0x30858
movq 0x88(%rsp), %rdi
leaq 0x10eb21(%rip), %rsi    # 0x13f388
callq 0x63e60
movq %rax, 0x80(%rsp)
jmp 0x30876
movq 0x80(%rsp), %rdi
leaq 0x10eb0b(%rip), %rsi    # 0x13f390
callq 0x63e60
movq %rax, 0x78(%rsp)
jmp 0x30891
movq 0x78(%rsp), %rdi
leaq 0x10eafb(%rip), %rsi    # 0x13f398
callq 0x63e60
movq %rax, 0x70(%rsp)
jmp 0x308a9
movq 0x70(%rsp), %rdi
leaq 0x10eaeb(%rip), %rsi    # 0x13f3a0
callq 0x63e60
movq %rax, 0x68(%rsp)
jmp 0x308c1
movq 0x68(%rsp), %rdi
leaq 0x10eadb(%rip), %rsi    # 0x13f3a8
callq 0x63e60
movq %rax, 0x60(%rsp)
jmp 0x308d9
movq 0x60(%rsp), %rdi
leaq 0x10eacb(%rip), %rsi    # 0x13f3b0
callq 0x63e60
movq %rax, 0x58(%rsp)
jmp 0x308f1
movq 0x58(%rsp), %rdi
leaq 0x10eabb(%rip), %rsi    # 0x13f3b8
callq 0x63e60
movq %rax, 0x50(%rsp)
jmp 0x30909
movq 0x50(%rsp), %rdi
leaq 0x10eaab(%rip), %rsi    # 0x13f3c0
callq 0x63e60
movq %rax, 0x48(%rsp)
jmp 0x30921
movq 0x48(%rsp), %rdi
leaq 0x10ea9b(%rip), %rsi    # 0x13f3c8
callq 0x63e60
movq %rax, 0x40(%rsp)
jmp 0x30939
movq 0x40(%rsp), %rdi
leaq 0x10ea8b(%rip), %rsi    # 0x13f3d0
callq 0x63e60
movq %rax, 0x38(%rsp)
jmp 0x30951
movq 0x38(%rsp), %rdi
leaq 0x10ea7b(%rip), %rsi    # 0x13f3d8
callq 0x63e60
movq %rax, 0x30(%rsp)
jmp 0x30969
movq 0x30(%rsp), %rdi
leaq 0x10ea6b(%rip), %rsi    # 0x13f3e0
callq 0x63e60
movq %rax, 0x28(%rsp)
jmp 0x30981
movq 0x28(%rsp), %rdi
leaq 0x10ea5b(%rip), %rsi    # 0x13f3e8
callq 0x63e60
movq %rax, 0x20(%rsp)
jmp 0x30999
movq 0x20(%rsp), %rdi
leaq 0x10ea4b(%rip), %rsi    # 0x13f3f0
callq 0x63e60
movq %rax, 0x18(%rsp)
jmp 0x309b1
movq 0x18(%rsp), %rdi
leaq 0x10ea3b(%rip), %rsi    # 0x13f3f8
callq 0x63e60
jmp 0x309c4
testb $0x1, 0x1112e2(%rip)    # 0x141cad
je 0x309cf
jmp 0x309cf
testb $0x1, 0x1112d3(%rip)    # 0x141ca9
je 0x309f0
movq 0x3a8(%rsp), %rdi
leaq 0x10ea19(%rip), %rsi    # 0x13f400
callq 0x63e60
jmp 0x309ee
jmp 0x309f0
movq 0x3a8(%rsp), %rdi
callq 0x64000
jmp 0x309ff
movq 0xc8(%rsp), %rax
addq $0x120, %rax            # imm = 0x120
movq %rax, 0x218(%rsp)
movq 0x218(%rsp), %rdi
callq 0x44af0
movq %rax, 0x210(%rsp)
movq 0x218(%rsp), %rdi
callq 0x3b3f0
movq %rax, 0x208(%rsp)
leaq 0x210(%rsp), %rdi
leaq 0x208(%rsp), %rsi
callq 0x44b20
testb $0x1, %al
jne 0x30a5d
jmp 0x30ee3
leaq 0x210(%rsp), %rdi
callq 0x44b40
movq %rax, 0x200(%rsp)
movq 0x200(%rsp), %rax
addq $0x20, %rax
movq %rax, 0x1f8(%rsp)
movq 0x1f8(%rsp), %rdi
callq 0x28570
movq %rax, 0x1f0(%rsp)
movq 0x1f8(%rsp), %rdi
callq 0x285a0
movq %rax, 0x1e8(%rsp)
leaq 0x1f0(%rsp), %rdi
leaq 0x1e8(%rsp), %rsi
callq 0x285d0
testb $0x1, %al
jne 0x30ace
jmp 0x30ecf
leaq 0x1f0(%rsp), %rdi
callq 0x28610
movq (%rax), %rax
movq %rax, 0x1e0(%rsp)
callq 0xc090
movl $0x0, (%rax)
cmpq $0x0, 0x1e0(%rsp)
jne 0x30d87
callq 0xc870
cmpl $0x0, %eax
jne 0x30d7d
leaq 0x13f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xcca0
movq 0x10(%rsp), %rdx
leaq 0xccddb(%rip), %rsi     # 0xfd907
leaq 0x140(%rsp), %rdi
callq 0x50b50
jmp 0x30b3b
leaq 0x118(%rsp), %rdi
movl $0x828, %esi            # imm = 0x828
callq 0x52760
jmp 0x30b4f
leaq 0x160(%rsp), %rdi
leaq 0x140(%rsp), %rsi
leaq 0x118(%rsp), %rdx
callq 0x52670
jmp 0x30b6e
leaq 0xccdaa(%rip), %rdx     # 0xfd91f
leaq 0x180(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x50db0
jmp 0x30b8c
leaq 0xd7(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xcca0
movq 0x8(%rsp), %rdx
leaq 0xce659(%rip), %rsi     # 0xff203
leaq 0xd8(%rsp), %rdi
callq 0x50b50
jmp 0x30bb9
leaq 0xcd25e(%rip), %rdx     # 0xfde1e
leaq 0xf8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x50db0
jmp 0x30bd7
leaq 0x1a0(%rsp), %rdi
leaq 0x180(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x52670
jmp 0x30bf6
leaq 0xcde25(%rip), %rdx     # 0xfea22
leaq 0x1c0(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x50db0
jmp 0x30c14
leaq 0x1c0(%rsp), %rdi
callq 0x69f20
jmp 0x30c23
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30d6b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30d5e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30d51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30d44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30d2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30d1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30d10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
jmp 0x30d03
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2f0(%rsp)
movl %eax, 0x2ec(%rsp)
leaq 0x1c0(%rsp), %rdi
callq 0xce58
leaq 0x1a0(%rsp), %rdi
callq 0xce58
leaq 0xf8(%rsp), %rdi
callq 0xce58
leaq 0xd8(%rsp), %rdi
callq 0xce58
leaq 0xd7(%rsp), %rdi
callq 0xc750
leaq 0x180(%rsp), %rdi
callq 0xce58
leaq 0x160(%rsp), %rdi
callq 0xce58
leaq 0x118(%rsp), %rdi
callq 0xce58
leaq 0x140(%rsp), %rdi
callq 0xce58
leaq 0x13f(%rsp), %rdi
callq 0xc750
jmp 0x30ef8
movl $0x1, %edi
callq 0xc880
movq 0x1e0(%rsp), %rdi
callq 0x37da0
testb $0x1, %al
jne 0x30d9a
jmp 0x30df6
movq 0x1e0(%rsp), %rdi
addq $0x218, %rdi            # imm = 0x218
callq 0x5cee0
testb $0x1, %al
jne 0x30db4
jmp 0x30db6
jmp 0x30df1
movq 0x1e0(%rsp), %rdi
movq 0x3a8(%rsp), %rsi
movq 0x200(%rsp), %rdx
movzbl 0x3a7(%rsp), %ecx
andl $0x1, %ecx
callq 0x4a9d0
jmp 0x30de0
movq 0x1e0(%rsp), %rdi
callq 0x1fac0
jmp 0x30def
jmp 0x30df1
jmp 0x30ebb
movq 0x1e0(%rsp), %rdi
callq 0x4ddd0
movb %al, 0x7(%rsp)
jmp 0x30e09
movq 0xc8(%rsp), %rcx
movb 0x7(%rsp), %al
movzbl %al, %eax
movzbl 0x30(%rcx), %ecx
cmpl %ecx, %eax
jge 0x30e3d
movq 0x1e0(%rsp), %rdi
callq 0x4e170
movb %al, 0x6(%rsp)
jmp 0x30e33
movb 0x6(%rsp), %al
testb $0x1, %al
jne 0x30e3d
jmp 0x30eb9
movq 0xc8(%rsp), %rdi
addq $0x38, %rdi
movq 0x1e0(%rsp), %rsi
addq $0x250, %rsi            # imm = 0x250
callq 0x611d0
movb %al, 0x5(%rsp)
jmp 0x30e63
movb 0x5(%rsp), %al
testb $0x1, %al
jne 0x30eb9
jmp 0x30e6d
movq 0x1e0(%rsp), %rax
testb $0x1, 0x2a0(%rax)
jne 0x30eb9
movq 0x1e0(%rsp), %rdi
movq 0x3a8(%rsp), %rsi
movq 0x200(%rsp), %rdx
movzbl 0x3a7(%rsp), %ecx
andl $0x1, %ecx
callq 0x4a9d0
jmp 0x30ea8
movq 0x1e0(%rsp), %rdi
callq 0x1fac0
jmp 0x30eb7
jmp 0x30eb9
jmp 0x30ebb
jmp 0x30ebd
leaq 0x1f0(%rsp), %rdi
callq 0x28620
jmp 0x30ab0
jmp 0x30ed1
leaq 0x210(%rsp), %rdi
callq 0x44b60
jmp 0x30a3f
leaq 0x248(%rsp), %rdi
callq 0x6ac40
addq $0x3b8, %rsp            # imm = 0x3B8
retq
leaq 0x248(%rsp), %rdi
callq 0x6ac40
movq 0x2f0(%rsp), %rdi
callq 0xcc90
nopw %cs:(%rax,%rax)