// File: iPapatsoris[P]Maximum-Independent-Set/src/Alg.hpp
// Function: Alg::branchRight(Alg::BranchingRule&, Alg::SearchNode*, Mis&) const
void branchRight(BranchingRule &branchingRule, SearchNode *searchNode, Mis &parentMis) const {
        //std::cout << "right\n";
        switch (branchingRule.type) {
            case BranchingRule::Type::MAX_DEGREE:
            case BranchingRule::Type::OPTNODE:
            case BranchingRule::Type::EFFECTIVE_NODE: {
                branchOnExtendedGranchildren(branchingRule, searchNode);
                break;
            }
            case BranchingRule::Type::SHORT_EDGE: {
                branchingRule.container.push_back(branchingRule.node1);
                branchingRule.container.push_back(branchingRule.node2);
                searchNode->graph.remove(branchingRule.container, searchNode->reductions->getReduceInfo());
                std::vector<uint32_t> neighbors1, neighbors2;
                searchNode->graph.gatherNeighbors(branchingRule.node1, neighbors1);
                searchNode->graph.gatherNeighbors(branchingRule.node2, neighbors2);
                std::unordered_map<uint32_t, uint32_t> &subsequentNodes = searchNode->mis.getSubsequentNodes();
                for (auto neighbor1: neighbors1) {
                    subsequentNodes.insert({neighbor1, branchingRule.node2});
                    searchNode->graph.addEdges(neighbor1, neighbors2);
                }
                for (auto neighbor2: neighbors2) {
                    subsequentNodes.insert({neighbor2, branchingRule.node1});
                    searchNode->graph.addEdges(neighbor2, neighbors1);
                }
                break;
            }
            case BranchingRule::Type::GOOD_FUNNEL: {
                searchNode->mis.getMis().push_back(branchingRule.node2);
                std::vector<uint32_t> neighbors;
                searchNode->graph.gatherNeighbors(branchingRule.node2, neighbors);
                neighbors.push_back(branchingRule.node2);
                searchNode->graph.remove(neighbors, searchNode->reductions->getReduceInfo());
                break;
            }
            case BranchingRule::Type::GOOD_PAIR: {
                searchNode->graph.remove(branchingRule.container, searchNode->reductions->getReduceInfo());
                break;
            }
            case BranchingRule::Type::FOUR_CYCLE: {
                std::vector<uint32_t> nonAdjacent;
                nonAdjacent.push_back(branchingRule.container[1]);
                nonAdjacent.push_back(branchingRule.container[3]);
                searchNode->graph.remove(nonAdjacent, searchNode->reductions->getReduceInfo());
                break;
            }
            case BranchingRule::Type::OPT4NODE: {
                std::vector<uint32_t> neighbors;
                searchNode->graph.gatherNeighbors(branchingRule.node1, neighbors);
                neighbors.push_back(branchingRule.node1);
                searchNode->mis.getMis().push_back(branchingRule.node1);
                searchNode->graph.remove(neighbors, searchNode->reductions->getReduceInfo());
                break;
            }
            case BranchingRule::Type::CUT: {
                //std::cout << "right cut" << std::endl;
                std::vector<uint32_t> *component1 = (searchNode->actualComponent1 ? &(searchNode->c1) : &(searchNode->c2));
                std::vector<uint32_t> *component2 = (searchNode->actualComponent1 ? &(searchNode->c2) : &(searchNode->c1));
                std::set<uint32_t> neighbors;
                searchNode->graph.gatherAllNeighbors(searchNode->cut, neighbors);
                component2->insert(component2->end(), searchNode->cut.begin(), searchNode->cut.end());
                searchNode->graph.remove(*component2, searchNode->reductions->getReduceInfo());
                for (auto c: searchNode->cut) {
                    component2->pop_back();
                }
                searchNode->graph.remove(neighbors, searchNode->reductions->getReduceInfo());
                std::unordered_set<uint32_t> nodesInComponent;
                nodesInComponent.insert(component1->begin(), component1->end());
                for (auto n: neighbors) {
                    nodesInComponent.erase(n);
                }
                searchNode->graph.rebuildFromNodes(nodesInComponent);
                searchNode->mis.getMis().clear();
                searchNode->mis.removeSubsequentNodes(nodesInComponent);
                parentMis.removeHypernodes(searchNode->mis.getHypernodeToInnerNode());
                break;
            }
            case BranchingRule::Type::CUT_RIGHT_1: {
                //std::cout << "right cut 1" << std::endl;
                std::vector<uint32_t> *component1 = (searchNode->actualComponent1 ? &(searchNode->c1) : &(searchNode->c2));
                std::vector<uint32_t> *component2 = (searchNode->actualComponent1 ? &(searchNode->c2) : &(searchNode->c1));
                searchNode->graph.remove(*component1, searchNode->reductions->getReduceInfo());
                std::unordered_set<uint32_t> nodesInComponent;
                nodesInComponent.insert(component2->begin(), component2->end());
                nodesInComponent.insert(searchNode->cut.begin(), searchNode->cut.end());
                searchNode->graph.rebuildFromNodes(nodesInComponent);
                searchNode->mis.getMis().clear();
                searchNode->mis.removeSubsequentNodes(nodesInComponent);
                parentMis.removeHypernodes(searchNode->mis.getHypernodeToInnerNode());
                break;
            }
            case BranchingRule::Type::CUT_RIGHT_2: {
                //std::cout << "right cut 2" << std::endl;
                std::vector<uint32_t> *component1 = (searchNode->actualComponent1 ? &(searchNode->c1) : &(searchNode->c2));
                std::vector<uint32_t> *component2 = (searchNode->actualComponent1 ? &(searchNode->c2) : &(searchNode->c1));
                component1->insert(component1->end(), searchNode->cut.begin(), searchNode->cut.end());
                searchNode->graph.remove(*component1, searchNode->reductions->getReduceInfo());
                for (auto c: searchNode->cut) {
                    component1->pop_back();
                }
                std::unordered_set<uint32_t> nodesInComponent;
                nodesInComponent.insert(component2->begin(), component2->end());
                searchNode->graph.rebuildFromNodes(nodesInComponent);
                searchNode->mis.getMis().clear();
                searchNode->mis.removeSubsequentNodes(nodesInComponent);
                parentMis.removeHypernodes(searchNode->mis.getHypernodeToInnerNode());
                break;
            }
            default:
                assert(false);
        }
        uint32_t dummy, maxDegree;
        uint32_t oldTheta = searchNode->theta;
        searchNode->graph.getMaxNodeDegree(dummy, maxDegree, oldTheta);
        if (maxDegree < oldTheta) {
            if (maxDegree >= 3) {
                searchNode->theta = maxDegree;
            } else {
                searchNode->theta = 3;
            }
        }
    }

