// File: /workspace/github_cpp_makefile_star2_O2/xjrueda[P]fixprime/include/Session.h
// Function: fprime::Session::inboundProcessor()
void inboundProcessor() {
            try {
                setIbRunning(true);
                fprime::FixParser parser;
                parser.setProtocol(protocolPtr);
                parser.setSeparator('\001');
                while (ibpRunning) {
                    unique_lock<mutex> lock(inboundLock);
                    while (inboundQueue.empty() && ibpRunning) {
                        inboundCondition.wait(lock);
                    }

                    if (ibpRunning) {
                        string rawMsg = inboundQueue.front();
                        inboundQueue.pop();
                        lock.unlock();
                        try {

                            fprime::FixParser::FlatMessage flatMessage = parser.explode(rawMsg);
                            if (flatMessage.orderedMap[0].value != protocolPtr->getVersion())
                                throw runtime_error("Invalid Message");
                            fprime::Message fixMsg = parser.parseMessage(flatMessage);
                            string callbackKey = fixMsg.getHeader()->getChild(8)->getValue() + "-" + fixMsg.getHeader()->getChild(35)->getValue();
                            callbacksManager->executeCallback(callbackKey, fixMsg, this);

                        } catch (exception& e) {
                            cout << "error in inboundprocessor " + string(e.what()) << " in message " << rawMsg << endl;
                            //TODO log error
                        }
                    }
                }
            } catch (exception& ex) {
                // TODO: log error
                cout << "General exception in inboundprocessor " + string(ex.what()) << endl;
                this->stop();
            }
            cout << "Inbound processor stopped" << endl;
            cout.flush();
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq %rdi, %rbx
movb $0x1, 0x1d9(%rdi)
leaq 0x68(%rsp), %rdi
callq 0x3f070
leaq 0x8(%rbx), %rsi
leaq 0xa8(%rsp), %r14
movq %r14, %rdi
movq %rsi, 0x10(%rsp)
callq 0x42bb0
leaq 0x68(%rsp), %rdi
movq %r14, %rsi
callq 0x428c0
leaq 0xb0(%rsp), %rdi
callq 0x40650
leaq 0x68(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x42060
leaq 0x1e0(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x208(%rbx), %r12
leaq 0x300(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0xd8(%rsp), %rbp
leaq 0xe8(%rsp), %r13
cmpb $0x1, 0x1d9(%rbx)
jne 0x4445a
movq %rbp, %rdi
movq 0x20(%rsp), %rsi
callq 0x42490
movq 0x310(%rbx), %rsi
movb 0x1d9(%rbx), %al
cmpq %rsi, 0x330(%rbx)
jne 0x43fb1
testb $0x1, %al
je 0x441f7
movq %r12, %rdi
movq %rbp, %rsi
callq 0x3e930
jmp 0x43f86
testb $0x1, %al
je 0x441f7
leaq 0xb8(%rsp), %rdi
callq 0x412d0
movq 0x18(%rsp), %rdi
callq 0x40c60
movq %rbp, %rdi
callq 0x3e080
leaq 0x228(%rsp), %r14
movq %r14, %rdi
leaq 0xb8(%rsp), %rsi
callq 0x412d0
leaq 0x140(%rsp), %r15
movq %r15, %rdi
leaq 0x68(%rsp), %rsi
movq %r14, %rdx
callq 0x409c0
movq %r14, %rdi
callq 0x3ef50
andl $0x0, 0x88(%rsp)
movq %r15, %rdi
leaq 0x88(%rsp), %rsi
callq 0x3e670
movq %rax, %r14
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq %r13, %rdi
callq 0x40cb0
addq $0x8, %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x42430
movl %eax, %r14d
movq %r13, %rdi
callq 0x3ef50
testb %r14b, %r14b
jne 0x44204
leaq 0x2a0(%rsp), %r14
movq %r14, %rdi
leaq 0x140(%rsp), %rsi
callq 0x40340
movq %r13, %rdi
leaq 0x68(%rsp), %rsi
movq %r14, %rdx
callq 0x40090
movq %r14, %rdi
callq 0x3f920
leaq 0x48(%rsp), %rdi
movq %r13, %rsi
callq 0x3edb0
movq 0x48(%rsp), %rsi
leaq 0x58(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x40840
movq 0x58(%rsp), %rsi
leaq 0x1c8(%rsp), %r14
movq %r14, %rdi
callq 0x3e480
leaq 0x1e8(%rsp), %rdi
movq %r14, %rsi
leaq 0x20ffc(%rip), %rdx     # 0x650d0
callq 0x40fb0
leaq 0x28(%rsp), %rdi
movq %r13, %rsi
callq 0x3edb0
movq 0x28(%rsp), %rsi
leaq 0x38(%rsp), %rdi
pushq $0x23
popq %rdx
callq 0x40840
movq 0x38(%rsp), %rsi
leaq 0x208(%rsp), %r13
movq %r13, %rdi
callq 0x3e480
leaq 0x88(%rsp), %r15
movq %r15, %rdi
leaq 0x1e8(%rsp), %r14
movq %r14, %rsi
movq %r13, %rdx
callq 0x417c0
movq %r13, %rdi
callq 0x3ef50
leaq 0x40(%rsp), %rdi
callq 0x40650
leaq 0x30(%rsp), %rdi
callq 0x40650
movq %r14, %rdi
callq 0x3ef50
leaq 0x1c8(%rsp), %rdi
callq 0x3ef50
leaq 0x60(%rsp), %rdi
callq 0x40650
leaq 0x50(%rsp), %rdi
callq 0x40650
movq 0x18(%rbx), %r14
leaq 0x1a8(%rsp), %rdi
movq %r15, %rsi
callq 0x412d0
leaq 0x248(%rsp), %r15
movq %r15, %rdi
leaq 0xe8(%rsp), %r13
movq %r13, %rsi
callq 0x3f320
movq %r14, %rdi
leaq 0x1a8(%rsp), %r14
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x420b0
movq %r15, %rdi
callq 0x3f990
movq %r14, %rdi
callq 0x3ef50
leaq 0x88(%rsp), %rdi
callq 0x3ef50
movq %r13, %rdi
callq 0x3f990
leaq 0x140(%rsp), %rdi
callq 0x3f920
leaq 0xb8(%rsp), %rdi
callq 0x3ef50
movq %rbp, %rdi
callq 0x3eb60
jmp 0x43f6c
pushq $0x10
popq %rdi
callq 0x3f0e0
movq %rax, %r14
movq %rax, %rdi
leaq 0x20ea7(%rip), %rsi     # 0x650c0
callq 0x3ecd0
movq %r14, %rdi
movq 0x3adb0(%rip), %rsi     # 0x7efd8
movq 0x3ab99(%rip), %rdx     # 0x7edc8
callq 0x42050
jmp 0x4449c
movq %rdx, %r14
movq %rax, %r15
jmp 0x4424f
movq %rax, %r15
movq %r14, %rdi
movq %rdx, %r14
callq 0x3faf0
leaq 0xe8(%rsp), %r13
jmp 0x44337
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x3f990
jmp 0x44278
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x1a8(%rsp), %rdi
callq 0x3ef50
jmp 0x44290
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x3ef50
jmp 0x4431e
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
movq %r13, %rdi
callq 0x3ef50
jmp 0x442bb
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x40650
jmp 0x442d0
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x40650
jmp 0x442e5
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x1e8(%rsp), %rdi
callq 0x3ef50
jmp 0x442fd
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x1c8(%rsp), %rdi
callq 0x3ef50
leaq 0x60(%rsp), %rdi
callq 0x40650
leaq 0x50(%rsp), %rdi
callq 0x40650
leaq 0xe8(%rsp), %r13
movq %r13, %rdi
callq 0x3f990
movq 0x8(%rsp), %r15
movq (%rsp), %r14
leaq 0x140(%rsp), %rdi
callq 0x3f920
cmpl $0x1, %r14d
jne 0x444fa
movq %r15, %rdi
callq 0x3ed90
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq %r13, %rdi
movq %rax, %rsi
leaq 0x88(%rsp), %rdx
callq 0x3ed70
leaq 0x140(%rsp), %r14
movq %r14, %rdi
leaq 0x20d4e(%rip), %rsi     # 0x650d2
movq %r13, %rdx
callq 0x41f00
movq 0x3aac5(%rip), %rdi     # 0x7ee58
movq %r14, %rsi
callq 0x40130
movq %rax, %rdi
leaq 0x20d48(%rip), %rsi     # 0x650ed
callq 0x405b0
movq %rax, %rdi
leaq 0xb8(%rsp), %rsi
callq 0x40130
movq %rax, %rdi
callq 0x3f0a0
leaq 0x140(%rsp), %rdi
callq 0x3ef50
movq %r13, %rdi
callq 0x3ef50
callq 0x41d30
jmp 0x441ea
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
jmp 0x4430a
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
jmp 0x44314
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
jmp 0x4431e
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0x3f920
jmp 0x4432e
movq %rdx, (%rsp)
movq %rax, 0x8(%rsp)
jmp 0x4432e
jmp 0x44431
movq %rdx, %r14
movq %rax, %r15
jmp 0x44337
movq %rax, %r15
movq %r14, %rdi
movq %rdx, %r14
callq 0x3ef50
jmp 0x44344
movq %rdx, %r14
movq %rax, %r15
jmp 0x44344
leaq 0x68(%rsp), %rdi
callq 0x40880
movq 0x3a9ed(%rip), %rbx     # 0x7ee58
leaq 0x20caf(%rip), %rsi     # 0x65121
movq %rbx, %rdi
callq 0x405b0
movq %rax, %rdi
callq 0x3f0a0
movq %rbx, %rdi
callq 0x3f9f0
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x444f4
movq %rdx, %r14
movq %rax, %r15
leaq 0x140(%rsp), %rdi
callq 0x3ef50
jmp 0x444b9
movq %rdx, %r14
movq %rax, %r15
leaq 0xe8(%rsp), %rdi
callq 0x3ef50
jmp 0x444ce
movq %rdx, %r14
movq %rax, %r15
callq 0x41d30
jmp 0x444fa
jmp 0x4451e
movq %rdx, %r14
movq %rax, %r15
leaq 0xb0(%rsp), %rdi
callq 0x40650
jmp 0x44524
movq %rdx, %r14
movq %rax, %r15
jmp 0x4452e
movq %rdx, %r14
movq %rax, %r15
leaq 0xb8(%rsp), %rdi
callq 0x3ef50
jmp 0x4450f
movq %rdx, %r14
movq %rax, %r15
leaq 0xd8(%rsp), %rdi
callq 0x3eb60
jmp 0x44524
movq %rdx, %r14
movq %rax, %r15
leaq 0x68(%rsp), %rdi
callq 0x40880
cmpl $0x1, %r14d
jne 0x445f1
movq %r15, %rdi
callq 0x3ed90
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
leaq 0xe8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
movq %rax, %rsi
callq 0x3ed70
leaq 0x20b95(%rip), %rsi     # 0x650fa
leaq 0x140(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
callq 0x41f00
movq 0x3a8d7(%rip), %rdi     # 0x7ee58
leaq 0x140(%rsp), %rsi
callq 0x40130
movq %rax, %rdi
callq 0x3f0a0
leaq 0x140(%rsp), %rdi
callq 0x3ef50
leaq 0xe8(%rsp), %rdi
callq 0x3ef50
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
callq 0x41d30
jmp 0x44464
jmp 0x445ca
movq %rax, %r15
jmp 0x445df
movq %rax, %r15
jmp 0x445ec
movq %rax, %r15
leaq 0x140(%rsp), %rdi
callq 0x3ef50
leaq 0xe8(%rsp), %rdi
callq 0x3ef50
callq 0x41d30
movq %r15, %rdi
callq 0x42200
movq %rax, %rdi
callq 0x43915
nop