// File: /workspace/github_cpp_makefile_star2_O1/flightaware[P]beast-splitter/beast_input.cc
// Function: beast::BeastInput::send_settings_message()
void BeastInput::send_settings_message() {
    // apply fixed settings, let the filter set anything else that's not fixed
    Settings settings = fixed_settings | Settings(filter);

    // some hardcoded things we expect
    settings.radarcape = (receiver_type == ReceiverType::RADARCAPE);
    settings.binary_format = true;

    // subclass-specific settings
    apply_connection_settings(settings);

    // did anything actually change?
    if (settings == current_settings)
        return;

    // send it
    auto message = std::make_shared<helpers::bytebuf>(settings.to_message());
    if (low_level_write(message)) {
        std::cerr << what() << ": configured with settings: " << settings << std::endl;
        current_settings = settings;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rdi, %r15
leaq 0x54(%rdi), %rbx
leaq 0xb4(%rdi), %rsi
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x11990
leaq 0x40(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x11b78
xorl %eax, %eax
cmpl $0x2, 0x50(%r15)
sete %al
leal -0x1(,%rax,2), %eax
movl %eax, (%r12)
movl $0x1, 0x4(%r12)
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
callq *0x40(%rax)
leaq 0x84(%r15), %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x11fea
testb %al, %al
jne 0x1295e
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x11d1e
movl $0x28, %edi
callq 0xf620
movq %rax, %rbx
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%rbx)
leaq 0x5e295(%rip), %rax     # 0x70ad8
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x10, %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%rbx)
movq 0x18(%rsp), %rcx
movq %rcx, 0x18(%rbx)
movq 0x20(%rsp), %rcx
movq %rcx, 0x20(%rbx)
movq %rax, (%rsp)
movq %rbx, 0x8(%rsp)
movq 0x60708(%rip), %rax     # 0x72f80
cmpb $0x0, (%rax)
je 0x12882
incl 0x8(%rbx)
jmp 0x12886
lock
incl 0x8(%rbx)
movq (%r15), %rax
movq %rsp, %rsi
movq %r15, %rdi
callq *0x38(%rax)
movl %eax, %ebp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x128a3
callq 0x1581a
testb %bpl, %bpl
je 0x12956
movq (%r15), %rax
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq *0x20(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x6070d(%rip), %rdi     # 0x72fd8
callq 0xf730
movq %rax, %r15
leaq 0x3d9a6(%rip), %rsi     # 0x50280
movl $0x1c, %edx
movq %rax, %rdi
callq 0xf730
leaq 0x40(%rsp), %rsi
movq %r15, %rdi
callq 0x11ffc
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xf5f0
movsbl %al, %esi
movq %r15, %rdi
callq 0xf040
movq %rax, %rdi
callq 0xf470
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12939
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xf650
movups 0x40(%rsp), %xmm0
movups 0x50(%rsp), %xmm1
movups 0x60(%rsp), %xmm2
movups %xmm2, 0x20(%r14)
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
movq %rbx, %rdi
callq 0x1581a
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x129be
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x129be
callq 0x1581a
jmp 0x129be
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x129c6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xf650
jmp 0x129c6
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x129be
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xf650
movq %rbx, %rdi
callq 0x1581a
movq %r14, %rdi
callq 0xfb40