// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]Dsuite/./Dsuite_common.h
// Function: SetInformation::SetInformation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int)
SetInformation(const string& setsFileName, const int minPopulations, const int outgroupRequirement) {
        
        std::ifstream* setsFile = new std::ifstream(setsFileName.c_str());
        assertFileOpen(*setsFile, setsFileName);
        
        string line; int l = 0; bool outgroupSpecified = false;
        while (getline(*setsFile, line)) {
            line.erase(std::remove(line.begin(), line.end(), '\r'), line.end()); // Deal with any left over \r from files prepared on Windows
            
            l++; if (line == "") lineEmptyError(setsFileName,l);
            
            std::vector<string> ID_Pop = split(line, '\t');
            
            if (ID_Pop.size() != 2) wrongNumberOfColumnsError(setsFileName,l);
            if (ID_Pop[1] == "Outgroup") { outgroupSpecified = true; }
            
            popToIDsMap[ID_Pop[1]].push_back(ID_Pop[0]);
            IDsToPopMap[ID_Pop[0]] = ID_Pop[1];
        }
        
        for(std::map<string,std::vector<string>>::iterator it = popToIDsMap.begin(); it != popToIDsMap.end(); ++it) {
            if ((it->first) != "Outgroup" && it->first != "xxx") {
                populations.push_back(it->first);
            }
        } std::cout << "There are " << populations.size() << " sets (populations/species) excluding the Outgroup" << std::endl;
        
        if (populations.size() < minPopulations) notEnoughPopulationsError(minPopulations);
        
        // Provide error/warning messages depending on which analysis is run and the presence/absence of Outgroup in the SETS file
        if (outgroupRequirement == OutgroupNotRequired && outgroupSpecified) outgroupNotUsedInQuartetsWarning(setsFileName);
        if (outgroupRequirement == OutgroupRequired && !outgroupSpecified) outgroupNeededError(setsFileName);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x18(%rdi), %rcx
movq %rcx, 0x28(%rsp)
leaq 0x20(%rdi), %rcx
movl %eax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rcx, 0x30(%rdi)
movq %rcx, 0x38(%rdi)
movq %rax, 0x40(%rdi)
leaq 0x48(%rdi), %rcx
movq %rcx, 0x30(%rsp)
leaq 0x50(%rdi), %rcx
movl %eax, 0x50(%rdi)
movq %rax, 0x58(%rdi)
movq %rcx, 0x60(%rdi)
movq %rcx, 0x70(%rsp)
movq %rcx, 0x68(%rdi)
movq %rax, 0x70(%rdi)
leaq 0x80(%rdi), %rcx
movl %eax, 0x80(%rdi)
movq %rax, 0x88(%rdi)
movq %rcx, 0x90(%rdi)
movq %rcx, 0x98(%rdi)
movq %rax, 0xa0(%rdi)
leaq 0xb0(%rdi), %rcx
movl %eax, 0xb0(%rdi)
movq %rax, 0xb8(%rdi)
movq %rcx, 0xc0(%rdi)
movq %rcx, 0xc8(%rdi)
movq %rdi, 0x8(%rsp)
movq %rax, 0xd0(%rdi)
movl $0x208, %edi            # imm = 0x208
callq 0x7410
movq %rax, %r13
movq (%rbx), %rsi
movq %rax, %rdi
movl $0x8, %edx
callq 0x7790
movq %r13, %rdi
movq %rbx, %rsi
callq 0xcd68
movl %r14d, 0x24(%rsp)
movl %ebp, 0x14(%rsp)
movq %rbx, 0x18(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %ebp, %ebp
leaq 0x38(%rsp), %r12
leaq 0x58(%rsp), %r14
movl $0x1, %ebx
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x77a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x134e2
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
addq %rdi, %rsi
movb $0xd, 0x58(%rsp)
movq %r14, %rdx
callq 0x17195
movq %rax, %rcx
subq 0x38(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movb $0x0, (%rax)
movq %r12, %rdi
leaq 0x30c01(%rip), %rsi     # 0x44041
callq 0x70f0
testl %eax, %eax
je 0x13727
movq %r14, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x91c1
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rax
subq %rdi, %rax
cmpq $0x40, %rax
jne 0x1368e
addq $0x20, %rdi
leaq 0x2e683(%rip), %rsi     # 0x41b02
callq 0x70f0
testl %eax, %eax
movzbl %bpl, %ebp
movl $0x1, %eax
cmovel %eax, %ebp
movq 0x58(%rsp), %rsi
addq $0x20, %rsi
movq 0x30(%rsp), %rdi
callq 0x14b18
movq 0x58(%rsp), %rsi
movq %rax, %rdi
callq 0xd894
movq 0x58(%rsp), %r15
movq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x14b94
addq $0x20, %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x7210
movq %r14, %rdi
callq 0xd1ac
incl %ebx
jmp 0x133d7
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rbx
movq 0x70(%rsp), %r13
cmpq %r13, %rbx
je 0x13542
leaq 0x2e606(%rip), %r14     # 0x41b02
leaq 0x2e5c6(%rip), %r15     # 0x41ac9
leaq 0x20(%rbx), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x70f0
testl %eax, %eax
je 0x13532
movq %r12, %rdi
movq %r15, %rsi
callq 0x70f0
testl %eax, %eax
je 0x13532
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0xd894
movq %rbx, %rdi
callq 0x72f0
movq %rax, %rbx
cmpq %r13, %rax
jne 0x13503
movq 0x44a4f(%rip), %rdi     # 0x57f98
leaq 0x2e57d(%rip), %rsi     # 0x41acd
movl $0xa, %edx
callq 0x74b0
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x5, %rsi
movq 0x44a27(%rip), %rdi     # 0x57f98
callq 0x72d0
movq %rax, %rbx
leaq 0x2e558(%rip), %rsi     # 0x41ad8
movl $0x32, %edx
movq %rax, %rdi
callq 0x74b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x72e0
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x5, %rax
movslq 0x14(%rsp), %rcx
cmpq %rcx, %rax
movl 0x24(%rsp), %eax
jb 0x137c0
cmpl $0x1, %eax
je 0x13659
testl %eax, %eax
jne 0x13663
testb $0x1, %bpl
je 0x13663
movq 0x449f8(%rip), %rdi     # 0x57fe8
leaq 0x2e5bc(%rip), %rsi     # 0x41bb3
movl $0x29, %edx
callq 0x74b0
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x449d4(%rip), %rdi     # 0x57fe8
callq 0x74b0
movq %rax, %rbx
leaq 0x2e5ba(%rip), %rsi     # 0x41bdd
movl $0xb4, %edx
movq %rax, %rdi
callq 0x74b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x72e0
jmp 0x13663
testb $0x1, %bpl
je 0x13809
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1367f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x7420
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x44953(%rip), %rdi     # 0x57fe8
leaq 0x2e46f(%rip), %rsi     # 0x41b0b
movl $0x24, %edx
callq 0x74b0
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x4492f(%rip), %rdi     # 0x57fe8
callq 0x74b0
movq %rax, %r14
leaq 0x32b69(%rip), %rsi     # 0x46231
movl $0x6, %edx
movq %rax, %rdi
callq 0x74b0
movq %r14, %rdi
callq 0x71b0
movq 0x44904(%rip), %rdi     # 0x57fe8
leaq 0x308ce(%rip), %rsi     # 0x43fb9
movl $0x5, %edx
callq 0x74b0
movq 0x448ec(%rip), %rdi     # 0x57fe8
movl %ebx, %esi
callq 0x7710
movq %rax, %rbx
leaq 0x2e42e(%rip), %rsi     # 0x41b3b
movl $0x2e, %edx
movq %rax, %rdi
callq 0x74b0
movq %rbx, %rdi
callq 0x71b0
jmp 0x13858
movq 0x448ba(%rip), %rdi     # 0x57fe8
leaq 0x2e3d6(%rip), %rsi     # 0x41b0b
movl $0x24, %edx
callq 0x74b0
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x44896(%rip), %rdi     # 0x57fe8
callq 0x74b0
movq %rax, %r14
leaq 0x32ad0(%rip), %rsi     # 0x46231
movl $0x6, %edx
movq %rax, %rdi
callq 0x74b0
movq %r14, %rdi
callq 0x71b0
movq 0x4486b(%rip), %rdi     # 0x57fe8
leaq 0x30835(%rip), %rsi     # 0x43fb9
movl $0x5, %edx
callq 0x74b0
movq 0x44853(%rip), %rdi     # 0x57fe8
movl %ebx, %esi
callq 0x7710
movq %rax, %rbx
leaq 0x2e38a(%rip), %rsi     # 0x41b30
movl $0xa, %edx
movq %rax, %rdi
callq 0x74b0
movq %rbx, %rdi
callq 0x71b0
jmp 0x13858
movq 0x44821(%rip), %rdi     # 0x57fe8
leaq 0x2e39c(%rip), %rsi     # 0x41b6a
movl $0x19, %edx
callq 0x74b0
movq 0x44809(%rip), %rdi     # 0x57fe8
movl 0x14(%rsp), %esi
callq 0x7710
movq %rax, %rbx
leaq 0x2e392(%rip), %rsi     # 0x41b84
movl $0x2e, %edx
movq %rax, %rdi
callq 0x74b0
movq %rbx, %rdi
callq 0x71b0
jmp 0x13858
movq 0x447d8(%rip), %rdi     # 0x57fe8
leaq 0x2e47b(%rip), %rsi     # 0x41c92
movl $0x10, %edx
callq 0x74b0
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x447b4(%rip), %rdi     # 0x57fe8
callq 0x74b0
movq %rax, %rbx
leaq 0x2e460(%rip), %rsi     # 0x41ca3
movl $0x20, %edx
movq %rax, %rdi
callq 0x74b0
movq %rbx, %rdi
callq 0x71b0
movl $0x1, %edi
callq 0x7510
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r13, %rdi
jmp 0x138a7
movq %rax, %rbx
jmp 0x138ac
jmp 0x1387e
jmp 0x13883
jmp 0x1387e
jmp 0x1387e
jmp 0x1387e
movq %rax, %rbx
jmp 0x13890
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xd1ac
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x138ac
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x7420
movq 0x8(%rsp), %r15
leaq 0xa8(%r15), %rdi
leaq 0x78(%r15), %r14
callq 0x15366
movq %r14, %rdi
callq 0x153de
movq 0x30(%rsp), %rdi
callq 0x1546e
movq 0x28(%rsp), %rdi
callq 0x154ca
movq %r15, %rdi
callq 0xd1ac
movq %rbx, %rdi
callq 0x7740