// File: /workspace/github_cpp_makefile_star2_O3/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 0x10826
leaq 0x40(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10a46
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 0x10ebc
testb %al, %al
jne 0x1181f
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x10c00
movl $0x28, %edi
callq 0xe620
movq %rax, %rbx
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%rbx)
leaq 0x5d46f(%rip), %rax     # 0x6eb78
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x10, %rax
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x10(%rbx)
movq 0x20(%rsp), %rcx
movq %rcx, 0x20(%rbx)
movq %rax, (%rsp)
movq %rbx, 0x8(%rsp)
movq 0x5f84b(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x11743
movl $0x2, 0x8(%rbx)
jmp 0x11747
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 0x11764
callq 0x14590
testb %bpl, %bpl
je 0x11817
movq (%r15), %rax
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq *0x20(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x5f84c(%rip), %rdi     # 0x70fd8
callq 0xe730
movq %rax, %r15
leaq 0x3cb85(%rip), %rsi     # 0x4e320
movl $0x1c, %edx
movq %rax, %rdi
callq 0xe730
leaq 0x40(%rsp), %rsi
movq %r15, %rdi
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
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x117fa
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xe650
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 0x14590
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x1187f
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1187f
callq 0x14590
jmp 0x1187f
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11887
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xe650
jmp 0x11887
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1187f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xe650
movq %rbx, %rdi
callq 0x14590
movq %r14, %rdi
callq 0xeb40
nop