// File: /workspace/github_c_makefile_star2_O2/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, %r14
movq %rdx, %rbx
movq %rsi, %r15
leaq 0x60(%rsp), %r12
movq %r12, %rdi
callq 0x3230
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r15), %rsi
pushq $0x8
popq %rdx
movq %r12, %rdi
callq 0x3150
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x80(%rsp,%rax)
jne 0x4dcf
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
callq 0x3050
movq %rsp, %rsi
movq 0x8(%rsi), %rcx
decq %rcx
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rdx
callq 0x3210
leaq 0x20(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %r15, %rdi
callq 0x3100
leaq 0x11b49(%rip), %rsi     # 0x16813
movq %rbx, %rdi
callq 0x33e0
leaq 0x60(%rsp), %r14
movq %rsp, %r15
leaq 0x20(%rsp), %r12
pushq $0x2
popq %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x3050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4da1
movq 0x8(%rsp), %rdx
cmpq $0x2, %rdx
jb 0x4d57
addq $-0x2, %rdx
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rcx
callq 0x3210
movq %r12, %rdi
leaq 0x11aea(%rip), %rsi     # 0x16811
callq 0x4f70
movl %eax, %ebp
movq %r12, %rdi
callq 0x3100
movq 0x8(%rsp), %rdx
testb %bpl, %bpl
je 0x4d57
addq $-0x2, %rdx
movq %r15, %rdi
movq %rdx, %rsi
movq %r13, %rdx
callq 0x3080
movq 0x8(%rsp), %rdx
movq (%rsp), %rax
movzbl -0x1(%rax,%rdx), %eax
cmpl $0xd, %eax
je 0x4d6a
cmpl $0xa, %eax
jne 0x4d7b
decq %rdx
movq %r15, %rdi
movq %rdx, %rsi
pushq $0x1
popq %rdx
callq 0x3080
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x4f7d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3260
movq %r12, %rdi
callq 0x3100
jmp 0x4ce3
leaq 0x60(%rsp), %rdi
callq 0x3060
movq %rsp, %rdi
callq 0x3100
leaq 0x60(%rsp), %rdi
callq 0x30a0
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11a1d(%rip), %rsi     # 0x167f3
leaq 0x40(%rsp), %rdi
movq %r15, %rdx
callq 0x4e92
leaq 0x11991(%rip), %rdx     # 0x1677b
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x4e73
movq 0xde1d0(%rip), %rdi     # 0xe2fd0
leaq 0x20(%rsp), %rsi
callq 0x31c0
movq %rax, %rdi
callq 0x3110
leaq 0x20(%rsp), %rdi
callq 0x3100
leaq 0x40(%rsp), %rdi
callq 0x3100
pushq $0x1
popq %rdi
callq 0x3250
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3100
jmp 0x4e40
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3100
jmp 0x4e59
jmp 0x4e56
jmp 0x4e56
jmp 0x4e56
jmp 0x4e56
jmp 0x4e56
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3100
leaq 0x60(%rsp), %rdi
callq 0x30a0
movq %rbx, %rdi
callq 0x33a0