// File: /workspace/github_cpp_makefile_star2_O2/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 0x3b366(%rip), %rax     # 0x7ef70
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
andq $0x0, 0x8(%rsi)
movq %rdi, 0x10(%rsi)
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0x3e760
movq %r15, %rdi
callq 0x421b0
movq 0x3b261(%rip), %rax     # 0x7ee98
leaq 0x50(%rsp), %rsi
movq %rax, (%rsi)
andq $0x0, 0x8(%rsi)
leaq 0x70(%rsp), %rdx
movq %r14, (%rdx)
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rcx
callq 0x41800
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x3fdd0
movq %rbx, 0x48(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x40650
leaq 0x10(%rsp), %rdi
callq 0x421b0
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x42a90
leaq 0x2e0(%r14), %r15
leaq 0x60(%rsp), %rbx
leaq 0x20(%rsp), %r12
leaq 0x50(%rsp), %r13
leaq 0x78(%rsp), %rbp
cmpb $0x1, 0x1db(%r14)
jne 0x43da1
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
andq $0x0, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rdi
movq %r12, %rsi
callq 0x427b0
movq %r15, %rdi
movq %r12, %rsi
callq 0x429c0
movq %rbx, 0x50(%rsp)
andq $0x0, 0x58(%rsp)
movq %rbx, %rax
movb $0x0, (%rax)
movq %r14, %rdi
movq %r13, %rsi
callq 0x3f6e0
cmpq $0x0, 0x28(%rsp)
setne %cl
andb %cl, %al
cmpb $0x1, %al
jne 0x43d3c
movq %rbp, %rdi
movq %r13, %rsi
callq 0x412d0
movq %r14, %rdi
movq %rbp, %rsi
callq 0x401b0
movq %rbp, %rdi
callq 0x3ef50
andq $0x0, 0x58(%rsp)
movq 0x50(%rsp), %rax
jmp 0x43cf4
movq %r13, %rdi
callq 0x3ef50
movq %r12, %rdi
callq 0x3ef50
jmp 0x43ca8
movq %rdx, 0x8(%rsp)
movq %rax, (%rsp)
jmp 0x43d80
movq %rdx, 0x8(%rsp)
movq %rax, (%rsp)
movq %rbp, %rdi
callq 0x3ef50
jmp 0x43d78
movq %rdx, 0x8(%rsp)
movq %rax, (%rsp)
movq %r13, %rdi
callq 0x3ef50
cmpl $0x1, 0x8(%rsp)
jne 0x43dd6
movq (%rsp), %rdi
callq 0x3ed90
movq %r14, %rdi
xorl %esi, %esi
callq 0x3f5d0
callq 0x41d30
jmp 0x43d44
leaq 0x10(%rsp), %rdi
callq 0x41950
leaq 0x18(%rsp), %rdi
callq 0x41950
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, (%rsp)
jmp 0x43dd6
movq %rax, (%rsp)
callq 0x41d30
leaq 0x20(%rsp), %rdi
callq 0x3ef50
jmp 0x43e04
movq %rax, %rdi
callq 0x43915
movq %rax, (%rsp)
leaq 0x38(%rsp), %rdi
callq 0x40650
jmp 0x43e0e
movq %rax, (%rsp)
jmp 0x43e0e
movq %rax, (%rsp)
leaq 0x10(%rsp), %rdi
callq 0x41950
leaq 0x18(%rsp), %rdi
callq 0x41950
movq (%rsp), %rdi
callq 0x42200
nop