// File: /workspace/github_cpp_makefile_star2_O2/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 $0x68, %rsp
movl %ecx, %ebp
movl %edx, %r14d
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movups %xmm0, (%rdi)
andl $0x0, 0x20(%rdi)
movq %rsi, %rbx
andq $0x0, 0x28(%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0x20(%rdi), %rax
movq %rax, 0x30(%rdi)
movq %rax, 0x38(%rdi)
andq $0x0, 0x40(%rdi)
leaq 0x48(%rdi), %rax
movq %rax, 0x20(%rsp)
leaq 0x50(%rdi), %rax
andl $0x0, 0x50(%rdi)
andq $0x0, 0x58(%rdi)
movq %rax, 0x60(%rdi)
movq %rax, 0x40(%rsp)
movq %rax, 0x68(%rdi)
andq $0x0, 0x70(%rdi)
leaq 0x80(%rdi), %rax
andl $0x0, 0x80(%rdi)
andq $0x0, 0x88(%rdi)
movq %rax, 0x90(%rdi)
movq %rax, 0x98(%rdi)
andq $0x0, 0xa0(%rdi)
leaq 0xb0(%rdi), %rax
andl $0x0, 0xb0(%rdi)
andq $0x0, 0xb8(%rdi)
movq %rax, 0xc0(%rdi)
movq %rax, 0xc8(%rdi)
movq %rdi, (%rsp)
andq $0x0, 0xd0(%rdi)
movl $0x208, %edi            # imm = 0x208
callq 0x7410
movq %rax, %r13
movq (%rbx), %rsi
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x77a0
movq %r13, %rdi
movq %rbx, %rsi
callq 0xb40d
movl %r14d, 0x14(%rsp)
movl %ebp, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
pushq $0x1
popq %rbx
xorl %r12d, %r12d
leaq 0x48(%rsp), %rbp
leaq 0x28(%rsp), %r14
movq %r13, %rdi
movq %rbp, %rsi
callq 0x7090
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1049f
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
addq %rdi, %rsi
movb $0xd, 0x28(%rsp)
movq %r14, %rdx
callq 0x13671
movq 0x48(%rsp), %rdx
addq 0x50(%rsp), %rdx
movq %rbp, %rdi
movq %rax, %rsi
callq 0x70a0
movq %rbp, %rdi
leaq 0x28be6(%rip), %rsi     # 0x38fd1
callq 0x813d
testb %al, %al
je 0x10400
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x11616
movq %r14, %rdi
movq %rbp, %rsi
pushq $0x9
popq %rdx
callq 0x88f1
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rax
subq %rdi, %rax
cmpq $0x40, %rax
je 0x10432
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x11690
movq 0x28(%rsp), %rdi
addq $0x20, %rdi
leaq 0x2665d(%rip), %rsi     # 0x36a9a
callq 0x813d
movzbl %r12b, %r12d
testb %al, %al
pushq $0x1
popq %rax
cmovnel %eax, %r12d
movq 0x28(%rsp), %rsi
addq $0x20, %rsi
movq 0x20(%rsp), %rdi
callq 0x1170a
movq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0xbdc2
movq 0x28(%rsp), %r15
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x11770
addq $0x20, %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x7240
movq %r14, %rdi
callq 0xb80c
incl %ebx
jmp 0x10395
movq (%rsp), %rax
movq 0x60(%rax), %r15
leaq 0x265ec(%rip), %rbx     # 0x36a9a
leaq 0x265ac(%rip), %r14     # 0x36a61
movq 0x40(%rsp), %rbp
cmpq %rbp, %r15
je 0x104fa
leaq 0x20(%r15), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x117d6
testb %al, %al
je 0x104ed
movq %r13, %rdi
movq %r14, %rsi
callq 0x117d6
testb %al, %al
je 0x104ed
movq (%rsp), %rdi
movq %r13, %rsi
callq 0xbdc2
movq %r15, %rdi
callq 0x7300
movq %rax, %r15
jmp 0x104ba
movq 0x40a97(%rip), %rdi     # 0x50f98
leaq 0x2655d(%rip), %rsi     # 0x36a65
callq 0x7400
movq 0x8(%rsp), %rbx
movl 0x14(%rsp), %ebp
movq (%rsp), %rcx
movq 0x8(%rcx), %rsi
subq (%rcx), %rsi
sarq $0x5, %rsi
movq %rax, %rdi
callq 0x72f0
leaq 0x2653c(%rip), %rsi     # 0x36a70
movq %rax, %rdi
callq 0x7400
movq %rax, %rdi
callq 0x71e0
movq (%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x5, %rax
movslq %ebp, %rcx
cmpq %rcx, %rax
jae 0x10562
movl %ebp, %edi
callq 0x117e0
movl 0x10(%rsp), %eax
cmpl $0x1, %eax
je 0x1057f
testl %eax, %eax
jne 0x1058d
testb $0x1, %r12b
je 0x1058d
movq %rbx, %rdi
callq 0x1181f
jmp 0x1058d
testb $0x1, %r12b
jne 0x1058d
movq %rbx, %rdi
callq 0x11859
leaq 0x48(%rsp), %rdi
callq 0x7898
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r13, %rdi
callq 0x7420
jmp 0x105e3
movq %rax, %rbx
jmp 0x105e3
jmp 0x105c7
jmp 0x105c7
jmp 0x105c7
jmp 0x105c7
jmp 0x105c7
movq %rax, %rbx
jmp 0x105d9
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xb80c
leaq 0x48(%rsp), %rdi
callq 0x7898
movq (%rsp), %r15
leaq 0xa8(%r15), %rdi
leaq 0x78(%r15), %r14
callq 0x12058
movq %r14, %rdi
callq 0x120bc
movq 0x20(%rsp), %rdi
callq 0x12136
movq 0x18(%rsp), %rdi
callq 0x12180
movq %r15, %rdi
callq 0xb80c
movq %rbx, %rdi
callq 0x7750
nop