// Assembly:
subq $0x4d8, %rsp            # imm = 0x4D8
movq %rdi, 0x4d0(%rsp)
movq %rsi, 0x4c8(%rsp)
movq %rdx, 0x4c0(%rsp)
movq %rcx, 0x4b8(%rsp)
movq 0x4d0(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x4c8(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x160(%rsp)
subq $0xa, %rax
ja 0x3cbea
movq 0x160(%rsp), %rax
leaq 0xb08e(%rip), %rcx      # 0x46a30
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x158(%rsp), %rdi
movq 0x4c8(%rsp), %rsi
movq 0x4c0(%rsp), %rdx
callq 0x3f430
jmp 0x3cc09
movq 0x4c8(%rsp), %rsi
movq %rsi, %rdi
addq $0x10, %rdi
addq $0x4, %rsi
callq 0x19070
movq 0x4c8(%rsp), %rsi
movq %rsi, %rdi
addq $0x10, %rdi
addq $0x8, %rsi
callq 0x19070
movq 0x4c0(%rsp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0x138(%rsp)
movq 0x4c8(%rsp), %rcx
addq $0x10, %rcx
movq %rcx, 0x140(%rsp)
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0x138(%rsp), %rdi
movq 0x140(%rsp), %rsi
movq %rax, %rdx
movb $0x0, 0x4b7(%rsp)
movb $0x0, 0x4b6(%rsp)
xorl %eax, %eax
movl %eax, %r8d
movq %r8, 0x150(%rsp)
leaq 0x4b7(%rsp), %rcx
leaq 0x4b6(%rsp), %r9
callq 0x189b0
leaq 0x498(%rsp), %rdi
movq %rdi, 0x148(%rsp)
callq 0x17e60
leaq 0x480(%rsp), %rdi
callq 0x17e60
movq 0x148(%rsp), %rdx
movq 0x150(%rsp), %rcx
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
movq 0x4c8(%rsp), %rsi
addq $0x4, %rsi
movl $0xffffffff, 0x47c(%rsp) # imm = 0xFFFFFFFF
leaq 0x47c(%rsp), %r8
callq 0x19c30
jmp 0x3badd
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
movq 0x4c8(%rsp), %rsi
addq $0x8, %rsi
movl $0xffffffff, 0x468(%rsp) # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %ecx
leaq 0x480(%rsp), %rdx
leaq 0x468(%rsp), %r8
callq 0x19c30
jmp 0x3bb1b
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x33420
movq %rax, 0x130(%rsp)
jmp 0x3bb36
movq 0x130(%rsp), %rax
movq %rax, 0x460(%rsp)
leaq 0x498(%rsp), %rax
movq %rax, 0x458(%rsp)
movq 0x458(%rsp), %rdi
callq 0x19b50
movq %rax, 0x450(%rsp)
movq 0x458(%rsp), %rdi
callq 0x1a0e0
movq %rax, 0x448(%rsp)
leaq 0x450(%rsp), %rdi
leaq 0x448(%rsp), %rsi
callq 0x1a110
testb $0x1, %al
jne 0x3bb9e
jmp 0x3bc94
leaq 0x450(%rsp), %rdi
callq 0x1a150
movl (%rax), %eax
movl %eax, 0x444(%rsp)
movq 0x460(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x4c8(%rsp), %rdx
addq $0x8, %rdx
leaq 0x43c(%rsp), %rdi
leaq 0x444(%rsp), %rsi
callq 0x1b1e0
jmp 0x3bbe7
movq 0x128(%rsp), %rdi
leaq 0x43c(%rsp), %rsi
callq 0x190e0
movb %dl, 0x11f(%rsp)
movq %rax, 0x120(%rsp)
jmp 0x3bc0d
movb 0x11f(%rsp), %al
movq 0x120(%rsp), %rcx
movq %rcx, 0x428(%rsp)
movb %al, 0x430(%rsp)
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
movl 0x444(%rsp), %esi
leaq 0x480(%rsp), %rdx
callq 0x9840
jmp 0x3bc4d
jmp 0x3bc4f
leaq 0x450(%rsp), %rdi
callq 0x1a160
jmp 0x3bb80
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x470(%rsp)
movl %eax, 0x46c(%rsp)
leaq 0x480(%rsp), %rdi
callq 0x18520
leaq 0x498(%rsp), %rdi
callq 0x18520
jmp 0x3cc8b
leaq 0x480(%rsp), %rax
movq %rax, 0x420(%rsp)
movq 0x420(%rsp), %rdi
callq 0x19b50
movq %rax, 0x418(%rsp)
movq 0x420(%rsp), %rdi
callq 0x1a0e0
movq %rax, 0x410(%rsp)
leaq 0x418(%rsp), %rdi
leaq 0x410(%rsp), %rsi
callq 0x1a110
testb $0x1, %al
jne 0x3bcec
jmp 0x3bdaf
leaq 0x418(%rsp), %rdi
callq 0x1a150
movl (%rax), %eax
movl %eax, 0x40c(%rsp)
movq 0x460(%rsp), %rax
movq %rax, 0x110(%rsp)
movq 0x4c8(%rsp), %rdx
addq $0x4, %rdx
leaq 0x404(%rsp), %rdi
leaq 0x40c(%rsp), %rsi
callq 0x1b1e0
jmp 0x3bd35
movq 0x110(%rsp), %rdi
leaq 0x404(%rsp), %rsi
callq 0x190e0
movb %dl, 0x107(%rsp)
movq %rax, 0x108(%rsp)
jmp 0x3bd5b
movb 0x107(%rsp), %al
movq 0x108(%rsp), %rcx
movq %rcx, 0x3f0(%rsp)
movb %al, 0x3f8(%rsp)
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
movl 0x40c(%rsp), %esi
leaq 0x498(%rsp), %rdx
callq 0x9840
jmp 0x3bd9b
jmp 0x3bd9d
leaq 0x418(%rsp), %rdi
callq 0x1a160
jmp 0x3bcce
leaq 0x480(%rsp), %rdi
callq 0x18520
leaq 0x498(%rsp), %rdi
callq 0x18520
jmp 0x3cc09
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x33930
movq %rax, %rdi
movq 0x4c8(%rsp), %rsi
addq $0x8, %rsi
callq 0x19070
leaq 0x3d8(%rsp), %rdi
movq %rdi, 0xf8(%rsp)
callq 0x17e60
movq 0xf8(%rsp), %rdx
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
movq 0x4c8(%rsp), %rsi
addq $0x8, %rsi
movl $0xffffffff, 0x3d4(%rsp) # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %ecx
leaq 0x3d4(%rsp), %r8
callq 0x19c30
jmp 0x3be46
movq 0x4c8(%rsp), %rsi
addq $0x8, %rsi
leaq 0x3d8(%rsp), %rdi
callq 0x19070
jmp 0x3be61
movq 0x4c0(%rsp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0xf0(%rsp)
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0xf0(%rsp), %rdi
movq %rax, %rdx
movb $0x0, 0x3d3(%rsp)
movb $0x0, 0x3d2(%rsp)
xorl %eax, %eax
movl %eax, %r8d
leaq 0x3d8(%rsp), %rsi
leaq 0x3d3(%rsp), %rcx
leaq 0x3d2(%rsp), %r9
callq 0x189b0
jmp 0x3bec3
leaq 0x3d8(%rsp), %rdi
callq 0x18520
jmp 0x3cc09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x470(%rsp)
movl %eax, 0x46c(%rsp)
leaq 0x3d8(%rsp), %rdi
callq 0x18520
jmp 0x3cc8b
movq 0x4c0(%rsp), %rax
addq $0x30, %rax
movq %rax, 0xe0(%rsp)
movq 0x4c8(%rsp), %rax
addq $0x10, %rax
movq %rax, 0xe8(%rsp)
movq 0x4c0(%rsp), %rax
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0xe0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
movq %rax, %rdx
movb $0x0, 0x3d1(%rsp)
movb $0x0, 0x3d0(%rsp)
leaq 0x3d1(%rsp), %rcx
xorl %eax, %eax
movl %eax, %r8d
leaq 0x3d0(%rsp), %r9
callq 0x189b0
jmp 0x3cc09
leaq 0x3b8(%rsp), %rdi
movq %rdi, 0xd8(%rsp)
callq 0x17e60
movq 0x4c8(%rsp), %rdi
addq $0x10, %rdi
movl $0x1, %esi
callq 0x18900
movq 0xd8(%rsp), %rdi
movq %rax, %rsi
callq 0x19070
jmp 0x3bfb6
movq 0x4c8(%rsp), %rdi
addq $0x10, %rdi
movl $0x3, %esi
callq 0x18900
movq %rax, %rsi
leaq 0x3b8(%rsp), %rdi
callq 0x19070
jmp 0x3bfde
movq 0x4c0(%rsp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0xd0(%rsp)
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0xd0(%rsp), %rdi
movq %rax, %rdx
movb $0x0, 0x3b7(%rsp)
movb $0x0, 0x3b6(%rsp)
xorl %eax, %eax
movl %eax, %r8d
leaq 0x3b8(%rsp), %rsi
leaq 0x3b7(%rsp), %rcx
leaq 0x3b6(%rsp), %r9
callq 0x189b0
jmp 0x3c040
leaq 0x3b8(%rsp), %rdi
callq 0x18520
jmp 0x3cc09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x470(%rsp)
movl %eax, 0x46c(%rsp)
leaq 0x3b8(%rsp), %rdi
callq 0x18520
jmp 0x3cc8b
leaq 0x398(%rsp), %rdi
movq %rdi, 0xc8(%rsp)
callq 0x17e60
movq 0xc8(%rsp), %rdx
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
movq 0x4c8(%rsp), %rsi
addq $0x4, %rsi
movl $0xffffffff, 0x394(%rsp) # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %ecx
leaq 0x394(%rsp), %r8
callq 0x19c30
jmp 0x3c0cb
movq 0x4c8(%rsp), %rsi
addq $0x4, %rsi
leaq 0x398(%rsp), %rdi
callq 0x19070
jmp 0x3c0e6
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x33930
movq %rax, %rdi
movq 0x4c8(%rsp), %rsi
addq $0x4, %rsi
callq 0x19070
jmp 0x3c10d
movq 0x4c0(%rsp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0xc0(%rsp)
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0xc0(%rsp), %rdi
movq %rax, %rdx
movb $0x0, 0x393(%rsp)
movb $0x0, 0x392(%rsp)
xorl %eax, %eax
movl %eax, %r8d
leaq 0x398(%rsp), %rsi
leaq 0x393(%rsp), %rcx
leaq 0x392(%rsp), %r9
callq 0x189b0
jmp 0x3c16f
leaq 0x398(%rsp), %rdi
callq 0x18520
jmp 0x3cc09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x470(%rsp)
movl %eax, 0x46c(%rsp)
leaq 0x398(%rsp), %rdi
callq 0x18520
jmp 0x3cc8b
movq 0x4c0(%rsp), %rax
testb $0x1, 0x198(%rax)
je 0x3c1d0
movq 0x4c0(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0xb8(%rsp)
jmp 0x3c1e6
movq 0x4c0(%rsp), %rax
addq $0x180, %rax            # imm = 0x180
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x388(%rsp)
movq 0x4c0(%rsp), %rax
testb $0x1, 0x198(%rax)
je 0x3c21f
movq 0x4c0(%rsp), %rax
addq $0x180, %rax            # imm = 0x180
movq %rax, 0xb0(%rsp)
jmp 0x3c235
movq 0x4c0(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x380(%rsp)
leaq 0x350(%rsp), %rdi
movq %rdi, 0xa8(%rsp)
callq 0x193a0
movq 0xa8(%rsp), %rdx
movq 0x4c0(%rsp), %rsi
movq %rsi, %rdi
addq $0x30, %rdi
addq $0x130, %rsi            # imm = 0x130
movl $0xffffffff, 0x34c(%rsp) # imm = 0xFFFFFFFF
leaq 0x34c(%rsp), %rcx
callq 0x405b0
jmp 0x3c292
movq 0x380(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0x1a0e0
movq %rax, 0x338(%rsp)
leaq 0x340(%rsp), %rdi
leaq 0x338(%rsp), %rsi
callq 0x1aa60
movq 0x4c0(%rsp), %rdi
addq $0x130, %rdi            # imm = 0x130
callq 0x19220
movq %rax, 0x330(%rsp)
movq 0x4c0(%rsp), %rdi
addq $0x130, %rdi            # imm = 0x130
callq 0x19250
movq 0x98(%rsp), %rdi
movq %rax, 0x328(%rsp)
movq 0x340(%rsp), %rsi
movq 0x330(%rsp), %rdx
movq 0x328(%rsp), %rcx
callq 0x3f830
movq %rax, 0xa0(%rsp)
jmp 0x3c32b
movq 0xa0(%rsp), %rax
movq %rax, 0x320(%rsp)
movq 0x4c0(%rsp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0x88(%rsp)
movq 0x380(%rsp), %rcx
movq %rcx, 0x90(%rsp)
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq %rax, %rdx
movb $0x0, 0x31f(%rsp)
movb $0x0, 0x31e(%rsp)
xorl %eax, %eax
movl %eax, %r8d
leaq 0x31f(%rsp), %rcx
leaq 0x31e(%rsp), %r9
callq 0x189b0
jmp 0x3c3ad
movq 0x4c0(%rsp), %rax
addq $0x130, %rax            # imm = 0x130
movq %rax, 0x310(%rsp)
movq 0x310(%rsp), %rdi
callq 0x19220
movq %rax, 0x308(%rsp)
movq 0x310(%rsp), %rdi
callq 0x19250
movq %rax, 0x300(%rsp)
leaq 0x308(%rsp), %rdi
leaq 0x300(%rsp), %rsi
callq 0x19280
testb $0x1, %al
jne 0x3c408
jmp 0x3c453
leaq 0x308(%rsp), %rdi
callq 0x192a0
movl (%rax), %eax
movl %eax, 0x2fc(%rsp)
movq 0x380(%rsp), %rdi
callq 0x1ad40
leaq 0x308(%rsp), %rdi
callq 0x192f0
jmp 0x3c3ed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x470(%rsp)
movl %eax, 0x46c(%rsp)
jmp 0x3c661
movq 0x4c0(%rsp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0x80(%rsp)
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0x80(%rsp), %rdi
movq %rax, %rdx
movb $0x0, 0x2fb(%rsp)
movb $0x0, 0x2fa(%rsp)
xorl %eax, %eax
movl %eax, %r8d
leaq 0x350(%rsp), %rsi
leaq 0x2fb(%rsp), %rcx
leaq 0x2fa(%rsp), %r9
callq 0x33050
jmp 0x3c4b5
leaq 0x2c0(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x1a020
movq 0x388(%rsp), %rdi
callq 0x19b50
movq %rax, 0x2b8(%rsp)
movq 0x388(%rsp), %rdi
callq 0x1a0e0
movq 0x78(%rsp), %rdi
movq %rax, 0x2b0(%rsp)
movq 0x2b8(%rsp), %rsi
movq 0x2b0(%rsp), %rdx
callq 0x3f8f0
jmp 0x3c50d
leaq 0x350(%rsp), %rax
movq %rax, 0x2a8(%rsp)
movq 0x2a8(%rsp), %rdi
callq 0x197f0
movq %rax, 0x2a0(%rsp)
movq 0x2a8(%rsp), %rdi
callq 0x19820
movq %rax, 0x298(%rsp)
leaq 0x2a0(%rsp), %rdi
leaq 0x298(%rsp), %rsi
callq 0x1d6a0
testb $0x1, %al
jne 0x3c562
jmp 0x3c5c6
leaq 0x2a0(%rsp), %rdi
callq 0x1a670
movl (%rax), %eax
movl %eax, 0x294(%rsp)
leaq 0x2c0(%rsp), %rdi
leaq 0x294(%rsp), %rsi
callq 0x1a890
jmp 0x3c58f
jmp 0x3c591
leaq 0x2a0(%rsp), %rdi
callq 0x1d6c0
jmp 0x3c547
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x470(%rsp)
movl %eax, 0x46c(%rsp)
leaq 0x2c0(%rsp), %rdi
callq 0x1a030
jmp 0x3c661
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
leaq 0x2c0(%rsp), %rsi
callq 0x3aa0
jmp 0x3c5e1
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x33930
movq %rax, %rdi
callq 0x191c0
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
leaq 0x2c0(%rsp), %rsi
callq 0x41ef0
jmp 0x3c615
movq 0x4b8(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x3f930
movq 0x70(%rsp), %rdi
movq %rax, %rsi
callq 0x41e20
jmp 0x3c642
leaq 0x2c0(%rsp), %rdi
callq 0x1a030
leaq 0x350(%rsp), %rdi
callq 0x19880
jmp 0x3cc09
leaq 0x350(%rsp), %rdi
callq 0x19880
jmp 0x3cc8b
movq 0x4c0(%rsp), %rax
testb $0x1, 0x198(%rax)
je 0x3c699
movq 0x4c0(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x68(%rsp)
jmp 0x3c6ac
movq 0x4c0(%rsp), %rax
addq $0x180, %rax            # imm = 0x180
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x288(%rsp)
movq 0x4c0(%rsp), %rax
testb $0x1, 0x198(%rax)
je 0x3c6df
movq 0x4c0(%rsp), %rax
addq $0x180, %rax            # imm = 0x180
movq %rax, 0x60(%rsp)
jmp 0x3c6f2
movq 0x4c0(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x280(%rsp)
movq 0x4c0(%rsp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0x48(%rsp)
movq 0x288(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %rax, %rdx
movb $0x0, 0x27f(%rsp)
movb $0x0, 0x27e(%rsp)
xorl %eax, %eax
movl %eax, %r8d
leaq 0x27f(%rsp), %rcx
leaq 0x27e(%rsp), %r9
callq 0x189b0
leaq 0x240(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x1a020
movq 0x280(%rsp), %rdi
callq 0x19b50
movq %rax, 0x238(%rsp)
movq 0x280(%rsp), %rdi
callq 0x1a0e0
movq 0x58(%rsp), %rdi
movq %rax, 0x230(%rsp)
movq 0x238(%rsp), %rsi
movq 0x230(%rsp), %rdx
callq 0x3f8f0
jmp 0x3c7bb
movq 0x4c0(%rsp), %rdi
addq $0x130, %rdi            # imm = 0x130
callq 0x19220
movq %rax, 0x228(%rsp)
movq 0x4c0(%rsp), %rdi
addq $0x130, %rdi            # imm = 0x130
callq 0x19250
movq %rax, 0x220(%rsp)
movq 0x228(%rsp), %rsi
movq 0x220(%rsp), %rdx
leaq 0x240(%rsp), %rdi
callq 0x1a490
jmp 0x3c812
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
leaq 0x240(%rsp), %rsi
callq 0x3aa0
jmp 0x3c82d
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x33930
movq %rax, %rdi
callq 0x191c0
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
leaq 0x240(%rsp), %rsi
callq 0x41ef0
jmp 0x3c861
movq 0x4b8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x3f930
movq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0x41e20
jmp 0x3c88e
leaq 0x240(%rsp), %rdi
callq 0x1a030
jmp 0x3cc09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x470(%rsp)
movl %eax, 0x46c(%rsp)
leaq 0x240(%rsp), %rdi
callq 0x1a030
jmp 0x3cc8b
movq 0x4c0(%rsp), %rax
testb $0x1, 0x198(%rax)
je 0x3c8ec
movq 0x4c0(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x38(%rsp)
jmp 0x3c8ff
movq 0x4c0(%rsp), %rax
addq $0x180, %rax            # imm = 0x180
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x218(%rsp)
movq 0x4c0(%rsp), %rax
testb $0x1, 0x198(%rax)
je 0x3c932
movq 0x4c0(%rsp), %rax
addq $0x180, %rax            # imm = 0x180
movq %rax, 0x30(%rsp)
jmp 0x3c945
movq 0x4c0(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x210(%rsp)
movq 0x218(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x218(%rsp), %rdi
callq 0x1a0e0
movq %rax, 0x200(%rsp)
leaq 0x208(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x1aa60
movq 0x4c0(%rsp), %rdi
addq $0x130, %rdi            # imm = 0x130
callq 0x19220
movq %rax, 0x1f8(%rsp)
movq 0x4c0(%rsp), %rdi
addq $0x130, %rdi            # imm = 0x130
callq 0x19250
movq 0x18(%rsp), %rdi
movq %rax, 0x1f0(%rsp)
movq 0x208(%rsp), %rsi
movq 0x1f8(%rsp), %rdx
movq 0x1f0(%rsp), %rcx
callq 0x3f830
movq %rax, 0x1e8(%rsp)
movq 0x4c0(%rsp), %rax
addq $0x30, %rax
movq %rax, 0x20(%rsp)
movq 0x218(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x4c0(%rsp), %rax
movq 0x108(%rax), %rdi
callq 0x3f420
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
movb $0x0, 0x1e7(%rsp)
movb $0x0, 0x1e6(%rsp)
leaq 0x1e7(%rsp), %rcx
xorl %eax, %eax
movl %eax, %r8d
leaq 0x1e6(%rsp), %r9
callq 0x189b0
movq 0x4c0(%rsp), %rax
addq $0x130, %rax            # imm = 0x130
movq %rax, 0x1d8(%rsp)
movq 0x1d8(%rsp), %rdi
callq 0x19220
movq %rax, 0x1d0(%rsp)
movq 0x1d8(%rsp), %rdi
callq 0x19250
movq %rax, 0x1c8(%rsp)
leaq 0x1d0(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x19280
testb $0x1, %al
jne 0x3caaf
jmp 0x3cae1
leaq 0x1d0(%rsp), %rdi
callq 0x192a0
movl (%rax), %eax
movl %eax, 0x1c4(%rsp)
movq 0x218(%rsp), %rdi
callq 0x1ad40
leaq 0x1d0(%rsp), %rdi
callq 0x192f0
jmp 0x3ca94
leaq 0x188(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x1a020
movq 0x210(%rsp), %rdi
callq 0x19b50
movq %rax, 0x180(%rsp)
movq 0x210(%rsp), %rdi
callq 0x1a0e0
movq 0x10(%rsp), %rdi
movq %rax, 0x178(%rsp)
movq 0x180(%rsp), %rsi
movq 0x178(%rsp), %rdx
callq 0x3f8f0
jmp 0x3cb39
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
leaq 0x188(%rsp), %rsi
callq 0x3aa0
jmp 0x3cb54
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x33930
movq %rax, %rdi
callq 0x191c0
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
leaq 0x188(%rsp), %rsi
callq 0x41ef0
jmp 0x3cb88
movq 0x4b8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x4c0(%rsp), %rdi
subq $-0x80, %rdi
callq 0x3f930
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x41e20
jmp 0x3cbb5
leaq 0x188(%rsp), %rdi
callq 0x1a030
jmp 0x3cc09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x470(%rsp)
movl %eax, 0x46c(%rsp)
leaq 0x188(%rsp), %rdi
callq 0x1a030
jmp 0x3cc8b
leaq 0x9595(%rip), %rdi      # 0x46186
leaq 0x9f15(%rip), %rsi      # 0x46b0d
movl $0x21b, %edx            # imm = 0x21B
leaq 0xa0cb(%rip), %rcx      # 0x46ccf
callq 0x2110
movq 0x4c0(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0x16c(%rsp)
movq 0x4c0(%rsp), %rdi
addq $0x30, %rdi
leaq 0x174(%rsp), %rsi
leaq 0x170(%rsp), %rdx
leaq 0x16c(%rsp), %rcx
callq 0x2aa0
movl 0x170(%rsp), %eax
cmpl 0x16c(%rsp), %eax
jae 0x3cc83
cmpl $0x3, 0x170(%rsp)
jb 0x3cc72
movl 0x170(%rsp), %ecx
movq 0x4c0(%rsp), %rax
movl %ecx, 0x4(%rax)
jmp 0x3cc81
movq 0x4c0(%rsp), %rax
movl $0x3, 0x4(%rax)
jmp 0x3cc83
addq $0x4d8, %rsp            # imm = 0x4D8
retq
movq 0x470(%rsp), %rdi
callq 0x2310
nopl (%rax,%rax)