// File: /workspace/github_cpp_makefile_star2_O3/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 0x116b7
movq %rbx, %rdi
addq $0x58, %rsp
popq %rbx
popq %r14
jmp 0x130ea
leaq 0x20b2(%rbx), %rax
movq %rax, (%rsp)
movq $0x2000, 0x8(%rsp)      # imm = 0x2000
leaq 0x48(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x11874
leaq 0x17e6(%rip), %rsi      # 0x12ec8
leaq -0x1b2c(%rip), %r8      # 0xfbbd
leaq 0x18e8(%rip), %r9       # 0x12fd8
leaq 0x10(%rsp), %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x12de0
leaq 0x60(%rbx), %rax
leaq 0x30(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x10(%rsp), %rsi
movq %rsp, %rdx
xorl %ecx, %ecx
callq 0x13162
movq 0x28(%rsp), %r14
testq %r14, %r14
je 0x11744
lock
decl 0x8(%r14)
jne 0x11744
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
lock
decl 0xc(%r14)
jne 0x11744
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq 0x50(%rsp), %r14
testq %r14, %r14
je 0x1176e
lock
decl 0x8(%r14)
jne 0x1176e
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
lock
decl 0xc(%r14)
jne 0x1176e
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 0x11874
leaq 0x1841(%rip), %rsi      # 0x12fda
leaq -0x1be3(%rip), %r8      # 0xfbbd
leaq 0x1831(%rip), %r9       # 0x12fd8
leaq 0x10(%rsp), %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x12de0
addq $0x10, %rbx
leaq 0x30(%rsp), %rdi
movq %rbx, (%rdi)
leaq 0x10(%rsp), %rsi
movq %rsp, %rdx
xorl %ecx, %ecx
callq 0x13162
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
je 0x117f9
lock
decl 0x8(%rbx)
jne 0x117f9
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
lock
decl 0xc(%rbx)
jne 0x117f9
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq 0x40(%rsp), %rbx
testq %rbx, %rbx
je 0x11821
lock
decl 0x8(%rbx)
jne 0x11821
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
lock
decl 0xc(%rbx)
jne 0x11821
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 0xd4f4
jmp 0x1184a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xd4f4
jmp 0x11859
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xd4f4
jmp 0x11863
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xd4f4
movq %rbx, %rdi
callq 0x7520
movq %rax, %rdi
callq 0x882e
nop