// File: /workspace/github_cpp_makefile_star2_O3/afinit[P]afin/contiglist.cpp
// Function: Contiglist::create_final_fasta()
void Contiglist::create_final_fasta(){
  // remove directories from outfile to form id_suffix if necessary
  size_t id_suffix_pos = outfile.find_last_of( "/" );
  string id_suffix = outfile;
  if( id_suffix_pos != string::npos ){
    id_suffix = id_suffix.substr( id_suffix_pos + 1 );
  }

  cout << "create_final_fasta" << endl;
  // print completed contigs to file
  output_contigs( 0, outfile, id_suffix );

  if( print_fused ){
    output_contigs( 1, outfile+"_fused", id_suffix );
  }

  if( log_output || screen_output ){
    Log::Inst()->close_log();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc0, %rsp
movq %rdi, %rbx
addq $0x38, %rdi
leaq 0x24c8(%rip), %rsi      # 0x166e0
movl $0x1, %ecx
movq $-0x1, %rdx
callq 0x4630
movq %rax, %r14
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x38(%rbx), %rsi
movq 0x40(%rbx), %rdx
addq %rsi, %rdx
leaq -0x40(%rbp), %rdi
callq 0x68f6
cmpq $-0x1, %r14
je 0x14292
incq %r14
leaq -0xe0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movq %r14, %rdx
movq $-0x1, %rcx
callq 0x4330
leaq -0x40(%rbp), %rdi
leaq -0xe0(%rbp), %r14
movq %r14, %rsi
callq 0x43b0
movq (%r14), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x14292
callq 0x42f0
movq 0x8d27(%rip), %r14      # 0x1cfc0
leaq 0x2442(%rip), %rsi      # 0x166e2
movl $0x12, %edx
movq %r14, %rdi
callq 0x4360
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x4300
movsbl %al, %esi
movq 0x8cf5(%rip), %rdi      # 0x1cfc0
callq 0x4030
movq %rax, %rdi
callq 0x4210
leaq -0xb0(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rbx), %rsi
movq 0x40(%rbx), %rdx
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0x68f6
leaq -0x90(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x68f6
leaq -0xc0(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x13f20
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0x14346
callq 0x42f0
movq -0xc0(%rbp), %rdi
cmpq %r14, %rdi
je 0x14357
callq 0x42f0
leaq 0x92de(%rip), %rax      # 0x1d63c
cmpl $0x0, (%rax)
je 0x143dd
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rbx), %rsi
movq 0x40(%rbx), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x68f6
leaq 0x1637(%rip), %rsi      # 0x159bd
leaq -0x60(%rbp), %rdi
callq 0x45f0
leaq -0x70(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x68f6
leaq -0x60(%rbp), %rdx
leaq -0x80(%rbp), %rcx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x13f20
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x143cf
callq 0x42f0
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x143dd
callq 0x42f0
leaq 0x9260(%rip), %rax      # 0x1d644
leaq 0x9255(%rip), %rcx      # 0x1d640
movl (%rcx), %ecx
orl (%rax), %ecx
je 0x143fe
callq 0x9692
movq %rax, %rdi
callq 0x9720
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x1440c
callq 0x42f0
addq $0xc0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x14434
callq 0x42f0
jmp 0x14434
jmp 0x14431
movq %rax, %rbx
movq -0x60(%rbp), %rdi
jmp 0x1445c
jmp 0x14468
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0x14455
callq 0x42f0
jmp 0x14455
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
cmpq %r14, %rdi
je 0x1446b
callq 0x42f0
jmp 0x1446b
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x14479
callq 0x42f0
movq %rbx, %rdi
callq 0x4590
nop