// File: /workspace/github_cpp_makefile_star2_O3/flightaware[P]beast-splitter/beast_output.cc
// Function: beast::SocketConnector::connection_established(boost::asio::ip::basic_endpoint<boost::asio::ip::tcp> const&)
void SocketConnector::connection_established(const tcp::endpoint &endpoint) {
        auto self(shared_from_this());

        std::cerr << host << ":" << port_or_service << ": connected to " << endpoint << " with settings " << initial_settings << std::endl;
        SocketOutput::pointer new_output = SocketOutput::create(service, std::move(socket), initial_settings);

        modes::FilterDistributor::handle h = distributor.add_client(std::bind(&SocketOutput::write, new_output, std::placeholders::_1), initial_settings.to_filter());

        new_output->set_settings_notifier([this, self, h](const Settings &newsettings) { distributor.update_client_filter(h, newsettings.to_filter()); });

        new_output->set_close_notifier([this, self, h] {
            distributor.remove_client(h);
            schedule_reconnect();
        });

        new_output->start();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x2b0b4
movq 0x128(%rbx), %rsi
movq 0x130(%rbx), %rdx
movq 0x4ab71(%rip), %rdi     # 0x70fd8
callq 0xe730
movq %rax, %r15
leaq 0x27ba4(%rip), %rsi     # 0x4e01a
movl $0x1, %edx
movq %rax, %rdi
callq 0xe730
movq 0x148(%rbx), %rsi
movq 0x150(%rbx), %rdx
movq %r15, %rdi
callq 0xe730
movq %rax, %r15
leaq 0x290be(%rip), %rsi     # 0x4f561
movl $0xf, %edx
movq %rax, %rdi
callq 0xe730
movq %r15, %rdi
movq %r14, %rsi
callq 0x21543
movq %rax, %r15
leaq 0x29a0b(%rip), %rsi     # 0x4fed0
movl $0xf, %edx
movq %rax, %rdi
callq 0xe730
leaq 0x170(%rbx), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x10ece
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xe5f0
movsbl %al, %esi
movq %r15, %rdi
callq 0xe040
movq %rax, %rdi
callq 0xe470
movq 0x18(%rbx), %rsi
leaq 0x68(%rbx), %rdx
movq %rsp, %rdi
movq %r14, %rcx
callq 0x299ec
movq 0x168(%rbx), %r15
movq (%rsp), %r13
movq 0x8(%rsp), %r12
testq %r12, %r12
je 0x2654f
movq 0x4aa43(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x26549
incl 0x8(%r12)
jmp 0x2654f
lock
incl 0x8(%r12)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movl $0x20, %edi
callq 0xe620
leaq -0x215d(%rip), %rcx     # 0x24410
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movq %r13, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %rax, 0x20(%rsp)
leaq 0x4a32(%rip), %rax      # 0x2afbe
movq %rax, 0x38(%rsp)
leaq 0x4a42(%rip), %rax      # 0x2afda
movq %rax, 0x30(%rsp)
leaq 0x81(%rsp), %rdi
movq %r14, %rsi
callq 0x10b5a
leaq 0x20(%rsp), %rsi
leaq 0x81(%rsp), %rdx
movq %r15, %rdi
callq 0xfcf4
movl %eax, %ebp
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x265dd
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq (%rsp), %r14
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r15
testq %r15, %r15
je 0x26607
movq 0x4a989(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x26602
incl 0x8(%r15)
jmp 0x26607
lock
incl 0x8(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movl $0x20, %edi
callq 0xe620
movq %rbx, (%rax)
movq %r12, 0x8(%rax)
movq %r15, 0x10(%rax)
movl %ebp, 0x18(%rax)
leaq 0x60(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x2c2f(%rip), %rax      # 0x2926a
movq %rax, 0x18(%rsi)
leaq 0x2c62(%rip), %rax      # 0x292a8
movq %rax, 0x10(%rsi)
addq $0xc0, %r14
movq %r14, %rdi
callq 0x2a938
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x26672
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq (%rsp), %r14
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r15
testq %r15, %r15
je 0x2669c
movq 0x4a8f4(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x26697
incl 0x8(%r15)
jmp 0x2669c
lock
incl 0x8(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movl $0x20, %edi
callq 0xe620
movq %rbx, (%rax)
movq %r12, 0x8(%rax)
movq %r15, 0x10(%rax)
movl %ebp, 0x18(%rax)
leaq 0x40(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x2c70(%rip), %rax      # 0x29340
movq %rax, 0x18(%rsi)
leaq 0x2c85(%rip), %rax      # 0x29360
movq %rax, 0x10(%rsi)
addq $0xe0, %r14
movq %r14, %rdi
callq 0x2a9fc
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0x26707
leaq 0x40(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq (%rsp), %rdi
callq 0x23f4c
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2671f
callq 0x14590
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2672e
callq 0x14590
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x267e4
jmp 0x267e4
jmp 0x267e4
movq %rax, %rbx
jmp 0x267d3
movq %rax, %rbx
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0x267d3
leaq 0x40(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x267d3
jmp 0x267e4
jmp 0x26796
movq %rax, %rbx
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x267d3
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x267d3
jmp 0x267e4
movq %rax, %rbx
testq %r15, %r15
je 0x267d3
movq %r15, %rdi
jmp 0x267ae
movq %rax, %rbx
testq %r12, %r12
je 0x267d3
movq %r12, %rdi
callq 0x14590
jmp 0x267d3
jmp 0x267ec
movq %rax, %rbx
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x267d3
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x267ef
callq 0x14590
jmp 0x267ef
movq %rax, %rdi
callq 0xf7cb
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x267fe
callq 0x14590
movq %rbx, %rdi
callq 0xeb40