// File: /workspace/github_cpp_makefile_star2_O1/GAStudyGroup[P]GPX2/src/cross/gpx/sources/GPX2Support.cpp
// Function: GPX2Support::getEntryAndExitList(Partition*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Node*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, Node*>>>&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Node*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, Node*>>>&)
vector<pair<string, string>> GPX2Support::getEntryAndExitList(Partition* p, GPX2Structs::NodeMap &red, GPX2Structs::NodeMap &blue)
{
    vector<pair<string, string>> entryAndExit;
    vector<string> accessVec = p->getAccessNodes();
    for (unsigned i = 0; i < accessVec.size(); i++) {
        for (unsigned j = 0; j < accessVec.size(); j++) {
            if (i != j) {
                pair<GPX2Structs::SearchResult, vector<string>> resultRed = GPX2Support::DFS_inside(accessVec[i], accessVec[j], red, p);
                pair<GPX2Structs::SearchResult, vector<string>> resultBlue = GPX2Support::DFS_inside(accessVec[i], accessVec[j], blue, p);
                if (resultRed.first == GPX2Structs::SearchResult::IS_CONNECTED && resultBlue.first == GPX2Structs::SearchResult::IS_CONNECTED) {
                    entryAndExit.push_back(make_pair(accessVec[i], accessVec[j]));
                }
            }
        }
    }

    for (auto itOut = entryAndExit.begin(); itOut != entryAndExit.end(); itOut++) {
        for (auto itIn = entryAndExit.begin(); itIn != entryAndExit.end();) {
            if (itOut != itIn) {
                if (comparePairString(*itOut, *itIn)) {
                    itIn = entryAndExit.erase(itIn);
                } else {
                    itIn++;
                }
            } else {
                itIn++;
            }
        }
    }
    return (entryAndExit);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rcx, 0xb0(%rsp)
movq %rdx, 0xb8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, (%rsp)
movq $0x0, 0x10(%rdi)
movq %rsi, 0x20(%rsp)
movq %rsi, %rdi
callq 0x2a6c2
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x17d56
movq 0x10(%rsp), %rax
cmpq 0x8(%rsp), %rax
je 0x2ce1d
xorl %edx, %edx
leaq 0x178(%rsp), %rbx
leaq 0x148(%rsp), %r13
xorl %r14d, %r14d
xorl %ecx, %ecx
movq %rcx, 0xa8(%rsp)
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x2cdf7
movl $0x1, %ebp
shlq $0x5, %r14
xorl %r15d, %r15d
movq %rdx, 0xc0(%rsp)
leal (%rdx,%rbp), %ecx
cmpl $0x1, %ecx
je 0x2cdd8
leaq 0x98(%rsp), %rcx
movq %rcx, 0x88(%rsp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x82cc
movq 0x8(%rsp), %rax
shlq $0x5, %r15
leaq 0x78(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq (%rax,%r15), %rsi
movq 0x8(%rax,%r15), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x82cc
movq %rbx, %r12
movq %rbx, %rdi
movq 0xb8(%rsp), %rsi
callq 0x28ea0
leaq 0x128(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
movq %r12, %rcx
movq 0x20(%rsp), %r8
callq 0x2b757
movq %r12, %rdi
callq 0x28e8c
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2cc4c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2cc71
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x8(%rsp), %rax
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x82cc
movq 0x8(%rsp), %rax
leaq 0x38(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movq (%rax,%r15), %rsi
movq 0x8(%rax,%r15), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x82cc
movq %r13, %r12
movq %r13, %rdi
movq 0xb0(%rsp), %rsi
callq 0x28ea0
leaq 0x108(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %r12, %rcx
movq 0x20(%rsp), %r8
callq 0x2b757
movq %r12, %rdi
callq 0x28e8c
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2cd11
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2cd2d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x53c0
cmpl $0x2, 0x128(%rsp)
jne 0x2cdb6
cmpl $0x2, 0x108(%rsp)
jne 0x2cdb6
movq 0x8(%rsp), %rax
leaq (%rax,%r14), %rsi
addq %rax, %r15
leaq 0xc8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0x2fa04
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x1b4ac
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x2cd91
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x2cdb6
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x110(%rsp), %rdi
callq 0x81e0
leaq 0x130(%rsp), %rdi
callq 0x81e0
movq 0xc0(%rsp), %rdx
movl %ebp, %r15d
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %ebp
cmpq %r15, %rcx
ja 0x2cb95
movq 0xa8(%rsp), %rcx
incl %ecx
movq 0x10(%rsp), %rax
subq 0x8(%rsp), %rax
sarq $0x5, %rax
decl %edx
movq %rcx, %r14
cmpq %rcx, %rax
ja 0x2cb69
movq (%rsp), %rbx
movq (%rbx), %r14
cmpq 0x8(%rbx), %r14
je 0x2ce70
movq (%rbx), %r15
cmpq 0x8(%rbx), %r15
je 0x2ce66
cmpq %r15, %r14
je 0x2ce58
movq %r14, %rdi
movq %r15, %rsi
callq 0x2c657
testb %al, %al
je 0x2ce58
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x302fe
movq %rax, %r15
jmp 0x2ce5c
addq $0x40, %r15
movq (%rsp), %rax
cmpq 0x8(%rax), %r15
jne 0x2ce33
addq $0x40, %r14
movq (%rsp), %rbx
jmp 0x2ce24
leaq 0x8(%rsp), %rdi
callq 0x81e0
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x2cf98
movq %rax, %r14
leaq 0xc8(%rsp), %rdi
callq 0x18268
jmp 0x2ceac
movq %rax, %r14
leaq 0x110(%rsp), %rdi
callq 0x81e0
jmp 0x2cf7c
jmp 0x2cf8b
movq %rax, %r14
jmp 0x2cf60
movq %rax, %r14
jmp 0x2cf13
movq %rax, %r14
leaq 0x178(%rsp), %rdi
callq 0x28e8c
jmp 0x2cef7
movq %rax, %r14
leaq 0x148(%rsp), %rdi
callq 0x28e8c
jmp 0x2cf44
movq %rax, %r14
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2cf13
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2cf8e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x53c0
jmp 0x2cf8e
jmp 0x2cf8b
movq %rax, %r14
jmp 0x2cf7c
movq %rax, %r14
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2cf60
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2cf7c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x130(%rsp), %rdi
callq 0x81e0
jmp 0x2cf8e
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x81e0
movq (%rsp), %rdi
callq 0x181e0
movq %r14, %rdi
callq 0x5670