// File: /workspace/github_cpp_makefile_star2_O3/xjrueda[P]fixprime/include/Session.h
// Function: fprime::Session::socketHandler(std::shared_ptr<SocketConnector>)
void socketHandler(SocketPtr socketPtr) {
            thread t1(std::bind(&Session::inboundProcessor, this));
            t1.detach();

            thread t2(std::bind(&Session::outboundProcessor, this, socketPtr));
            t2.detach();
            setSessionRunning(true);
            while (connected) {
                std::string data;
                try {
                    *socketPtr >> data;
                    addToBuffer(data);
                    string msg;
                    while (getRawFixMessage(msg) && data.length() > 0) {
                        pushInbound(msg);
                        msg.clear();
                    }
                } catch (SocketException&) {
                    // TODO log error
                    setConnected(false);

                }
            }
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x3ebe2(%rip), %rax     # 0x70f70
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
movq %rdi, 0x10(%rsi)
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x2e470
movq %r15, %rdi
callq 0x309e0
movq 0x3eada(%rip), %rax     # 0x70e98
movq %rax, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq (%rbx), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x323f7
movq 0x3ea6f(%rip), %rcx     # 0x70e58
cmpb $0x0, (%rcx)
je 0x323f3
incl 0x8(%rax)
jmp 0x323f7
lock
incl 0x8(%rax)
leaq 0x18(%rsp), %rsi
movq %r14, 0x20(%rsi)
leaq 0x40(%rsp), %rdi
callq 0x2f310
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x32419
callq 0x2f370
movq %rbx, 0x70(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x309e0
movq %r14, %rdi
movl $0x1, %esi
callq 0x31030
cmpb $0x1, 0x1db(%r14)
jne 0x325ad
leaq 0x2e0(%r14), %r15
leaq 0x60(%rsp), %rbx
leaq 0x88(%rsp), %r12
leaq 0x50(%rsp), %r13
leaq 0x78(%rsp), %rbp
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movb $0x0, 0x28(%rsp)
movq 0x70(%rsp), %rax
movq (%rax), %rdi
leaq 0x18(%rsp), %rsi
callq 0x30e10
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r15, %rdi
callq 0x2e660
movq %rbx, 0x50(%rsp)
movq $0x0, 0x58(%rsp)
movq %rbx, %rax
movb $0x0, (%rax)
movq %r14, %rdi
movq %r13, %rsi
callq 0x2eeb0
cmpq $0x0, 0x20(%rsp)
setne %cl
andb %cl, %al
cmpb $0x1, %al
jne 0x3250f
movq %r12, 0x78(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x2e8a0
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2f520
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x324ff
callq 0x2f6c0
movq $0x0, 0x58(%rsp)
movq 0x50(%rsp), %rax
jmp 0x324ae
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3251e
callq 0x2f6c0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x32532
callq 0x2f6c0
cmpb $0x0, 0x1db(%r14)
jne 0x32461
jmp 0x325ad
jmp 0x3258c
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x32569
movq %rax, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
callq 0x2f6c0
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rax
jmp 0x32569
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3258c
movq %rax, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
callq 0x2f6c0
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rax
cmpl $0x1, %edx
jne 0x325cf
movq %rax, %rdi
callq 0x2e8b0
movq %r14, %rdi
xorl %esi, %esi
callq 0x2ee10
callq 0x30740
jmp 0x3251e
cmpq $0x0, 0x40(%rsp)
jne 0x3262e
cmpq $0x0, 0x48(%rsp)
jne 0x3262e
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x325dc
movq %rax, %rbx
callq 0x30740
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x32616
callq 0x2f6c0
jmp 0x32616
movq %rax, %rdi
callq 0x320e8
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x3261e
callq 0x2f370
jmp 0x3261e
movq %rax, %rbx
jmp 0x3261e
movq %rax, %rbx
cmpq $0x0, 0x40(%rsp)
jne 0x3262e
cmpq $0x0, 0x48(%rsp)
jne 0x3262e
movq %rbx, %rdi
callq 0x30a10
callq 0x2e550
nop