// File: /workspace/github_cpp_makefile_star2_O1/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 0x39458
callq 0x2f6c0
leaq 0xf0(%rsp), %rdi
callq 0x30b40
testb %al, %al
jne 0x3971e
leaq 0x58(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x2f2c0
movq 0x58(%rsp), %rbx
cmpq 0x60(%rsp), %rbx
je 0x39646
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 0x30de0
movq %rax, %rdi
leaq 0x229a1(%rip), %rsi     # 0x5be6d
callq 0x2e870
leaq 0xb0(%rsp), %rdi
movq %rax, %rsi
callq 0x30bf0
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 0x39536
callq 0x2f6c0
movq %r13, %rdi
callq 0x30b40
testb %al, %al
jne 0x39679
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 0x30690
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 0x307b0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x395d6
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 0x30cf0
movq 0x10(%rsp), %rdi
callq 0x302f0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x39615
callq 0x2f370
movq %r13, %rdi
callq 0x2ebb0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x39637
callq 0x2f6c0
addq $0x20, %rbx
cmpq 0x60(%rsp), %rbx
jne 0x394b2
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 0x22824(%rip), %rsi     # 0x5beb1
leaq 0x38(%rsp), %rdi
movq %rbx, %rdx
callq 0x2f510
leaq 0x227b9(%rip), %rsi     # 0x5be5a
leaq 0x38(%rsp), %rdi
callq 0x30e60
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x396ce
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x396db
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 0x30700
xorl %ebx, %ebx
movq 0x388ce(%rip), %rsi     # 0x71fd8
movq 0x386af(%rip), %rdx     # 0x71dc0
movq %r15, %rdi
callq 0x308f0
jmp 0x39996
movl $0x10, %edi
callq 0x2eae0
movq %rax, %rbx
leaq 0x2271b(%rip), %rsi     # 0x5be4d
movq %rax, %rdi
callq 0x2e800
movq 0x38897(%rip), %rsi     # 0x71fd8
movq 0x38678(%rip), %rdx     # 0x71dc0
movq %rbx, %rdi
callq 0x308f0
jmp 0x39996
movq %rax, %r14
movq %rbx, %rdi
callq 0x2f150
jmp 0x39a24
jmp 0x3978d
movq %rax, %r14
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x39a31
callq 0x2f6c0
jmp 0x39a31
movq %rax, %r14
jmp 0x39a31
movq %rax, %r14
jmp 0x39a24
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x397ae
callq 0x2f6c0
jmp 0x397ae
movq %rax, %r14
movb $0x1, %bl
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x397c8
callq 0x2f6c0
jmp 0x397c8
movq %rax, %r14
movb $0x1, %bl
testb %bl, %bl
je 0x399f3
movq %r15, %rdi
callq 0x2f150
jmp 0x399f3
movq %rax, %r14
jmp 0x39a00
movq %rax, %r14
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x39a00
callq 0x2f6c0
jmp 0x39a00
movq %rax, %r14
jmp 0x399f3
movq %rdx, %r12
movq %rax, %r14
movq %r15, %rdi
callq 0x2f6c0
jmp 0x3987c
movq %rdx, %r12
movq %rax, %r14
leaq 0x138(%rsp), %rdi
callq 0x2ebb0
jmp 0x3986d
movq %rdx, %r12
movq %rax, %r14
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x3986d
callq 0x2f6c0
jmp 0x3986d
movq %rdx, %r12
movq %rax, %r14
jmp 0x3987c
movq %rax, %r14
jmp 0x39a1a
movq %rdx, %r12
movq %rax, %r14
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3987c
callq 0x2f370
cmpl $0x1, %r12d
jne 0x399f3
movq %r14, %rdi
callq 0x2e8b0
movq %rax, %r14
movl $0x10, %edi
callq 0x2eae0
movq %rax, %r15
leaq 0x2260c(%rip), %rsi     # 0x5beb1
leaq 0x118(%rsp), %rdi
movq %rbx, %rdx
callq 0x2f510
leaq 0x225ba(%rip), %rsi     # 0x5be76
leaq 0x118(%rsp), %rdi
callq 0x30e60
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x398ec
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x398f9
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 0x30e60
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3994b
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x39958
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 0x30700
xorl %ebx, %ebx
movq 0x38651(%rip), %rsi     # 0x71fd8
movq 0x38432(%rip), %rdx     # 0x71dc0
movq %r15, %rdi
callq 0x308f0
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x399af
callq 0x2f6c0
jmp 0x399af
movq %rax, %r14
movb $0x1, %bl
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x399c5
callq 0x2f6c0
jmp 0x399c5
movq %rax, %r14
movb $0x1, %bl
leaq 0x128(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x399e2
callq 0x2f6c0
jmp 0x399e2
movq %rax, %r14
movb $0x1, %bl
testb %bl, %bl
je 0x399ee
movq %r15, %rdi
callq 0x2f150
callq 0x30750
leaq 0x160(%rsp), %rdi
callq 0x2ebb0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x39a1a
callq 0x2f6c0
leaq 0x58(%rsp), %rdi
callq 0x2f170
leaq 0xf0(%rsp), %rdi
callq 0x2ebb0
leaq 0x8(%rsp), %rdi
callq 0x2eca0
movq %r14, %rdi
callq 0x30a20
movq %rax, %rdi
callq 0x32108
nop