// File: /workspace/github_cpp_makefile_star2_O1/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 0x261c(%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 0x6876
cmpq $-0x1, %r14
je 0x1413e
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 0x1413e
callq 0x42f0
movq 0x8e7b(%rip), %r14      # 0x1cfc0
leaq 0x2596(%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 0x8e49(%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 0x6876
leaq -0x90(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x6876
leaq -0xc0(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x13dcc
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0x141f2
callq 0x42f0
movq -0xc0(%rbp), %rdi
cmpq %r14, %rdi
je 0x14203
callq 0x42f0
leaq 0x9432(%rip), %rax      # 0x1d63c
cmpl $0x0, (%rax)
je 0x14289
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rbx), %rsi
movq 0x40(%rbx), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x6876
leaq 0x178b(%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 0x6876
leaq -0x60(%rbp), %rdx
leaq -0x80(%rbp), %rcx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x13dcc
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0x1427b
callq 0x42f0
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x14289
callq 0x42f0
leaq 0x93b4(%rip), %rax      # 0x1d644
leaq 0x93a9(%rip), %rcx      # 0x1d640
movl (%rcx), %ecx
orl (%rax), %ecx
je 0x142aa
callq 0x9626
movq %rax, %rdi
callq 0x96b2
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x142b8
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 0x142e0
callq 0x42f0
jmp 0x142e0
jmp 0x142dd
movq %rax, %rbx
movq -0x60(%rbp), %rdi
jmp 0x14308
jmp 0x14314
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0x14301
callq 0x42f0
jmp 0x14301
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
cmpq %r14, %rdi
je 0x14317
callq 0x42f0
jmp 0x14317
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x14325
callq 0x42f0
movq %rbx, %rdi
callq 0x4590
nop