// File: brc7[P]DiversitySampling/src/io.cpp
// Function: SequenceFeaturesPE(std::istream&, std::istream&, 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>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool SequenceFeaturesPE(std::istream& in1, std::istream& in2, std::string& sequence, std::string& chunk1, std::string& chunk2, std::string fastWhat){
    bool success1 = SequenceFeatures(in2, sequence, chunk2, fastWhat); 
    bool success2 = SequenceFeatures(in1, sequence, chunk1, fastWhat); 

    if (!success1){
        std::cerr<<"Error reading first "<<fastWhat<<" file"<<std::endl; 
        return false; 
    }
    if (!success2){
        std::cerr<<"Error reading second "<<fastWhat<<" file"<<std::endl; 
        return false; 
    }
    return (success1 && success2); 

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %r9, -0xc8(%rbp)
movq %rsi, %rax
movq -0xc8(%rbp), %rsi
movq %rsi, -0xc0(%rbp)
movq %rdi, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq -0x60(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x20e0
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq -0xa0(%rbp), %rcx
callq 0x2770
movb %al, -0x91(%rbp)
jmp 0x2e25
leaq -0x60(%rbp), %rdi
callq 0x2120
movb -0x91(%rbp), %al
movq -0xc0(%rbp), %rsi
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq -0x90(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x20e0
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
movq -0xd8(%rbp), %rcx
callq 0x2770
movb %al, -0xc9(%rbp)
jmp 0x2e9d
leaq -0x90(%rbp), %rdi
callq 0x2120
movb -0xc9(%rbp), %al
andb $0x1, %al
movb %al, -0x6d(%rbp)
testb $0x1, -0x39(%rbp)
jne 0x2f37
movq 0x612f(%rip), %rdi      # 0x8ff0
leaq 0x3299(%rip), %rsi      # 0x6161
callq 0x21b0
movq -0xc0(%rbp), %rsi
movq %rax, %rdi
callq 0x2190
movq %rax, %rdi
leaq 0x3290(%rip), %rsi      # 0x6176
callq 0x21b0
movq %rax, %rdi
movq 0x60c3(%rip), %rsi      # 0x8fb8
callq 0x21d0
movb $0x0, -0x1(%rbp)
jmp 0x2fa5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x2120
jmp 0x2fb3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x2120
jmp 0x2fb3
testb $0x1, -0x6d(%rbp)
jne 0x2f83
movq 0x60ac(%rip), %rdi      # 0x8ff0
leaq 0x3231(%rip), %rsi      # 0x617c
callq 0x21b0
movq -0xc0(%rbp), %rsi
movq %rax, %rdi
callq 0x2190
movq %rax, %rdi
leaq 0x320d(%rip), %rsi      # 0x6176
callq 0x21b0
movq %rax, %rdi
movq 0x6040(%rip), %rsi      # 0x8fb8
callq 0x21d0
movb $0x0, -0x1(%rbp)
jmp 0x2fa5
xorl %eax, %eax
testb $0x1, -0x39(%rbp)
movb %al, -0xf1(%rbp)
je 0x2f9a
movb -0x6d(%rbp), %al
movb %al, -0xf1(%rbp)
movb -0xf1(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x2390
nopl (%rax)