// File: /workspace/github_cpp_makefile_star2_O1/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 0x3bc83
cmpq $0x0, 0x18(%rbx)
je 0x3bca1
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 0x30680
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 0x3bbfb
callq 0x2f6c0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x2ee10
movq %rbx, %rdi
movl $0x1, %esi
callq 0x31040
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x3bc42
movq 0x36224(%rip), %rcx     # 0x71e58
cmpb $0x0, (%rcx)
je 0x3bc3e
incl 0x8(%rax)
jmp 0x3bc42
lock
incl 0x8(%rax)
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x306f0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3bc5e
callq 0x2f370
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3bc6d
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 0x1f3b1(%rip), %rsi     # 0x5b048
movq %rax, %rdi
callq 0x2e800
jmp 0x3bcbd
movl $0x10, %edi
callq 0x2eae0
movq %rax, %r12
leaq 0x1f3b6(%rip), %rsi     # 0x5b06b
movq %rax, %rdi
callq 0x2e800
movq 0x36314(%rip), %rsi     # 0x71fd8
movq 0x360f5(%rip), %rdx     # 0x71dc0
movq %r12, %rdi
callq 0x308f0
jmp 0x3bcd5
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x2f150
jmp 0x3bd4e
movq %rdx, %r15
movq %rax, %r14
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3bd17
callq 0x2f370
jmp 0x3bd17
movq %rdx, %r15
movq %rax, %r14
movb $0x1, %bpl
jmp 0x3bd41
jmp 0x3bd09
movq %rdx, %r15
movq %rax, %r14
jmp 0x3bd4e
movq %rdx, %r15
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3bd4e
callq 0x2f370
jmp 0x3bd4e
movq %rdx, %r15
movq %rax, %r14
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3bd41
callq 0x2f6c0
testb %bpl, %bpl
je 0x3bd4e
movq %r12, %rdi
callq 0x2f6c0
cmpl $0x2, %r15d
jne 0x3bdbf
movq %r14, %rdi
callq 0x2e8b0
movq %rax, %r14
movq 0x360fa(%rip), %rdi     # 0x71e60
leaq 0x20310(%rip), %rsi     # 0x5c07d
movl $0x23, %edx
callq 0x2fb20
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 0x360be(%rip), %rdi     # 0x71e60
callq 0x2fb20
movq %rax, %rdi
callq 0x2eab0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3be08
callq 0x2f6c0
jmp 0x3be08
cmpl $0x1, %r15d
jne 0x3be39
movq %r14, %rdi
callq 0x2e8b0
movq %rax, %r14
movq 0x36089(%rip), %rdi     # 0x71e60
leaq 0x20284(%rip), %rsi     # 0x5c062
movl $0x1a, %edx
callq 0x2fb20
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x36068(%rip), %rdi     # 0x71e60
movq %rax, %rsi
callq 0x2f800
movq %rax, %rdi
callq 0x2eab0
callq 0x30750
jmp 0x3bc6d
jmp 0x3be14
movq %rax, %r14
jmp 0x3be2a
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3be2a
callq 0x2f6c0
callq 0x30750
jmp 0x3be39
movq %rax, %r14
callq 0x30750
movq %r14, %rdi
callq 0x30a20
movq %rax, %rdi
callq 0x32108
nop