// File: /workspace/github_c_makefile_star2_O3/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 0x5ab7
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 0x5955
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x8(%rbx), %rdx
leaq 0x16f0b(%rip), %rcx     # 0x1c86b
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 0x5a76
movq 0x8(%rsp), %rax
cmpq $0x2, %rax
jb 0x5a17
addq $-0x2, %rax
movl $0x2, %ecx
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3240
movq %r12, %rdi
leaq 0x16e92(%rip), %rsi     # 0x1c869
callq 0x30b0
movl %eax, %ebp
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x59f5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x8(%rsp), %rax
testl %ebp, %ebp
jne 0x5a17
addq $-0x2, %rax
movl $0x2, %edx
movq %r15, %rdi
movq %rax, %rsi
callq 0x3080
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
movzbl -0x1(%rcx,%rax), %ecx
cmpl $0xd, %ecx
je 0x5a2a
cmpl $0xa, %ecx
jne 0x5a3d
decq %rax
movl $0x1, %edx
movq %r15, %rdi
movq %rax, %rsi
callq 0x3080
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x5c93
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32b0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x5975
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x5975
leaq 0x60(%rsp), %rdi
callq 0x3060
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5a9b
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 0x16d8d(%rip), %rsi     # 0x1c84b
leaq 0x40(%rsp), %rdi
movq %r14, %rdx
callq 0x5bcd
leaq 0x16cd9(%rip), %rsi     # 0x1c7ab
leaq 0x40(%rsp), %rdi
callq 0x3420
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
jne 0x5b00
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %r14, %rsi
jmp 0x5b0d
movq %rsi, 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 0xe14a4(%rip), %rdi     # 0xe6fd0
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 0x5b76
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x5b76
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ba0
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x5ba0
jmp 0x5b9d
jmp 0x5b9d
jmp 0x5b9d
jmp 0x5b9d
jmp 0x5b9d
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq (%rsp), %rdi
cmpq %rax, %rdi
je 0x5bbb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x60(%rsp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x33e0