// File: /workspace/github_cpp_makefile_star2_O1/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, %r15d
movq %rsi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x18(%rdi), %rcx
movq %rcx, 0x48(%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, 0x50(%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, %rbp
movq (%rbx), %rsi
movq %rax, %rdi
movl $0x8, %edx
callq 0x7790
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xce0b
movl %r15d, 0x14(%rsp)
movl %r14d, 0x44(%rsp)
movq %rbx, 0x18(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %r13d, %r13d
leaq 0x20(%rsp), %r12
leaq 0x58(%rsp), %r14
movl $0x1, %ebx
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %edx
movq %rbp, %rdi
movq %r12, %rsi
callq 0x77a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1332e
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq %rdi, %rsi
movb $0xd, 0x58(%rsp)
movq %r14, %rdx
callq 0x1676e
movq %rax, %rcx
subq 0x20(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movb $0x0, (%rax)
movq %r12, %rdi
leaq 0x2fd26(%rip), %rsi     # 0x42fb1
callq 0x70f0
testl %eax, %eax
je 0x1357a
movq %r14, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x91a9
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rax
subq %rdi, %rax
cmpq $0x40, %rax
jne 0x134e1
addq $0x20, %rdi
leaq 0x2d7d0(%rip), %rsi     # 0x40a9a
callq 0x70f0
testl %eax, %eax
movzbl %r13b, %r13d
movl $0x1, %eax
cmovel %eax, %r13d
movq 0x58(%rsp), %rsi
addq $0x20, %rsi
movq 0x50(%rsp), %rdi
callq 0x1496a
movq 0x58(%rsp), %rsi
movq %rax, %rdi
callq 0xd92e
movq 0x58(%rsp), %r15
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x149e6
addq $0x20, %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x7210
movq %r14, %rdi
callq 0xd250
incl %ebx
jmp 0x13222
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rbx
movq 0x70(%rsp), %rbp
cmpq %rbp, %rbx
je 0x1338e
leaq 0x2d752(%rip), %r14     # 0x40a9a
leaq 0x2d712(%rip), %r15     # 0x40a61
leaq 0x20(%rbx), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x70f0
testl %eax, %eax
je 0x1337e
movq %r12, %rdi
movq %r15, %rsi
callq 0x70f0
testl %eax, %eax
je 0x1337e
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0xd92e
movq %rbx, %rdi
callq 0x72f0
movq %rax, %rbx
cmpq %rbp, %rax
jne 0x1334f
movq 0x43c03(%rip), %rdi     # 0x56f98
leaq 0x2d6c9(%rip), %rsi     # 0x40a65
movl $0xa, %edx
callq 0x74b0
movl 0x44(%rsp), %ebp
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x5, %rsi
movq 0x43bd7(%rip), %rdi     # 0x56f98
callq 0x72d0
movq %rax, %rbx
leaq 0x2d6a0(%rip), %rsi     # 0x40a70
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
jb 0x13613
cmpl $0x1, %ebp
je 0x134ac
testl %ebp, %ebp
jne 0x134b6
testb $0x1, %r13b
je 0x134a7
movq 0x43ba8(%rip), %rdi     # 0x56fe8
leaq 0x2d704(%rip), %rsi     # 0x40b4b
movl $0x29, %edx
callq 0x74b0
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x43b84(%rip), %rdi     # 0x56fe8
callq 0x74b0
movq %rax, %rbx
leaq 0x2d702(%rip), %rsi     # 0x40b75
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
cmpl $0x1, %ebp
jne 0x134b6
testb $0x1, %r13b
je 0x1365c
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x134d2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7420
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x43b00(%rip), %rdi     # 0x56fe8
leaq 0x2d5b4(%rip), %rsi     # 0x40aa3
movl $0x24, %edx
callq 0x74b0
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x43adc(%rip), %rdi     # 0x56fe8
callq 0x74b0
movq %rax, %r14
leaq 0x31c86(%rip), %rsi     # 0x451a1
movl $0x6, %edx
movq %rax, %rdi
callq 0x74b0
movq %r14, %rdi
callq 0x71b0
movq 0x43ab1(%rip), %rdi     # 0x56fe8
leaq 0x2f9eb(%rip), %rsi     # 0x42f29
movl $0x5, %edx
callq 0x74b0
movq 0x43a99(%rip), %rdi     # 0x56fe8
movl %ebx, %esi
callq 0x7710
movq %rax, %rbx
leaq 0x2d573(%rip), %rsi     # 0x40ad3
movl $0x2e, %edx
movq %rax, %rdi
callq 0x74b0
movq %rbx, %rdi
callq 0x71b0
jmp 0x136ab
movq 0x43a67(%rip), %rdi     # 0x56fe8
leaq 0x2d51b(%rip), %rsi     # 0x40aa3
movl $0x24, %edx
callq 0x74b0
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x43a43(%rip), %rdi     # 0x56fe8
callq 0x74b0
movq %rax, %r14
leaq 0x31bed(%rip), %rsi     # 0x451a1
movl $0x6, %edx
movq %rax, %rdi
callq 0x74b0
movq %r14, %rdi
callq 0x71b0
movq 0x43a18(%rip), %rdi     # 0x56fe8
leaq 0x2f952(%rip), %rsi     # 0x42f29
movl $0x5, %edx
callq 0x74b0
movq 0x43a00(%rip), %rdi     # 0x56fe8
movl %ebx, %esi
callq 0x7710
movq %rax, %rbx
leaq 0x2d4cf(%rip), %rsi     # 0x40ac8
movl $0xa, %edx
movq %rax, %rdi
callq 0x74b0
movq %rbx, %rdi
callq 0x71b0
jmp 0x136ab
movq 0x439ce(%rip), %rdi     # 0x56fe8
leaq 0x2d4e1(%rip), %rsi     # 0x40b02
movl $0x19, %edx
callq 0x74b0
movq 0x439b6(%rip), %rdi     # 0x56fe8
movl 0x14(%rsp), %esi
callq 0x7710
movq %rax, %rbx
leaq 0x2d4d7(%rip), %rsi     # 0x40b1c
movl $0x2e, %edx
movq %rax, %rdi
callq 0x74b0
movq %rbx, %rdi
callq 0x71b0
jmp 0x136ab
movq 0x43985(%rip), %rdi     # 0x56fe8
leaq 0x2d5c0(%rip), %rsi     # 0x40c2a
movl $0x10, %edx
callq 0x74b0
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x43961(%rip), %rdi     # 0x56fe8
callq 0x74b0
movq %rax, %rbx
leaq 0x2d5a5(%rip), %rsi     # 0x40c3b
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 %rbp, %rdi
jmp 0x136ff
movq %rax, %rbx
jmp 0x13704
jmp 0x136d1
jmp 0x136db
jmp 0x136d1
jmp 0x136d1
jmp 0x136d1
movq %rax, %rbx
leaq 0x30(%rsp), %r14
jmp 0x136ed
movq %rax, %rbx
leaq 0x30(%rsp), %r14
leaq 0x58(%rsp), %rdi
callq 0xd250
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x13704
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7420
movq 0x8(%rsp), %r15
leaq 0xa8(%r15), %rdi
leaq 0x78(%r15), %r14
callq 0x151b8
movq %r14, %rdi
callq 0x15230
movq 0x50(%rsp), %rdi
callq 0x152c0
movq 0x48(%rsp), %rdi
callq 0x1531c
movq %r15, %rdi
callq 0xd250
movq %rbx, %rdi
callq 0x7740