// File: /workspace/github_cpp_makefile_star2_O2/xjrueda[P]fixprime/src/Protocol.cpp
// Function: fprime::Protocol::loadComponents()
void Protocol::loadComponents() {
        try {
            if (protocolSpec["Components"].empty()) {
                throw std::runtime_error("No components specified for current  protocol ");
            } else {

                vector<pair < fprime::Component::ComponentPtr, string>> componentDependencies;
                std::vector<string> names = protocolSpec["Components"].getMemberNames();
                // Process the components
                for (std::vector<string>::iterator itr = names.begin(); itr != names.end(); itr++) {
                    //gets the component json Value
                    Json::Value componentSpec = protocolSpec["Components"][*itr];

                    //gets the component's properties
                    string componentType = componentSpec["type"].asString();

                    string componentName = string(*itr);
                    // Creates the component pointer
                    fprime::Component::ComponentPtr component(new Component(componentName));

                    if (componentType == "BlockRepeating") {
                        try {
                            unsigned int controlfld = boost::lexical_cast<unsigned int>(componentSpec["controlField"].asString());
                            fprime::Field::FieldPtr fieldPtr = this->getField(controlfld);
                            component->setControlField(fieldPtr);
                            component->setType(componentType);
                        } catch (boost::bad_lexical_cast& e) {
                            throw runtime_error("Exception loading component " + string(*itr) + ", control field " + componentSpec["controlField"].asString() + " is not a valid field id.");
                        }

                    }

                    // Gets the current component's members array
                    Json::Value members = componentSpec["members"];
                    if (!members.isArray())
                        throw runtime_error("at Protocol.LoadComponents: component " + string(*itr) + " does not have a member array.");


                    // process the members
                    for (int i = 0; i < members.size(); i++) {

                        Json::Value fld = members[i];

                        if (fld.empty())
                            throw runtime_error("Empty member was specified for component " + string(*itr));

                        if (fld["memberId"].empty())
                            throw runtime_error("No memberId was specified in member list of component " + string(*itr));

                        string memberId = fld["memberId"].asString();

                        if (fld["isComponent"] == "Y") {
                            //Nested components
                            try {
                                fprime::Component::ComponentPtr nestedComponent = this->getComponent(memberId);
                                component->addNestedComponent(nestedComponent);
                            } catch (ComponentNotFound& e) {
                                pair<fprime::Component::ComponentPtr, string> depedency(component, memberId);
                                componentDependencies.push_back(depedency);
                            }
                        } else {
                            unsigned int field;

                            try {
                                field = boost::lexical_cast<unsigned int>(memberId);
                            } catch (boost::bad_lexical_cast& e) {
                                throw runtime_error("exception loading component " + string(*itr) + ", " + memberId + " is not a valid field id.");
                            }
                            //gets the field pointer from current protocol
                            fprime::Component::FieldT fieldt;
                            fieldt.field = this->getField(field);

                            if (fieldt.field->getDataType() == "NumInGroup") {
                                stringstream msg;
                                msg << "field " << fieldt.field->getId() << " " <<
                                        fieldt.field->getName() <<
                                        " is of type NumInGroup and cannot be assigned directly to components or messages. add the corresponding component.";
                                throw runtime_error(msg.str());

                            }
                            if (fld["isRequired"] == "Y")
                                fieldt.isRequired = true;
                            else
                                fieldt.isRequired = false;

                            // adds the field pointer to the current component
                            component->addField(fieldt);
                        }
                    }

                    this->addComponent(component);
                }
                std::vector<pair < fprime::Component::ComponentPtr, string>>::iterator depItr;
                // Stablishes all missing component dependencies
                for (depItr = componentDependencies.begin(); depItr != componentDependencies.end(); depItr++) {
                    fprime::Component::ComponentPtr dependent = depItr->first;
                    try {
                        dependent->addNestedComponent(this->getComponent(depItr->second));
                    } catch (ComponentNotFound& e) {
                        throw runtime_error("Component dependency " + depItr->second + " was not found.");
                    }
                }
            }
        } catch (exception& e) {
            throw std::runtime_error("at Protocol.LoadComponents: " + string(e.what()));
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp            # imm = 0x428
movq %rdi, 0x10(%rsp)
addq $0x28, %rdi
leaq 0x14f5e(%rip), %rsi     # 0x666c5
movq %rdi, 0x98(%rsp)
callq 0x3ed60
movq %rax, %rdi
callq 0x423b0
testb %al, %al
jne 0x51f82
xorps %xmm0, %xmm0
movaps %xmm0, 0xf0(%rsp)
andq $0x0, 0x100(%rsp)
leaq 0x14f26(%rip), %rsi     # 0x666c5
movq 0x98(%rsp), %rdi
callq 0x3ed60
leaq 0x108(%rsp), %rdi
movq %rax, %rsi
callq 0x3fd40
movq 0x108(%rsp), %rax
leaq 0x240(%rsp), %r12
leaq 0x120(%rsp), %rbx
leaq 0x58(%rsp), %r13
movq %rax, 0x8(%rsp)
cmpq 0x110(%rsp), %rax
je 0x51cb8
movq 0x98(%rsp), %rdi
leaq 0x14eca(%rip), %rsi     # 0x666c5
callq 0x3ed60
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x42770
leaq 0xc8(%rsp), %rdi
movq %rax, %rsi
callq 0x41bd0
leaq 0xc8(%rsp), %rdi
leaq 0x154c3(%rip), %rsi     # 0x66cef
callq 0x3ed60
leaq 0x188(%rsp), %rdi
movq %rax, %rsi
callq 0x424b0
leaq 0x1c0(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x412d0
movl $0x88, %edi
callq 0x405e0
movq %rax, %rbp
leaq 0x220(%rsp), %r15
movq %r15, %rdi
leaq 0x1c0(%rsp), %rsi
callq 0x412d0
movb $0x1, %r14b
movq %rbp, %rdi
movq %r15, %rsi
callq 0x425f0
xorl %r14d, %r14d
leaq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x42ab0
leaq 0x220(%rsp), %rdi
callq 0x3ef50
leaq 0x188(%rsp), %rdi
leaq 0x14d2e(%rip), %rsi     # 0x665e0
callq 0x42b50
testb %al, %al
je 0x5196c
leaq 0xc8(%rsp), %rdi
leaq 0x14e31(%rip), %rsi     # 0x666ff
callq 0x3ed60
movq %r12, %rdi
movq %rax, %rsi
callq 0x424b0
movq %r12, %rdi
callq 0x3eda0
movl %eax, %ebp
movq %r12, %rdi
callq 0x3ef50
movq %r12, %rdi
movq 0x10(%rsp), %rsi
movl %ebp, %edx
callq 0x42670
movq 0x20(%rsp), %r14
leaq 0x178(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x3f930
movq %r14, %rdi
movq %r15, %rsi
callq 0x42340
leaq 0x180(%rsp), %rdi
callq 0x40650
movq 0x20(%rsp), %r14
leaq 0x3e8(%rsp), %r15
movq %r15, %rdi
leaq 0x188(%rsp), %rsi
callq 0x412d0
movq %r14, %rdi
movq %r15, %rsi
callq 0x3e9a0
movq %r15, %rdi
callq 0x3ef50
leaq 0x248(%rsp), %rdi
callq 0x40650
leaq 0xc8(%rsp), %rdi
leaq 0x14dd9(%rip), %rsi     # 0x66754
callq 0x3ed60
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x41bd0
movq %r14, %rdi
callq 0x41df0
testb %al, %al
je 0x51f03
xorl %ebp, %ebp
leaq 0xa0(%rsp), %rdi
callq 0x41cf0
cmpl %eax, %ebp
jae 0x51c3d
leaq 0xa0(%rsp), %rdi
movl %ebp, %esi
callq 0x407c0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x41bd0
movq %rbx, %rdi
callq 0x423b0
testb %al, %al
jne 0x51d74
movq %rbx, %rdi
leaq 0x14dde(%rip), %rsi     # 0x667cc
callq 0x3ed60
movq %rax, %rdi
callq 0x423b0
testb %al, %al
jne 0x51dd7
movq %rbx, %rdi
leaq 0x14dbf(%rip), %rsi     # 0x667cc
callq 0x3ed60
movq %r13, %rdi
movq %rax, %rsi
callq 0x424b0
movq %rbx, %rdi
leaq 0x14de5(%rip), %rsi     # 0x6680c
callq 0x3ed60
movq %rax, %r14
movq %r12, %rdi
leaq 0x14118(%rip), %rsi     # 0x65b51
callq 0x41f20
movq %r14, %rdi
movq %r12, %rsi
callq 0x41240
movl %eax, %r14d
movq %r12, %rdi
callq 0x3f200
testb %r14b, %r14b
je 0x51ac1
leaq 0x408(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x412d0
movq %r12, %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
callq 0x3e700
movq %r15, %rdi
callq 0x3ef50
movq 0x20(%rsp), %r14
leaq 0x168(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x3ffc0
movq %r14, %rdi
movq %r15, %rsi
callq 0x3f5a0
leaq 0x170(%rsp), %rdi
callq 0x40650
leaq 0x248(%rsp), %rdi
jmp 0x51b9d
movq %r13, %rdi
callq 0x3eda0
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq %r12, %rdi
movq 0x10(%rsp), %rsi
movl %eax, %edx
callq 0x42670
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x42660
leaq 0x248(%rsp), %rdi
callq 0x40650
movq 0x30(%rsp), %rsi
movq %r12, %rdi
callq 0x40e10
movq %r12, %rdi
leaq 0x14d27(%rip), %rsi     # 0x66838
callq 0x42b50
movl %eax, %r14d
movq %r12, %rdi
callq 0x3ef50
testb %r14b, %r14b
jne 0x51e3a
movq %rbx, %rdi
leaq 0x14d82(%rip), %rsi     # 0x668b6
callq 0x3ed60
movq %rax, %r14
movq %r12, %rdi
leaq 0x1400b(%rip), %rsi     # 0x65b51
callq 0x41f20
movq %r14, %rdi
movq %r12, %rsi
callq 0x41240
movl %eax, %r14d
movq %r12, %rdi
callq 0x3f200
movb %r14b, 0x40(%rsp)
movq 0x20(%rsp), %r14
leaq 0x1a8(%rsp), %r15
movq %r15, %rdi
leaq 0x30(%rsp), %rsi
callq 0x40970
movq %r14, %rdi
movq %r15, %rsi
callq 0x411f0
leaq 0x1b0(%rsp), %rdi
callq 0x40650
leaq 0x38(%rsp), %rdi
callq 0x40650
movq %r13, %rdi
callq 0x3ef50
movq %rbx, %rdi
callq 0x3f200
incl %ebp
jmp 0x519a5
movq %rdx, %r14
movq %rax, 0x18(%rsp)
leaq 0x170(%rsp), %rdi
callq 0x40650
leaq 0x248(%rsp), %rdi
callq 0x40650
jmp 0x51bf7
movq %rdx, %r14
movq %rax, 0x18(%rsp)
movq %r15, %rdi
callq 0x3ef50
jmp 0x51bf7
movq %rdx, %r14
movq %rax, 0x18(%rsp)
cmpl $0x3, %r14d
jne 0x51fb7
movq 0x18(%rsp), %rdi
callq 0x3ed90
movq %r12, %rdi
leaq 0x20(%rsp), %rsi
movq %r13, %rdx
callq 0x42a20
leaq 0xf0(%rsp), %rdi
movq %r12, %rsi
callq 0x3ff40
movq %r12, %rdi
callq 0x3ea10
callq 0x41d30
jmp 0x51ba2
leaq 0x158(%rsp), %r14
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0x3ffc0
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x3fcc0
leaq 0x160(%rsp), %rdi
callq 0x40650
leaq 0xa0(%rsp), %rdi
callq 0x3f200
leaq 0x28(%rsp), %rdi
callq 0x40650
leaq 0x1c0(%rsp), %rdi
callq 0x3ef50
leaq 0x188(%rsp), %rdi
callq 0x3ef50
leaq 0xc8(%rsp), %rdi
callq 0x3f200
movq 0x8(%rsp), %rax
addq $0x20, %rax
jmp 0x517d9
movq 0xf0(%rsp), %r12
leaq 0xa0(%rsp), %r13
leaq 0x3c8(%rsp), %rbp
leaq 0x148(%rsp), %rbx
cmpq 0xf8(%rsp), %r12
je 0x51d48
movq %r13, %rdi
movq %r12, %rsi
callq 0x3ffc0
movq 0xa0(%rsp), %r14
leaq 0x10(%r12), %r15
movq %rbp, %rdi
movq %r15, %rsi
callq 0x412d0
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0x3e700
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3f5a0
leaq 0x150(%rsp), %rdi
callq 0x40650
movq %rbp, %rdi
callq 0x3ef50
leaq 0xa8(%rsp), %rdi
callq 0x40650
addq $0x30, %r12
jmp 0x51cd8
leaq 0x108(%rsp), %rdi
callq 0x3fb10
leaq 0xf0(%rsp), %rdi
callq 0x3f610
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x412d0
leaq 0x14a0d(%rip), %rsi     # 0x667a2
leaq 0x240(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x41f00
movb $0x1, %bpl
leaq 0x240(%rsp), %rsi
movq %rbx, %rdi
callq 0x41c90
xorl %ebp, %ebp
movq 0x2d215(%rip), %rsi     # 0x7efd8
movq 0x2cffe(%rip), %rdx     # 0x7edc8
movq %rbx, %rdi
callq 0x42050
jmp 0x5275e
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x412d0
leaq 0x149dd(%rip), %rsi     # 0x667d5
leaq 0x240(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x41f00
movb $0x1, %bpl
leaq 0x240(%rsp), %rsi
movq %rbx, %rdi
callq 0x41c90
xorl %ebp, %ebp
movq 0x2d1b2(%rip), %rsi     # 0x7efd8
movq 0x2cf9b(%rip), %rdx     # 0x7edc8
movq %rbx, %rdi
callq 0x42050
jmp 0x5275e
leaq 0x240(%rsp), %rdi
callq 0x3fad0
leaq 0x250(%rsp), %rdi
leaq 0x14851(%rip), %rsi     # 0x666a7
callq 0x405b0
movq %rax, %rbx
movq 0x30(%rsp), %rdi
callq 0x40430
movl %eax, %esi
movq %rbx, %rdi
callq 0x3f9e0
leaq 0x15746(%rip), %rsi     # 0x675bf
movq %rax, %rdi
callq 0x405b0
movq %rax, %rbx
movq 0x30(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x40800
leaq 0x78(%rsp), %rsi
movq %rbx, %rdi
callq 0x40130
leaq 0x1499c(%rip), %rsi     # 0x66843
movq %rax, %rdi
callq 0x405b0
leaq 0x78(%rsp), %rdi
callq 0x3ef50
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %rbx
leaq 0x258(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x41af0
movb $0x1, %bpl
leaq 0x78(%rsp), %rsi
movq %rbx, %rdi
callq 0x41c90
xorl %ebp, %ebp
movq 0x2d0e9(%rip), %rsi     # 0x7efd8
movq 0x2ced2(%rip), %rdx     # 0x7edc8
movq %rbx, %rdi
callq 0x42050
jmp 0x5275e
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x412d0
leaq 0x14838(%rip), %rsi     # 0x6675c
leaq 0x120(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x41f00
leaq 0x14846(%rip), %rdx     # 0x66783
leaq 0x240(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x3e640
movb $0x1, %bpl
leaq 0x240(%rsp), %rsi
movq %rbx, %rdi
callq 0x41c90
xorl %ebp, %ebp
movq 0x2d06a(%rip), %rsi     # 0x7efd8
movq 0x2ce53(%rip), %rdx     # 0x7edc8
movq %rbx, %rdi
callq 0x42050
jmp 0x5275e
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %rbx
leaq 0x1473c(%rip), %rsi     # 0x666d0
movq %rax, %rdi
callq 0x3ecd0
movq 0x2d035(%rip), %rsi     # 0x7efd8
movq 0x2ce1e(%rip), %rdx     # 0x7edc8
movq %rbx, %rdi
callq 0x42050
jmp 0x5275e
movq 0x18(%rsp), %r15
jmp 0x52653
jmp 0x5264d
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3ea10
jmp 0x51fe1
movq %rdx, %r14
movq %rax, %r15
callq 0x41d30
jmp 0x52653
movq %rdx, %r14
movq %rax, %r15
movq %rbx, %rdi
callq 0x3faf0
jmp 0x526d6
movq %rdx, %r14
movq %rax, %r15
leaq 0x78(%rsp), %rdi
callq 0x3ef50
testb %bpl, %bpl
jne 0x5201e
jmp 0x52439
movq %rdx, %r14
movq %rax, %r15
movq %rbx, %rdi
callq 0x3faf0
jmp 0x52439
movq %rdx, %r14
movq %rax, %r15
jmp 0x526c9
movq %rdx, %r14
movq %rax, %r15
jmp 0x526d6
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3ef50
jmp 0x5205f
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x120(%rsp), %rdi
callq 0x3ef50
jmp 0x52091
movq %rdx, %r14
movq %rax, %r15
leaq 0x78(%rsp), %rdi
callq 0x3ef50
jmp 0x52439
jmp 0x52433
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x58(%rsp), %rdi
callq 0x3ef50
testb %bpl, %bpl
jne 0x520d5
jmp 0x5267e
movq %rdx, %r14
movq %rax, %r15
leaq 0x180(%rsp), %rdi
callq 0x40650
jmp 0x520ed
movq %rdx, %r14
movq %rax, %r15
leaq 0x3e8(%rsp), %rdi
callq 0x3ef50
jmp 0x520ed
movq %rdx, %r14
movq %rax, %r15
movq %rbx, %rdi
callq 0x3faf0
jmp 0x5267e
jmp 0x5223f
movq %rdx, %r14
movq %rax, %r15
leaq 0x248(%rsp), %rdi
callq 0x40650
jmp 0x52245
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3ef50
jmp 0x52245
movq %rdx, %r14
movq %rax, %r15
leaq 0x160(%rsp), %rdi
callq 0x40650
jmp 0x5267e
movq %rdx, %r14
movq %rax, %rbx
jmp 0x5215f
movq %rdx, %r14
movq %rax, %rbx
jmp 0x52152
movq %rdx, %r14
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
callq 0x40650
leaq 0x3c8(%rsp), %rdi
callq 0x3ef50
cmpl $0x3, %r14d
jne 0x521da
movq %rbx, %rdi
callq 0x3ed90
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %r14
leaq 0x14742(%rip), %rsi     # 0x668c1
leaq 0xc8(%rsp), %rdi
movq %r15, %rdx
callq 0x40140
leaq 0x14741(%rip), %rdx     # 0x668d7
leaq 0x240(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x3e640
movb $0x1, %bl
leaq 0x240(%rsp), %rsi
movq %r14, %rdi
callq 0x41c90
xorl %ebx, %ebx
movq 0x2ce12(%rip), %rsi     # 0x7efd8
movq 0x2cbfb(%rip), %rdx     # 0x7edc8
movq %r14, %rdi
callq 0x42050
jmp 0x5275e
movq %rbx, %r15
jmp 0x52228
movq %rdx, %r15
movq %rax, %r12
leaq 0x240(%rsp), %rdi
callq 0x3ef50
jmp 0x521fc
movq %rdx, %r15
movq %rax, %r12
movb $0x1, %bl
leaq 0xc8(%rsp), %rdi
callq 0x3ef50
testb %bl, %bl
jne 0x52215
jmp 0x5221d
movq %rdx, %r15
movq %rax, %r12
movq %r14, %rdi
callq 0x3faf0
callq 0x41d30
movq %r15, %r14
movq %r12, %r15
leaq 0xa8(%rsp), %rdi
callq 0x40650
jmp 0x526bc
jmp 0x52663
movq %rdx, %r14
movq %rax, %r15
cmpl $0x2, %r14d
jne 0x5268b
movq %r15, %rdi
callq 0x3ed90
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x412d0
leaq 0x14494(%rip), %rsi     # 0x6670c
leaq 0x58(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x41f00
leaq 0x1449b(%rip), %rdx     # 0x66729
leaq 0x120(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x3e640
leaq 0x14458(%rip), %rsi     # 0x666ff
leaq 0xc8(%rsp), %rdi
callq 0x3ed60
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x424b0
leaq 0xa0(%rsp), %rdi
leaq 0x120(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x3ffe0
leaq 0x14458(%rip), %rdx     # 0x6673a
leaq 0x240(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x3e640
movb $0x1, %bpl
leaq 0x240(%rsp), %rsi
movq %rbx, %rdi
callq 0x41c90
xorl %ebp, %ebp
movq 0x2ccc5(%rip), %rsi     # 0x7efd8
movq 0x2caae(%rip), %rdx     # 0x7edc8
movq %rbx, %rdi
callq 0x42050
jmp 0x5275e
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3ef50
jmp 0x52345
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0xa0(%rsp), %rdi
callq 0x3ef50
jmp 0x5235d
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x30(%rsp), %rdi
callq 0x3ef50
jmp 0x52372
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x120(%rsp), %rdi
callq 0x3ef50
jmp 0x5238a
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x58(%rsp), %rdi
callq 0x3ef50
jmp 0x5239f
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x78(%rsp), %rdi
callq 0x3ef50
testb %bpl, %bpl
jne 0x523b6
jmp 0x523be
movq %rdx, %r14
movq %rax, %r15
movq %rbx, %rdi
callq 0x3faf0
callq 0x41d30
jmp 0x5268b
movq %rdx, %r14
movq %rax, %r15
jmp 0x526a2
movq %rdx, %r14
movq %rax, %r15
jmp 0x52695
movq %rdx, %r14
movq %rax, %r15
jmp 0x52410
movq %rdx, %r14
movq %rax, %r15
jmp 0x5268b
movq %rdx, %rbx
movq %rax, %r15
leaq 0x220(%rsp), %rdi
callq 0x3ef50
testb %r14b, %r14b
movq %rbx, %r14
je 0x52695
movq %rbp, %rdi
callq 0x403f0
jmp 0x52695
movq %rdx, %r14
movq %rax, %r15
jmp 0x526af
movq %rdx, %r14
movq %rax, %r15
jmp 0x526bc
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3fbc0
jmp 0x5262a
jmp 0x5244f
jmp 0x52464
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3ef50
jmp 0x5246d
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x58(%rsp), %rdi
callq 0x3ef50
testb %bpl, %bpl
jne 0x524b0
jmp 0x52671
jmp 0x52624
movq %rdx, %r14
movq %rax, %r15
leaq 0x1b0(%rsp), %rdi
callq 0x40650
jmp 0x5262a
jmp 0x52624
jmp 0x52624
jmp 0x524aa
movq %rdx, %r14
movq %rax, %r15
movq %rbx, %rdi
callq 0x3faf0
jmp 0x52671
movq %rdx, %r14
movq %rax, %r15
cmpl $0x2, %r14d
jne 0x52653
movq %r15, %rdi
callq 0x3ed90
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %rbx
leaq 0x1e0(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x412d0
leaq 0x1431f(%rip), %rsi     # 0x66818
leaq 0x200(%rsp), %rdi
leaq 0x1e0(%rsp), %rdx
callq 0x41f00
leaq 0x14320(%rip), %rdx     # 0x66835
leaq 0x30(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x3e640
leaq 0x78(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x417c0
leaq 0x141f8(%rip), %rdx     # 0x6673a
leaq 0x240(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x3e640
movb $0x1, %bpl
leaq 0x240(%rsp), %rsi
movq %rbx, %rdi
callq 0x41c90
xorl %ebp, %ebp
movq 0x2ca68(%rip), %rsi     # 0x7efd8
movq 0x2c851(%rip), %rdx     # 0x7edc8
movq %rbx, %rdi
callq 0x42050
jmp 0x5275e
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3ef50
jmp 0x525a2
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x78(%rsp), %rdi
callq 0x3ef50
jmp 0x525b7
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x30(%rsp), %rdi
callq 0x3ef50
jmp 0x525cc
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x200(%rsp), %rdi
callq 0x3ef50
jmp 0x525e4
movq %rdx, %r14
movq %rax, %r15
movb $0x1, %bpl
leaq 0x1e0(%rsp), %rdi
callq 0x3ef50
testb %bpl, %bpl
jne 0x525fe
jmp 0x52606
movq %rdx, %r14
movq %rax, %r15
movq %rbx, %rdi
callq 0x3faf0
callq 0x41d30
jmp 0x52653
jmp 0x52624
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3f200
jmp 0x5262a
movq %rdx, %r14
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x40650
jmp 0x52653
jmp 0x5264d
movq %rdx, %r14
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3f200
jmp 0x52653
movq %rdx, %r14
movq %rax, %r15
leaq 0x58(%rsp), %rdi
callq 0x3ef50
jmp 0x52671
jmp 0x52663
jmp 0x5266b
movq %rdx, %r14
movq %rax, %r15
jmp 0x5267e
movq %rdx, %r14
movq %rax, %r15
leaq 0x120(%rsp), %rdi
callq 0x3f200
leaq 0xa0(%rsp), %rdi
callq 0x3f200
leaq 0x28(%rsp), %rdi
callq 0x40650
leaq 0x1c0(%rsp), %rdi
callq 0x3ef50
leaq 0x188(%rsp), %rdi
callq 0x3ef50
leaq 0xc8(%rsp), %rdi
callq 0x3f200
leaq 0x108(%rsp), %rdi
callq 0x3fb10
leaq 0xf0(%rsp), %rdi
callq 0x3f610
cmpl $0x1, %r14d
jne 0x5279a
movq %r15, %rdi
callq 0x3ed90
movq %rax, %r14
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %rbx
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0xc8(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
movq %rax, %rsi
callq 0x3ed70
leaq 0x141c9(%rip), %rsi     # 0x668e7
leaq 0x240(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
callq 0x41f00
movb $0x1, %bpl
leaq 0x240(%rsp), %rsi
movq %rbx, %rdi
callq 0x41c90
xorl %ebp, %ebp
movq 0x2c889(%rip), %rsi     # 0x7efd8
movq 0x2c672(%rip), %rdx     # 0x7edc8
movq %rbx, %rdi
callq 0x42050
movq %rax, %r15
leaq 0x240(%rsp), %rdi
callq 0x3ef50
jmp 0x52776
movq %rax, %r15
movb $0x1, %bpl
leaq 0xc8(%rsp), %rdi
callq 0x3ef50
testb %bpl, %bpl
jne 0x5278d
jmp 0x52795
movq %rax, %r15
movq %rbx, %rdi
callq 0x3faf0
callq 0x41d30
movq %r15, %rdi
callq 0x42200
movq %rax, %rdi
callq 0x43915