// File: iPapatsoris[P]Maximum-Independent-Set/src/Mis.cpp
// Function: Mis::expandExcludedNodes(std::vector<unsigned int, std::allocator<unsigned int>>&)
void Mis::expandExcludedNodes(vector<uint32_t> &finalMis) {
    while (!hypernodeToInnernode.empty()) {
        auto hypernode = hypernodeToInnernode.begin();
        while (!hypernode->second.outerLevel) {
            hypernode++;
        }
        for (auto node : hypernode->second.nodes) {
            auto nestedHypernode = hypernodeToInnernode.find(node);
            if (nestedHypernode != hypernodeToInnernode.end()) {
                assert(!nestedHypernode->second.outerLevel);
                nestedHypernode->second.outerLevel = true;
            }
            mis.push_back(node);
        }
        for (auto node : hypernode->second.neighbors) {
            auto innerHypernode = hypernodeToInnernode.find(node);
            if (innerHypernode != hypernodeToInnernode.end()) {
                assert(!innerHypernode->second.outerLevel);
                innerHypernode->second.outerLevel = true;
            }
        }
        hypernodeToInnernode.erase(hypernode);
        expandIncludedNodes(mis, finalMis);
    }
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq 0x90(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rdi
addq $0x18, %rdi
callq 0x42c50
xorb $-0x1, %al
testb $0x1, %al
jne 0x4132b
jmp 0x41599
movq (%rsp), %rdi
addq $0x18, %rdi
callq 0x42c70
movq %rax, 0x80(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x42580
movb 0x38(%rax), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x41358
jmp 0x4136e
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
callq 0x42ca0
movq %rax, 0x78(%rsp)
jmp 0x41340
leaq 0x80(%rsp), %rdi
callq 0x42580
addq $0x8, %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rdi
callq 0x19b50
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rdi
callq 0x1a0e0
movq %rax, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x1a110
testb $0x1, %al
jne 0x413ba
jmp 0x41469
leaq 0x68(%rsp), %rdi
callq 0x1a150
movq (%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x5c(%rsp)
addq $0x18, %rdi
leaq 0x5c(%rsp), %rsi
callq 0x42500
movq (%rsp), %rdi
movq %rax, 0x50(%rsp)
addq $0x18, %rdi
callq 0x42550
movq %rax, 0x48(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x42530
testb $0x1, %al
jne 0x41408
jmp 0x4144c
leaq 0x50(%rsp), %rdi
callq 0x42580
movb 0x38(%rax), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x4141d
jmp 0x4141f
jmp 0x4143e
leaq 0x5b21(%rip), %rdi      # 0x46f47
leaq 0x5a1c(%rip), %rsi      # 0x46e49
movl $0x36, %edx
leaq 0x5b32(%rip), %rcx      # 0x46f6b
callq 0x2110
leaq 0x50(%rsp), %rdi
callq 0x42580
movb $0x1, 0x38(%rax)
movq (%rsp), %rdi
leaq 0x5c(%rsp), %rsi
callq 0x19070
leaq 0x68(%rsp), %rdi
callq 0x1a160
jmp 0x413a2
leaq 0x80(%rsp), %rdi
callq 0x42580
addq $0x8, %rax
addq $0x18, %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
callq 0x19b50
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x1a0e0
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1a110
testb $0x1, %al
jne 0x414b9
jmp 0x4155c
leaq 0x38(%rsp), %rdi
callq 0x1a150
movq (%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x2c(%rsp)
addq $0x18, %rdi
leaq 0x2c(%rsp), %rsi
callq 0x42500
movq (%rsp), %rdi
movq %rax, 0x20(%rsp)
addq $0x18, %rdi
callq 0x42550
movq %rax, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x42530
testb $0x1, %al
jne 0x41507
jmp 0x4154b
leaq 0x20(%rsp), %rdi
callq 0x42580
movb 0x38(%rax), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x4151c
jmp 0x4151e
jmp 0x4153d
leaq 0x5a78(%rip), %rdi      # 0x46f9d
leaq 0x591d(%rip), %rsi      # 0x46e49
movl $0x3e, %edx
leaq 0x5a33(%rip), %rcx      # 0x46f6b
callq 0x2110
leaq 0x20(%rsp), %rdi
callq 0x42580
movb $0x1, 0x38(%rax)
jmp 0x4154d
leaq 0x38(%rsp), %rdi
callq 0x1a160
jmp 0x414a1
movq (%rsp), %rdi
addq $0x18, %rdi
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rsi
callq 0x42cd0
movq (%rsp), %rsi
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rdx
movq %rsi, %rdi
callq 0x426b0
jmp 0x41313
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)