// File: /workspace/github_cpp_makefile_star2_O3/xjrueda[P]fixprime/include/Initiator.h
// Function: fprime::Initiator::startInitiator()
void startInitiator() {
            try {
                if (protocolPtr == nullptr)
                    throw runtime_error("Protocol not defined for  session.");
                if (callbacksManager == nullptr)
                    throw runtime_error("CallbacksManager not defined for  session.");

                SocketPtr socketPtr(new SocketConnector(sessionSetup.getHost(), sessionSetup.getPort()));
                setConnected(true);
                setSessionRunning(true);
                socketHandler(socketPtr);
            } catch (SocketException& se) {
                //TODO: log error
                cout << "Error trying to connect to server: " << se.description() << endl;
            } catch (exception& e) {
                //TODO: log error
                cout << "Error starting initiator: " << e.what() << endl;
            }
            this->stop();
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x3bb6b
cmpq $0x0, 0x18(%rbx)
je 0x3bb89
movl $0x20, %edi
callq 0x2f830
movq %rax, %r12
leaq 0x28(%rbx), %r14
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x2e9b0
movb $0x1, %bpl
movq %r14, %rdi
callq 0x30670
leaq 0x30(%rsp), %rsi
movq %r12, %rdi
movl %eax, %edx
callq 0x2e670
leaq 0x8(%rsp), %rdi
movq %r12, -0x8(%rdi)
xorl %ebp, %ebp
movq %r12, %rsi
callq 0x2e790
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3bae3
callq 0x2f6c0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x2ee10
movq %rbx, %rdi
movl $0x1, %esi
callq 0x31030
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x3bb2a
movq 0x3533c(%rip), %rcx     # 0x70e58
cmpb $0x0, (%rcx)
je 0x3bb26
incl 0x8(%rax)
jmp 0x3bb2a
lock
incl 0x8(%rax)
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x306e0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3bb46
callq 0x2f370
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3bb55
callq 0x2f370
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2eae0
movq %rax, %r12
leaq 0x1e4c9(%rip), %rsi     # 0x5a048
movq %rax, %rdi
callq 0x2e800
jmp 0x3bba5
movl $0x10, %edi
callq 0x2eae0
movq %rax, %r12
leaq 0x1e4ce(%rip), %rsi     # 0x5a06b
movq %rax, %rdi
callq 0x2e800
movq 0x3542c(%rip), %rsi     # 0x70fd8
movq 0x3520d(%rip), %rdx     # 0x70dc0
movq %r12, %rdi
callq 0x308e0
jmp 0x3bbbd
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x2f150
jmp 0x3bc33
movq %rdx, %r15
movq %rax, %r14
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3bbfc
callq 0x2f370
jmp 0x3bbfc
movq %rdx, %r15
movq %rax, %r14
jmp 0x3bc2b
jmp 0x3bbee
movq %rdx, %r15
movq %rax, %r14
jmp 0x3bc33
movq %rdx, %r15
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3bc33
callq 0x2f370
jmp 0x3bc33
movq %rdx, %r15
movq %rax, %r14
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3bc26
callq 0x2f6c0
testb %bpl, %bpl
je 0x3bc33
movq %r12, %rdi
callq 0x2f6c0
cmpl $0x2, %r15d
jne 0x3bca4
movq %r14, %rdi
callq 0x2e8b0
movq %rax, %r14
movq 0x35215(%rip), %rdi     # 0x70e60
leaq 0x1f42b(%rip), %rsi     # 0x5b07d
movl $0x23, %edx
callq 0x2fb10
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x2e8a0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x351d9(%rip), %rdi     # 0x70e60
callq 0x2fb10
movq %rax, %rdi
callq 0x2eab0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3bced
callq 0x2f6c0
jmp 0x3bced
cmpl $0x1, %r15d
jne 0x3bd1e
movq %r14, %rdi
callq 0x2e8b0
movq %rax, %r14
movq 0x351a4(%rip), %rdi     # 0x70e60
leaq 0x1f39f(%rip), %rsi     # 0x5b062
movl $0x1a, %edx
callq 0x2fb10
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x35183(%rip), %rdi     # 0x70e60
movq %rax, %rsi
callq 0x2f800
movq %rax, %rdi
callq 0x2eab0
callq 0x30740
jmp 0x3bb55
jmp 0x3bcf9
movq %rax, %r14
jmp 0x3bd0f
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3bd0f
callq 0x2f6c0
callq 0x30740
jmp 0x3bd1e
movq %rax, %r14
callq 0x30740
movq %r14, %rdi
callq 0x30a10
movq %rax, %rdi
callq 0x320e8