// File: /workspace/github_cpp_makefile_star2_O1/kn-sumanth[P]tcpproxy_server/tcpproxy_server.cpp
// Function: tcp_proxy::bridge::handle_upstream_connect(boost::system::error_code const&)
void handle_upstream_connect(const boost::system::error_code& error)
      {
         if (!error)
         {
            // Setup async read from remote server (upstream)
            upstream_socket_.async_read_some(
                 boost::asio::buffer(upstream_data_,max_data_length),
                 boost::bind(&bridge::handle_upstream_read,
                      shared_from_this(),
                      boost::asio::placeholders::error,
                      boost::asio::placeholders::bytes_transferred));

            // Setup async read from client (downstream)
            downstream_socket_.async_read_some(
                 boost::asio::buffer(downstream_data_,max_data_length),
                 boost::bind(&bridge::handle_downstream_read,
                      shared_from_this(),
                      boost::asio::placeholders::error,
                      boost::asio::placeholders::bytes_transferred));
         }
         else
            close();
      }

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x4(%rsi)
je 0x114ed
movq %rbx, %rdi
addq $0x58, %rsp
popq %rbx
popq %r14
jmp 0x1302a
leaq 0x20b2(%rbx), %rax
movq %rax, (%rsp)
movq $0x2000, 0x8(%rsp)      # imm = 0x2000
leaq 0x48(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x116aa
leaq 0x18f0(%rip), %rsi      # 0x12e08
leaq -0x1aec(%rip), %r8      # 0xfa33
leaq 0x19f2(%rip), %r9       # 0x12f18
leaq 0x10(%rsp), %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x12d20
leaq 0x60(%rbx), %rax
leaq 0x30(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x10(%rsp), %rsi
movq %rsp, %rdx
xorl %ecx, %ecx
callq 0x130a2
movq 0x28(%rsp), %r14
testq %r14, %r14
je 0x1157a
lock
decl 0x8(%r14)
jne 0x1157a
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
lock
decl 0xc(%r14)
jne 0x1157a
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq 0x50(%rsp), %r14
testq %r14, %r14
je 0x115a4
lock
decl 0x8(%r14)
jne 0x115a4
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
lock
decl 0xc(%r14)
jne 0x115a4
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
leaq 0xb2(%rbx), %rax
movq %rax, (%rsp)
movq $0x2000, 0x8(%rsp)      # imm = 0x2000
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x116aa
leaq 0x194b(%rip), %rsi      # 0x12f1a
leaq -0x1ba3(%rip), %r8      # 0xfa33
leaq 0x193b(%rip), %r9       # 0x12f18
leaq 0x10(%rsp), %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x12d20
addq $0x10, %rbx
leaq 0x30(%rsp), %rdi
movq %rbx, (%rdi)
leaq 0x10(%rsp), %rsi
movq %rsp, %rdx
xorl %ecx, %ecx
callq 0x130a2
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
je 0x1162f
lock
decl 0x8(%rbx)
jne 0x1162f
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
lock
decl 0xc(%rbx)
jne 0x1162f
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq 0x40(%rsp), %rbx
testq %rbx, %rbx
je 0x11657
lock
decl 0x8(%rbx)
jne 0x11657
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
lock
decl 0xc(%rbx)
jne 0x11657
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
addq $0x58, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xd398
jmp 0x11680
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xd398
jmp 0x1168f
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xd398
jmp 0x11699
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xd398
movq %rbx, %rdi
callq 0x7520
movq %rax, %rdi
callq 0x883c
nop