// File: /workspace/github_c_makefile_star2_O0/fukunagatsu[P]RIblast/fastafile_reader.cpp
// Function: FastafileReader::ReadFastafile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void FastafileReader::ReadFastafile(string input_file_name, vector<string> &sequences, vector<string> &names){
  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);
  names.push_back(buffer.substr(1,buffer.size()-1));
  string temp_sequence = "";
  int count = 0;
  while(getline(fp,buffer)){
    if(buffer[0] == '>'){
      names.push_back(buffer.substr(1,buffer.size()-1));
      sequences.push_back(temp_sequence);
      temp_sequence = "";
    }else{
      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);
      }
      count += 1;
      temp_sequence = temp_sequence + buffer;
    }
  }
  sequences.push_back(temp_sequence);
  fp.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3e0, %rsp            # imm = 0x3E0
movq %rsi, -0x350(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0x228(%rbp), %rdi
movq %rdi, -0x348(%rbp)
callq 0x3310
leaq -0x248(%rbp), %rdi
callq 0x33d0
movq -0x350(%rbp), %rdi
callq 0x3110
movq -0x348(%rbp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x31b0
jmp 0x7ef3
movq -0x228(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x228(%rbp,%rax), %rdi
callq 0x3140
movb %al, -0x351(%rbp)
jmp 0x7f13
movb -0x351(%rbp), %al
testb $0x1, %al
jne 0x7f22
jmp 0x8007
movq -0x350(%rbp), %rdx
leaq 0x308d3(%rip), %rsi     # 0x38803
leaq -0x298(%rbp), %rdi
callq 0x8930
jmp 0x7f3e
leaq 0x3081c(%rip), %rdx     # 0x38761
leaq -0x278(%rbp), %rdi
leaq -0x298(%rbp), %rsi
callq 0x88e0
jmp 0x7f5a
movq 0x4406f(%rip), %rdi     # 0x4bfd0
leaq -0x278(%rbp), %rsi
callq 0x3260
movq %rax, -0x360(%rbp)
jmp 0x7f76
movq -0x360(%rbp), %rdi
movq 0x44024(%rip), %rsi     # 0x4bfa8
callq 0x32b0
jmp 0x7f8b
leaq -0x278(%rbp), %rdi
callq 0x3190
leaq -0x298(%rbp), %rdi
callq 0x3190
movl $0x1, %edi
callq 0x3330
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
jmp 0x8460
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
jmp 0x7ff6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
leaq -0x278(%rbp), %rdi
callq 0x3190
leaq -0x298(%rbp), %rdi
callq 0x3190
jmp 0x8460
leaq -0x228(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0x3060
jmp 0x801c
movq -0x20(%rbp), %rax
movq %rax, -0x370(%rbp)
leaq -0x248(%rbp), %rdi
movq %rdi, -0x368(%rbp)
callq 0x31e0
movq -0x368(%rbp), %rsi
movq %rax, %rcx
decq %rcx
leaq -0x2b8(%rbp), %rdi
movl $0x1, %edx
callq 0x32a0
jmp 0x805a
movq -0x370(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
callq 0x8a40
jmp 0x806f
leaq -0x2b8(%rbp), %rdi
callq 0x3190
leaq -0x2d9(%rbp), %rdi
movq %rdi, -0x378(%rbp)
callq 0x34e0
movq -0x378(%rbp), %rdx
leaq 0x30787(%rip), %rsi     # 0x38823
leaq -0x2d8(%rbp), %rdi
callq 0x8a70
jmp 0x80aa
leaq -0x2d9(%rbp), %rdi
callq 0x32d0
movl $0x0, -0x2e0(%rbp)
leaq -0x228(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0x3060
movq %rax, -0x380(%rbp)
jmp 0x80dc
movq -0x380(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x3380
movb %al, -0x381(%rbp)
jmp 0x80fa
movb -0x381(%rbp), %al
testb $0x1, %al
jne 0x8109
jmp 0x8407
xorl %eax, %eax
movl %eax, %esi
leaq -0x248(%rbp), %rdi
callq 0x3560
movq %rax, -0x390(%rbp)
jmp 0x8122
movq -0x390(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3e, %eax
jne 0x8240
movq -0x20(%rbp), %rax
movq %rax, -0x3a0(%rbp)
leaq -0x248(%rbp), %rdi
movq %rdi, -0x398(%rbp)
callq 0x31e0
movq -0x398(%rbp), %rsi
movq %rax, %rcx
decq %rcx
leaq -0x300(%rbp), %rdi
movl $0x1, %edx
callq 0x32a0
jmp 0x8173
movq -0x3a0(%rbp), %rdi
leaq -0x300(%rbp), %rsi
callq 0x8a40
jmp 0x8188
leaq -0x300(%rbp), %rdi
callq 0x3190
movq -0x18(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
callq 0x8b20
jmp 0x81a6
leaq 0x30676(%rip), %rsi     # 0x38823
leaq -0x2d8(%rbp), %rdi
callq 0x33c0
jmp 0x81bb
jmp 0x8402
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
leaq -0x2b8(%rbp), %rdi
callq 0x3190
jmp 0x8460
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
leaq -0x2d9(%rbp), %rdi
callq 0x32d0
jmp 0x8460
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
jmp 0x8454
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
leaq -0x300(%rbp), %rdi
callq 0x3190
jmp 0x8454
leaq -0x248(%rbp), %rdi
callq 0x31e0
cmpq $0x2, %rax
jb 0x8311
leaq -0x248(%rbp), %rdi
movq %rdi, -0x3a8(%rbp)
callq 0x31e0
movq -0x3a8(%rbp), %rsi
movq %rax, %rdx
addq $-0x2, %rdx
leaq -0x320(%rbp), %rdi
movl $0x2, %ecx
callq 0x32a0
jmp 0x828a
leaq 0x30590(%rip), %rsi     # 0x38821
leaq -0x320(%rbp), %rdi
callq 0x8b90
movb %al, -0x3a9(%rbp)
jmp 0x82a5
leaq -0x320(%rbp), %rdi
callq 0x3190
movb -0x3a9(%rbp), %al
testb $0x1, %al
jne 0x82bd
jmp 0x830f
leaq -0x248(%rbp), %rdi
movq %rdi, -0x3b8(%rbp)
callq 0x31e0
movq -0x3b8(%rbp), %rdi
movq %rax, %rsi
addq $-0x2, %rsi
movl $0x2, %edx
callq 0x3090
jmp 0x82ea
jmp 0x830f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x250(%rbp)
movl %eax, -0x254(%rbp)
leaq -0x320(%rbp), %rdi
callq 0x3190
jmp 0x8454
jmp 0x8311
leaq -0x248(%rbp), %rdi
movq %rdi, -0x3c8(%rbp)
callq 0x31e0
movq -0x3c8(%rbp), %rdi
movq %rax, %rsi
decq %rsi
callq 0x3560
movq %rax, -0x3c0(%rbp)
jmp 0x833f
movq -0x3c0(%rbp), %rax
movsbl (%rax), %eax
cmpl $0xd, %eax
je 0x838b
leaq -0x248(%rbp), %rdi
movq %rdi, -0x3d8(%rbp)
callq 0x31e0
movq -0x3d8(%rbp), %rdi
movq %rax, %rsi
decq %rsi
callq 0x3560
movq %rax, -0x3d0(%rbp)
jmp 0x837c
movq -0x3d0(%rbp), %rax
movsbl (%rax), %eax
cmpl $0xa, %eax
jne 0x83b9
leaq -0x248(%rbp), %rdi
movq %rdi, -0x3e0(%rbp)
callq 0x31e0
movq -0x3e0(%rbp), %rdi
movq %rax, %rsi
decq %rsi
movl $0x1, %edx
callq 0x3090
jmp 0x83b7
jmp 0x83b9
movl -0x2e0(%rbp), %eax
incl %eax
movl %eax, -0x2e0(%rbp)
leaq -0x340(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
leaq -0x248(%rbp), %rdx
callq 0x8bc0
jmp 0x83e3
leaq -0x2d8(%rbp), %rdi
leaq -0x340(%rbp), %rsi
callq 0x3340
leaq -0x340(%rbp), %rdi
callq 0x3190
jmp 0x80c0
movq -0x18(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
callq 0x8b20
jmp 0x8419
leaq -0x228(%rbp), %rdi
callq 0x3070
jmp 0x8427
leaq -0x2d8(%rbp), %rdi
callq 0x3190
leaq -0x248(%rbp), %rdi
callq 0x3190
leaq -0x228(%rbp), %rdi
callq 0x30b0
addq $0x3e0, %rsp            # imm = 0x3E0
popq %rbp
retq
leaq -0x2d8(%rbp), %rdi
callq 0x3190
leaq -0x248(%rbp), %rdi
callq 0x3190
leaq -0x228(%rbp), %rdi
callq 0x30b0
movq -0x250(%rbp), %rdi
callq 0x34d0
nopw %cs:(%rax,%rax)