// File: /workspace/github_cpp_makefile_star2_O3/xjrueda[P]fixprime/src/FixDictionary.cpp
// Function: fprime::FixDictionary::loadProtocols(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void FixDictionary::loadProtocols(string fileName) {
        FixLoader loader;
        Json::Value protocolList = loader.parseFile(fileName);
        if (protocolList.empty()) {
            throw std::runtime_error("Protocol list could not be load");
        } else {
            // Process the protocol list
             std::vector<string> protocolNames = protocolList.getMemberNames();
             
            for (std::vector<string>::iterator itr = protocolNames.begin(); itr != protocolNames.end(); itr++) {
                string protocolSpecFile = protocolList[*itr]["dataFile"].asString();
                Json::Value protocolSpec = loader.parseFile(protocolSpecFile);
                
                if (protocolSpec.empty()) {
                    throw std::runtime_error("Protocol " +  *itr + " could not be load");
                } else {
                    try {
                    fprime::Protocol::ProtocolPtr protocol(new fprime::Protocol); 
                    protocol->setSpecification(protocolSpec);
                    protocol->setVersion(*itr);
                    protocols[*itr] = protocol;
                    protocol->load();
                    } catch (exception& e) {
                        throw std::runtime_error("Protocol " +  *itr + " could not be load. Reason: " + e.what());
                    }
                }
                
            }
            //////////////////////////////
            
        } 
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rsi, %rbx
movq %rdi, 0x30(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x2ef30
leaq 0xe0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0x2e8a0
leaq 0xf0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x2e7c0
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x39338
callq 0x2f6c0
leaq 0xf0(%rsp), %rdi
callq 0x30b30
testb %al, %al
jne 0x395fc
leaq 0x58(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x2f2c0
movq 0x58(%rsp), %rbx
cmpq 0x60(%rsp), %rbx
je 0x39526
addq $0x8, 0x30(%rsp)
leaq 0x90(%rsp), %r12
leaq 0x160(%rsp), %r13
leaq 0x138(%rsp), %rbp
leaq 0x70(%rsp), %r14
leaq 0xf0(%rsp), %rdi
movq %rbx, %rsi
callq 0x30dd0
movq %rax, %rdi
leaq 0x21ac1(%rip), %rsi     # 0x5ae6d
callq 0x2e870
leaq 0xb0(%rsp), %rdi
movq %rax, %rsi
callq 0x30be0
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2e8a0
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
movq %r12, %rdx
callq 0x2e7c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x39416
callq 0x2f6c0
movq %r13, %rdi
callq 0x30b30
testb %al, %al
jne 0x39559
movl $0x120, %edi            # imm = 0x120
callq 0x2f830
movq %rax, %r15
movq %rax, %rdi
callq 0x2ed80
movq %r15, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x2f5e0
movq 0x10(%rsp), %r15
movq %rbp, %rdi
movq %r13, %rsi
callq 0x30680
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2f7a0
movq %rbp, %rdi
callq 0x2ebb0
movq 0x10(%rsp), %r15
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x2e8a0
movq %r15, %rdi
movq %r14, %rsi
callq 0x307a0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x394b6
callq 0x2f6c0
movq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ea20
movq 0x10(%rsp), %rcx
movq %rcx, (%rax)
addq $0x8, %rax
movq %rax, %rdi
leaq 0x18(%rsp), %rsi
callq 0x30ce0
movq 0x10(%rsp), %rdi
callq 0x302e0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x394f5
callq 0x2f370
movq %r13, %rdi
callq 0x2ebb0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x39517
callq 0x2f6c0
addq $0x20, %rbx
cmpq 0x60(%rsp), %rbx
jne 0x39392
leaq 0x58(%rsp), %rdi
callq 0x2f170
leaq 0xf0(%rsp), %rdi
callq 0x2ebb0
leaq 0x8(%rsp), %rdi
callq 0x2eca0
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2eae0
movq %rax, %r15
leaq 0x21944(%rip), %rsi     # 0x5aeb1
leaq 0x38(%rsp), %rdi
movq %rbx, %rdx
callq 0x2f510
leaq 0x218d9(%rip), %rsi     # 0x5ae5a
leaq 0x38(%rsp), %rdi
callq 0x30e50
leaq 0x20(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x395ab
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
jmp 0x395b8
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
movq 0x8(%rax), %rdx
leaq 0x10(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r15, %rdi
callq 0x306f0
xorl %ebp, %ebp
movq 0x379f0(%rip), %rsi     # 0x70fd8
movq 0x377d1(%rip), %rdx     # 0x70dc0
movq %r15, %rdi
callq 0x308e0
jmp 0x39883
movl $0x10, %edi
callq 0x2eae0
movq %rax, %rbx
leaq 0x2183d(%rip), %rsi     # 0x5ae4d
movq %rax, %rdi
callq 0x2e800
movq 0x379b9(%rip), %rsi     # 0x70fd8
movq 0x3779a(%rip), %rdx     # 0x70dc0
movq %rbx, %rdi
callq 0x308e0
jmp 0x39883
movq %rax, %r14
movq %rbx, %rdi
callq 0x2f150
jmp 0x39923
jmp 0x3966b
movq %rax, %r14
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x39930
callq 0x2f6c0
jmp 0x39930
movq %rax, %r14
jmp 0x39930
movq %rax, %r14
jmp 0x39923
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x39685
callq 0x2f6c0
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39698
callq 0x2f6c0
testb %bpl, %bpl
jne 0x396bd
jmp 0x398f2
movq %rax, %r14
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x396bd
callq 0x2f6c0
jmp 0x396bd
movq %rax, %r14
movq %r15, %rdi
callq 0x2f150
jmp 0x398f2
movq %rax, %r14
jmp 0x398ff
movq %rax, %r14
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x398ff
callq 0x2f6c0
jmp 0x398ff
movq %rax, %r14
jmp 0x398f2
movq %rdx, %r12
movq %rax, %r14
movq %r15, %rdi
callq 0x2f6c0
jmp 0x39769
movq %rdx, %r12
movq %rax, %r14
leaq 0x138(%rsp), %rdi
callq 0x2ebb0
jmp 0x3975a
movq %rdx, %r12
movq %rax, %r14
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x3975a
callq 0x2f6c0
jmp 0x3975a
movq %rdx, %r12
movq %rax, %r14
jmp 0x39769
movq %rax, %r14
jmp 0x39919
movq %rdx, %r12
movq %rax, %r14
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x39769
callq 0x2f370
cmpl $0x1, %r12d
jne 0x398f2
movq %r14, %rdi
callq 0x2e8b0
movq %rax, %r14
movl $0x10, %edi
callq 0x2eae0
movq %rax, %r15
leaq 0x2171f(%rip), %rsi     # 0x5aeb1
leaq 0x118(%rsp), %rdi
movq %rbx, %rdx
callq 0x2f510
leaq 0x216cd(%rip), %rsi     # 0x5ae76
leaq 0x118(%rsp), %rdi
callq 0x30e50
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x397d9
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x397e6
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
movq 0x8(%rax), %rdx
leaq 0x38(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x30e50
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x39838
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x39845
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
movq 0x8(%rax), %rdx
leaq 0x10(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bl
movq %r15, %rdi
callq 0x306f0
xorl %ebx, %ebx
movq 0x37764(%rip), %rsi     # 0x70fd8
movq 0x37545(%rip), %rdx     # 0x70dc0
movq %r15, %rdi
callq 0x308e0
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x3989c
callq 0x2f6c0
jmp 0x3989c
movq %rax, %r14
movb $0x1, %bl
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x398ab
callq 0x2f6c0
leaq 0x128(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x398c1
callq 0x2f6c0
testb %bl, %bl
jne 0x398e5
jmp 0x398ed
movq %rax, %r14
leaq 0x128(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x398e5
callq 0x2f6c0
jmp 0x398e5
movq %rax, %r14
movq %r15, %rdi
callq 0x2f150
callq 0x30740
leaq 0x160(%rsp), %rdi
callq 0x2ebb0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x39919
callq 0x2f6c0
leaq 0x58(%rsp), %rdi
callq 0x2f170
leaq 0xf0(%rsp), %rdi
callq 0x2ebb0
leaq 0x8(%rsp), %rdi
callq 0x2eca0
movq %r14, %rdi
callq 0x30a10
movq %rax, %rdi
callq 0x320e8