// File: /workspace/github_c_makefile_star2_O1/fukunagatsu[P]RIblast/fastafile_reader.cpp
// Function: FastafileReader::ReadFastafile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void FastafileReader::ReadFastafile(string input_file_name, string &sequence, string &name){
  ifstream fp;
  string buffer;
  fp.open(input_file_name.c_str(),ios::in);
  if (!fp){
    cout << "Error: can't open input_file:"+input_file_name+"." <<endl;
    exit(1);
  }
  getline(fp,buffer);
  name = buffer.substr(1,buffer.size()-1);
  sequence = "";
  while(getline(fp,buffer)){
    if(buffer.size()>=2){
      if(buffer.substr(buffer.size()-2,2) == "\r\n"){
	buffer.erase(buffer.size()-2,2);
      }
    }
    if(buffer[buffer.size()-1] == '\r' || buffer[buffer.size()-1] == '\n'){
      buffer.erase(buffer.size()-1,1);
    }
    sequence = sequence + buffer;
  }
  fp.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x60(%rsp), %r12
movq %r12, %rdi
callq 0x3270
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r14), %rsi
movq %r12, %rdi
movl $0x8, %edx
callq 0x3160
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x80(%rsp,%rax)
jne 0x5632
leaq (%rsp,%rax), %rdi
addq $0x60, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %edx
leaq 0x60(%rsp), %r14
movq %rsp, %rsi
movq %r14, %rdi
callq 0x3410
movq %rsp, %rsi
movq 0x8(%rsi), %rcx
decq %rcx
leaq 0x20(%rsp), %rdi
movl $0x1, %edx
callq 0x3240
leaq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x32b0
movq (%r12), %rdi
leaq 0x30(%rsp), %r13
cmpq %r13, %rdi
je 0x54d9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x8(%rbx), %rdx
leaq 0x1634f(%rip), %rcx     # 0x1b833
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x3360
movq %rsp, %r15
leaq 0x20(%rsp), %r12
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3410
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x55f1
movq 0x8(%rsp), %rdx
cmpq $0x2, %rdx
jb 0x5590
addq $-0x2, %rdx
movl $0x2, %ecx
movq %r12, %rdi
movq %r15, %rsi
callq 0x3240
movq %r12, %rdi
leaq 0x162d9(%rip), %rsi     # 0x1b831
callq 0x30b0
movl %eax, %ebp
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x5576
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
testl %ebp, %ebp
jne 0x5590
movq 0x8(%rsp), %rsi
addq $-0x2, %rsi
movl $0x2, %edx
movq %r15, %rdi
callq 0x3080
movq (%rsp), %rax
movq 0x8(%rsp), %rsi
movzbl -0x1(%rax,%rsi), %eax
cmpl $0xd, %eax
je 0x55a8
cmpl $0xa, %eax
jne 0x55b8
decq %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x3080
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x5815
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32b0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x54f9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x54f9
leaq 0x60(%rsp), %rdi
callq 0x3060
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5616
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x60(%rsp), %rdi
callq 0x3090
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x161da(%rip), %rsi     # 0x1b813
leaq 0x40(%rsp), %rdi
movq %r14, %rdx
callq 0x574f
leaq 0x16124(%rip), %rsi     # 0x1b771
leaq 0x40(%rsp), %rdi
callq 0x3420
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5678
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x5685
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0xe0922(%rip), %rdi     # 0xe5fd0
callq 0x3280
movq %rax, %rdi
callq 0x3120
leaq 0x20(%rsp), %rdi
callq 0x3110
leaq 0x40(%rsp), %rdi
callq 0x3110
movl $0x1, %edi
callq 0x32a0
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x56f8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x56f8
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5722
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x5722
jmp 0x571f
jmp 0x571f
jmp 0x571f
jmp 0x571f
jmp 0x571f
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq (%rsp), %rdi
cmpq %rax, %rdi
je 0x573d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x60(%rsp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x33e0