// File: /workspace/github_cpp_makefile_star2_O1/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 0x3fbce(%rip), %rax     # 0x71f70
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 0x309f0
movq 0x3fac6(%rip), %rax     # 0x71e98
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 0x3240b
movq 0x3fa5b(%rip), %rcx     # 0x71e58
cmpb $0x0, (%rcx)
je 0x32407
incl 0x8(%rax)
jmp 0x3240b
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 0x3242d
callq 0x2f370
movq %rbx, 0x70(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x309f0
movq %r14, %rdi
movl $0x1, %esi
callq 0x31040
cmpb $0x1, 0x1db(%r14)
jne 0x325c3
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 0x30e20
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r15, %rdi
callq 0x2e660
movq %rbx, 0x50(%rsp)
movq $0x0, 0x58(%rsp)
movb $0x0, 0x60(%rsp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x2eeb0
cmpq $0x0, 0x20(%rsp)
setne %cl
andb %cl, %al
cmpb $0x1, %al
jne 0x32525
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 0x32512
callq 0x2f6c0
movq $0x0, 0x58(%rsp)
movq 0x50(%rsp), %rax
movb $0x0, (%rax)
jmp 0x324c4
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32534
callq 0x2f6c0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x32548
callq 0x2f6c0
cmpb $0x0, 0x1db(%r14)
jne 0x32475
jmp 0x325c3
jmp 0x325a2
movq 0x78(%rsp), %rdi
cmpq %r12, %rdi
je 0x3257f
movq %rax, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
callq 0x2f6c0
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rax
jmp 0x3257f
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x325a2
movq %rax, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
callq 0x2f6c0
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rax
cmpl $0x1, %edx
jne 0x325e5
movq %rax, %rdi
callq 0x2e8b0
movq %r14, %rdi
xorl %esi, %esi
callq 0x2ee10
callq 0x30750
jmp 0x32534
cmpq $0x0, 0x40(%rsp)
jne 0x32644
cmpq $0x0, 0x48(%rsp)
jne 0x32644
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x325f2
movq %rax, %rbx
callq 0x30750
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x3262c
callq 0x2f6c0
jmp 0x3262c
movq %rax, %rdi
callq 0x32108
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x32634
callq 0x2f370
jmp 0x32634
movq %rax, %rbx
jmp 0x32634
movq %rax, %rbx
cmpq $0x0, 0x40(%rsp)
jne 0x32644
cmpq $0x0, 0x48(%rsp)
jne 0x32644
movq %rbx, %rdi
callq 0x30a20
callq 0x2e550
nop