LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::fetchPaobjects()
void Pa::fetchPaobjects()
{

    //pa_threaded_mainloop_lock(pa_ml);
    pa_operation *o;

    // get cards
    o = pa_context_get_card_info_list(pa_ctx, &Pa::ctx_cardlist_cb, this);
    wait_on_pa_operation(o);
    pa_operation_unref(o);

    // source list cb
    o = pa_context_get_source_info_list(pa_ctx, &Pa::ctx_sourcelist_cb, this);
    wait_on_pa_operation(o);
    pa_operation_unref(o);

    // Sink devices list cb
    o = pa_context_get_sink_info_list(pa_ctx, &Pa::ctx_sinklist_cb, this);
    wait_on_pa_operation(o);
    pa_operation_unref(o);

    // Sink input list (application) cb
    o = pa_context_get_sink_input_info_list(pa_ctx, &Pa::ctx_inputlist_cb, this);
    wait_on_pa_operation(o);
    pa_operation_unref(o);

    // source outputs list cb
    o = pa_context_get_source_output_info_list(
            pa_ctx,
            &Pa::ctx_sourceoutputlist_cb,
            this
        );
    wait_on_pa_operation(o);
    pa_operation_unref(o);

    // Get server info
    o = pa_context_get_server_info(pa_ctx, &Pa::ctx_serverinfo_cb, this);
    wait_on_pa_operation(o);
    pa_operation_unref(o);

    //pa_threaded_mainloop_unlock(pa_ml);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x150(%rdi), %rdi
leaq 0x101(%rip), %rsi       # 0x873c
movq %rbx, %rdx
callq 0x6b90
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x874a
movq %r14, %rdi
callq 0x6650
movq 0x150(%rbx), %rdi
leaq 0x113(%rip), %rsi       # 0x877a
movq %rbx, %rdx
callq 0x68e0
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x874a
movq %r14, %rdi
callq 0x6650
movq 0x150(%rbx), %rdi
leaq 0xf5(%rip), %rsi        # 0x8788
movq %rbx, %rdx
callq 0x6470
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x874a
movq %r14, %rdi
callq 0x6650
movq 0x150(%rbx), %rdi
leaq 0xd7(%rip), %rsi        # 0x8796
movq %rbx, %rdx
callq 0x6b00
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x874a
movq %r14, %rdi
callq 0x6650
movq 0x150(%rbx), %rdi
leaq 0xb9(%rip), %rsi        # 0x87a4
movq %rbx, %rdx
callq 0x6a20
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x874a
movq %r14, %rdi
callq 0x6650
movq 0x150(%rbx), %rdi
leaq 0x9b(%rip), %rsi        # 0x87b2
movq %rbx, %rdx
callq 0x6590
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x874a
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6650
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::remove_paobject(std::map<unsigned int, PaObject*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, PaObject*>>>*, unsigned int)
void Pa::remove_paobject(std::map<uint32_t, PaObject *> *objects,
                         uint32_t index)
{
    std::lock_guard<std::mutex> lk(inputMtx);

    for (auto i = objects->begin(); i != objects->end(); i++) {
        if (i->first == index) {
            delete i->second;
            i = objects->erase(i);
            return;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x100, %rbx            # imm = 0x100
movq %rbx, %rdi
callq 0x6870
testl %eax, %eax
jne 0x882c
movq 0x18(%r14), %r15
leaq 0x8(%r14), %r12
cmpq %r12, %r15
je 0x881c
cmpl %ebp, 0x20(%r15)
je 0x8802
movq %r15, %rdi
callq 0x6440
movq %rax, %r15
cmpq %r12, %rax
jne 0x87ea
jmp 0x881c
movq 0x28(%r15), %rdi
testq %rdi, %rdi
je 0x8811
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x9750
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x64b0
movl %eax, %edi
callq 0x6430
movq %rax, %r14
movq %rbx, %rdi
callq 0x64b0
movq %r14, %rdi
callq 0x6a80
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::set_defaults(pa_server_info const*)
void Pa::set_defaults(const pa_server_info *info)
{
    std::lock_guard<std::mutex> lk(inputMtx);

    for (auto &s : PA_SINKS) {
        if (!strcmp(s.second->pa_name, info->default_sink_name)) {
            s.second->is_default = true;
        } else {
            s.second->is_default = false;
        }
    }

    for (auto &s : PA_SOURCES) {
        if (!strcmp(s.second->pa_name, info->default_source_name)) {
            s.second->is_default = true;
        } else {
            s.second->is_default = false;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, (%rsp)
movq %rdi, %r14
leaq 0x100(%rdi), %rbx
movq %rbx, %rdi
callq 0x6870
testl %eax, %eax
jne 0x8958
movq 0x50(%r14), %r12
leaq 0x40(%r14), %rbp
cmpq %rbp, %r12
je 0x88fc
movq (%rsp), %rax
movq 0x30(%rax), %r13
movq 0x28(%r12), %r15
leaq 0x10f(%r15), %rdi
movq %r13, %rsi
callq 0x67f0
testl %eax, %eax
sete 0x20e(%r15)
movq %r12, %rdi
callq 0x6440
movq %rax, %r12
cmpq %rbp, %rax
jne 0x88ce
movq 0x80(%r14), %r12
addq $0x70, %r14
cmpq %r14, %r12
je 0x8942
movq (%rsp), %rax
movq 0x38(%rax), %r15
movq 0x28(%r12), %r13
leaq 0x10f(%r13), %rdi
movq %r15, %rsi
callq 0x67f0
testl %eax, %eax
sete 0x20e(%r13)
movq %r12, %rdi
callq 0x6440
movq %rax, %r12
cmpq %r14, %rax
jne 0x8914
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x64b0
movl %eax, %edi
callq 0x6430
nop
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::create_monitor_stream_for_paobject(PaObject*)
void Pa::create_monitor_stream_for_paobject(PaObject *po)
{
    if (po->monitor_stream != nullptr) {
        pa_stream_disconnect(po->monitor_stream);
        po->monitor_stream = nullptr;
    }

	po->monitor_stream = create_monitor_stream_for_source
		(po->monitor_index, po->type == pa_object_t::INPUT ? po->index : -1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x220(%rsi), %rdi
testq %rdi, %rdi
je 0x8d50
callq 0x6ae0
movq $0x0, 0x220(%rbx)
movl 0x21c(%rbx), %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpl $0x1, 0x8(%rbx)
jne 0x8d64
movl 0xc(%rbx), %edx
movq %r14, %rdi
callq 0x94c6
movq %rax, 0x220(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::update_sink(pa_sink_info const*)
void Pa::update_sink(const pa_sink_info *info)
{
    std::lock_guard<std::mutex> lk(inputMtx);

    PaSink *p;

    if (PA_SINKS.count(info->index) == 0) {
        p = new PaSink;
        PA_SINKS[info->index] = p;
        p->monitor_stream = nullptr;
    } else {
        p = reinterpret_cast<PaSink *>(PA_SINKS[info->index]);
    }

    p->index = info->index;
    p->channels = info->channel_map.channels;
    p->monitor_index = info->monitor_source;
    p->volume = (const pa_volume_t) pa_cvolume_avg(&info->volume);
    p->mute = info->mute;

    strncpy(p->name, info->description, sizeof(p->name) - 1);
    strncpy(p->pa_name, info->name, sizeof(p->pa_name) - 1);

    p->updatePorts(info->ports, info->n_ports);

    if (info->active_port != nullptr) {
        for (uint32_t i = 0; i < p->attributes.size(); i++) {
            if (strcmp(p->attributes[i]->name, info->active_port->name) == 0) {
                p->active_attribute = p->attributes[i];
                break;
            }
        }
    }

    notify_update();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
movq %rdi, %rbx
addq $0x100, %rdi            # imm = 0x100
movq %rdi, 0x8(%rsp)
callq 0x6870
testl %eax, %eax
jne 0x90db
leaq 0x38(%rbx), %rbp
leaq 0x8(%r12), %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x9630
testq %rax, %rax
je 0x8f9e
movq %rbp, %rdi
movq %r13, %rsi
callq 0x9678
movq (%rax), %r15
jmp 0x8fcc
movl $0x278, %edi            # imm = 0x278
callq 0x65b0
movq %rax, %r15
movq %rax, %rdi
callq 0x7a5c
movq %rbp, %rdi
movq %r13, %rsi
callq 0x9678
movq %r15, (%rax)
movq $0x0, 0x220(%r15)
movl 0x8(%r12), %eax
movl %eax, 0xc(%r15)
movzbl 0x24(%r12), %eax
movl %eax, 0x210(%r15)
movl 0x134(%r12), %eax
movl %eax, 0x21c(%r15)
leaq 0xac(%r12), %rdi
callq 0x6a00
movl %eax, 0x214(%r15)
cmpl $0x0, 0x130(%r12)
setne 0x218(%r15)
leaq 0x10(%r15), %rdi
movq 0x10(%r12), %rsi
movl $0xfe, %edx
callq 0x6320
leaq 0x10f(%r15), %rdi
movq (%r12), %rsi
movl $0xfe, %edx
callq 0x6320
movq 0x180(%r12), %rsi
movl 0x178(%r12), %edx
movq %r15, %rdi
callq 0x7ac0
movq %rbx, 0x10(%rsp)
movq 0x188(%r12), %rax
testq %rax, %rax
je 0x90b0
movq 0x238(%r15), %r13
movq 0x240(%r15), %rbp
subq %r13, %rbp
je 0x90b0
sarq $0x3, %rbp
movq (%rax), %r12
movl $0x1, %ebx
xorl %eax, %eax
movq (%r13,%rax,8), %r14
leaq 0x8(%r14), %rdi
movq %r12, %rsi
callq 0x67f0
testl %eax, %eax
je 0x90a9
movl %ebx, %eax
incl %ebx
cmpq %rax, %rbp
ja 0x9089
jmp 0x90b0
movq %r14, 0x230(%r15)
movq 0x10(%rsp), %rax
movq 0xf8(%rax), %rax
testq %rax, %rax
je 0x90c3
callq *%rax
movq 0x8(%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x64b0
movl %eax, %edi
callq 0x6430
movq %rax, %r14
movl $0x278, %esi            # imm = 0x278
movq %r15, %rdi
callq 0x65c0
jmp 0x90f7
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0x64b0
movq %r14, %rdi
callq 0x6a80
nop
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::update_input(pa_sink_input_info const*)
void Pa::update_input(const pa_sink_input_info *info)
{

    std::lock_guard<std::mutex> lk(inputMtx);

    PaInput *p;

    bool sink_changed = true;

    if (PA_INPUTS.count(info->index) == 0) {
        p = new PaInput;
        PA_INPUTS[info->index] = p;
        p->monitor_stream = nullptr;
    } else {
        p = reinterpret_cast<PaInput *>(PA_INPUTS[info->index]);

        if (PA_INPUTS.count(info->index)) {
            sink_changed = info->sink != p->sink;
        }
    }


    p->index = info->index;
    p->channels = info->channel_map.channels;
    p->volume = (const pa_volume_t) pa_cvolume_avg(&info->volume);
    p->mute = info->mute;
    p->sink = info->sink;
    snprintf(p->name, sizeof(p->name), "%s", info->name);

    const auto app_name = pa_proplist_gets(info->proplist, PA_PROP_APPLICATION_NAME);
    p->app_name = (app_name != NULL) ? app_name : "Module";

    if (sink_changed) {
        create_monitor_stream_for_paobject(p);
    }

    notify_update();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r14
leaq 0x100(%rdi), %rbx
movq %rbx, %rdi
callq 0x6870
testl %eax, %eax
jne 0x928a
leaq 0x8(%r14), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, (%rsp)
callq 0x9630
testq %rax, %rax
je 0x9179
movq %r13, %rdi
movq %r12, %rsi
callq 0x9678
movq (%rax), %r15
movq %r13, %rdi
movq %r12, %rsi
callq 0x9630
testq %rax, %rax
je 0x91a7
movl 0x18(%r12), %eax
cmpl 0x278(%r15), %eax
setne %bl
jmp 0x91a9
movl $0x2a0, %edi            # imm = 0x2A0
callq 0x65b0
movq %rax, %r15
movq %rax, %rdi
callq 0x7c9c
movq %r13, %rdi
movq %r12, %rsi
callq 0x9678
movq %r15, (%rax)
movq $0x0, 0x220(%r15)
movb $0x1, %bl
movl (%r12), %eax
movl %eax, 0xc(%r15)
movzbl 0x28(%r12), %eax
movl %eax, 0x210(%r15)
leaq 0xac(%r12), %rdi
callq 0x6a00
movl %eax, 0x214(%r15)
cmpl $0x0, 0x150(%r12)
setne 0x218(%r15)
movl 0x18(%r12), %eax
movl %eax, 0x278(%r15)
leaq 0x10(%r15), %rdi
movq 0x8(%r12), %rcx
leaq 0x96f6(%rip), %rdx      # 0x128f5
movl $0xff, %esi
xorl %eax, %eax
callq 0x6990
movq 0x158(%r12), %rdi
leaq 0x8046(%rip), %rsi      # 0x11260
callq 0x6510
testq %rax, %rax
leaq 0x811f(%rip), %r12      # 0x11348
cmovneq %rax, %r12
leaq 0x280(%r15), %r13
movq 0x288(%r15), %rbp
movq %r12, %rdi
callq 0x62b0
movq %r13, %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x68c0
testb %bl, %bl
je 0x9265
movq %r14, %rdi
movq %r15, %rsi
callq 0x8d2a
movq 0xf8(%r14), %rax
testq %rax, %rax
je 0x9273
callq *%rax
movq (%rsp), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x64b0
movl %eax, %edi
callq 0x6430
movq %rax, %r14
movl $0x2a0, %esi            # imm = 0x2A0
movq %r15, %rdi
callq 0x65c0
jmp 0x92a8
jmp 0x92a5
movq %rax, %r14
movq (%rsp), %rdi
callq 0x64b0
movq %r14, %rdi
callq 0x6a80
nop
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::read_callback(pa_stream*, unsigned long, void*)
void Pa::read_callback(pa_stream *s, size_t length, void *instance)
{
    Pa *pa = reinterpret_cast<Pa *>(instance);
    std::lock_guard<std::mutex> lk(pa->inputMtx);
    const void *data;
    float v;

    if (pa_stream_peek(s, &data, &length) < 0) {
        return;
    }

    if (!data) {
        /*  NULL data means either a hole or empty buffer.
            Only drop the stream when there is a hole (length > 0) */
        if (length) {
            pa_stream_drop(s);
        }

        return;
    }

    assert(length > 0);
    assert(length % sizeof(float) == 0);

    v = ((const float *) data)[length / sizeof(float) - 1];

    pa_stream_drop(s);

    if (v < 0) {
        v = 0;
    }

    if (v > 1) {
        v = 1;
    }

    uint32_t input_idx = pa_stream_get_monitor_stream(s);

    if (input_idx != PA_INVALID_INDEX && pa->PA_INPUTS.find(input_idx) != pa->PA_INPUTS.end()) {
        pa->PA_INPUTS[input_idx]->peak = v;
    } else {
        pa->updatePeakByDeviceId(pa_stream_get_device_index(s), v);
    }

    pa->notify_update();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rdi, %r15
movq %rsi, 0x10(%rsp)
leaq 0x100(%rdx), %rbx
movq %rbx, %rdi
callq 0x6870
testl %eax, %eax
jne 0x93f0
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x6370
testl %eax, %eax
js 0x93c1
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
testq %rax, %rax
je 0x93b4
andq $-0x4, %rcx
movss -0x4(%rax,%rcx), %xmm0
movss %xmm0, 0x8(%rsp)
movq %r15, %rdi
callq 0x6930
movq %r15, %rdi
callq 0x6280
xorps %xmm0, %xmm0
maxss 0x8(%rsp), %xmm0
movss 0x7f19(%rip), %xmm1     # 0x1125c
minss %xmm0, %xmm1
movss %xmm1, 0x8(%rsp)
movl %eax, 0xc(%rsp)
cmpl $-0x1, %eax
je 0x938c
movq 0x18(%r14), %rcx
testq %rcx, %rcx
je 0x938c
leaq 0x8(%r14), %rdi
leaq 0x10(%r14), %rsi
movq %rsi, %rdx
xorl %r8d, %r8d
cmpl %eax, 0x20(%rcx)
setb %r8b
cmovaeq %rcx, %rdx
movq 0x10(%rcx,%r8,8), %rcx
testq %rcx, %rcx
jne 0x936a
cmpq %rsi, %rdx
je 0x938c
cmpl 0x20(%rdx), %eax
jae 0x93d3
movq %r15, %rdi
callq 0x6110
movq %r14, %rdi
movl %eax, %esi
movss 0x8(%rsp), %xmm0
callq 0x940c
movq 0xf8(%r14), %rax
testq %rax, %rax
je 0x93c1
callq *%rax
jmp 0x93c1
testq %rcx, %rcx
je 0x93c1
movq %r15, %rdi
callq 0x6930
movq %rbx, %rdi
callq 0x64b0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xc(%rsp), %rsi
callq 0x9678
movq (%rax), %rax
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x228(%rax)
jmp 0x93a4
movl %eax, %edi
callq 0x6430
jmp 0x93f9
movq %rax, %r14
movq %rbx, %rdi
callq 0x64b0
movq %r14, %rdi
callq 0x6a80
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::updatePeakByDeviceId(unsigned int, float)
void Pa::updatePeakByDeviceId(uint32_t index, float peak)
{
    for (auto &s : PA_SINKS) {
        if (s.second->monitor_index == index) {
            s.second->peak = peak;
        }
    }

    for (auto &s : PA_SOURCES) {
        if (s.second->monitor_index == index) {
            s.second->peak = peak;
        }
    }

    for (auto &s : PA_SOURCE_OUTPUTS) {
        if (s.second->monitor_index == index) {
            s.second->peak = peak;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movss %xmm0, 0xc(%rsp)
movl %esi, %ebx
movq %rdi, %r14
movq 0x50(%rdi), %rax
leaq 0x40(%rdi), %r15
cmpq %r15, %rax
je 0x9451
movq 0x28(%rax), %rcx
cmpl %ebx, 0x21c(%rcx)
jne 0x9447
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x228(%rcx)
movq %rax, %rdi
callq 0x6440
jmp 0x9428
movq 0x80(%r14), %rax
leaq 0x70(%r14), %r15
cmpq %r15, %rax
je 0x9485
movq 0x28(%rax), %rcx
cmpl %ebx, 0x21c(%rcx)
jne 0x947b
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x228(%rcx)
movq %rax, %rdi
callq 0x6440
jmp 0x945c
movq 0xb0(%r14), %rax
addq $0xa0, %r14
cmpq %r14, %rax
je 0x94bc
movq 0x28(%rax), %rcx
cmpl %ebx, 0x21c(%rcx)
jne 0x94b2
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x228(%rcx)
movq %rax, %rdi
callq 0x6440
jmp 0x9493
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/pa.cpp
// Function: Pa::create_monitor_stream_for_source(unsigned int, unsigned int)
pa_stream *Pa::create_monitor_stream_for_source(uint32_t source_index,
        uint32_t stream_index = -1)
{
    pa_stream *s;
    char t[16];
    pa_buffer_attr attr;
    pa_sample_spec ss;
    pa_stream_flags_t flags;

    ss.channels = 1;
    ss.format = PA_SAMPLE_FLOAT32;
    ss.rate = 25;

    memset(&attr, 0, sizeof(attr));
    attr.fragsize = sizeof(float);
    attr.maxlength = (uint32_t) - 1;

    snprintf(t, sizeof(t), "%u", source_index);

    if (!(s = pa_stream_new(pa_ctx, "Peak detect", &ss, NULL))) {
        return NULL;
    }

    if (stream_index != (uint32_t) - 1) {
        pa_stream_set_monitor_stream(s, stream_index);
    }

    pa_stream_set_read_callback(s, &Pa::read_callback, this);

    flags = (pa_stream_flags_t)(PA_STREAM_DONT_MOVE | PA_STREAM_PEAK_DETECT |
                                PA_STREAM_ADJUST_LATENCY);

    if (pa_stream_connect_record(s, t, &attr, flags) < 0) {
        pa_stream_unref(s);
        return NULL;
    }

    return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movl %esi, %ecx
movq %rdi, %rbx
leaq 0x3c(%rsp), %r14
movb $0x1, 0x8(%r14)
movabsq $0x1900000005, %rax     # imm = 0x1900000005
movq %rax, (%r14)
movabsq $0x400000000, %rax      # imm = 0x400000000
movq %rax, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
leaq 0x7e4d(%rip), %rdx      # 0x11362
xorl %r15d, %r15d
leaq 0x20(%rsp), %rdi
movl $0x10, %esi
xorl %eax, %eax
callq 0x6990
movq 0x150(%rbx), %rdi
leaq 0x7e2e(%rip), %rsi      # 0x11365
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x64e0
testq %rax, %rax
je 0x9595
movq %rax, %r14
cmpl $-0x1, %ebp
je 0x9558
movq %r14, %rdi
movl %ebp, %esi
callq 0x6790
leaq -0x2a5(%rip), %rsi      # 0x92ba
movq %r14, %rdi
movq %rbx, %rdx
callq 0x6520
leaq 0x20(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
movl $0x2a00, %ecx           # imm = 0x2A00
callq 0x6310
testl %eax, %eax
js 0x958a
movq %r14, %r15
jmp 0x9595
movq %r14, %rdi
callq 0x6730
xorl %r15d, %r15d
movq %r15, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/config.cpp
// Function: Config::getKeycodeNameEvents[abi:cxx11]() const
const config_map Config::getKeycodeNameEvents() const
{
    config_map keycodes{};

    for (const auto& it : config) {
        const auto kn{getKeycodeName(it.first.c_str())};
        if (kn.empty()) continue;
        keycodes[kn] = it.second;
    }
    return keycodes;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
movq 0x18(%rsi), %r15
addq $0x8, %r14
cmpq %r14, %r15
je 0x9d1d
leaq 0x10(%rsp), %r13
movq %rsp, %r12
movq 0x20(%r15), %rsi
movq %r12, %rdi
callq 0x9990
cmpq $0x0, 0x8(%rsp)
je 0x9cf7
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa8ec
leaq 0x40(%r15), %rsi
movq %rax, %rdi
callq 0x6340
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x9d0d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x65c0
movq %r15, %rdi
callq 0x66a0
movq %rax, %r15
cmpq %r14, %rax
jne 0x9ccc
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
jmp 0x9d4c
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x9d4c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x65c0
movq %rbx, %rdi
callq 0xaef2
movq %r14, %rdi
callq 0x6a80
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/config.cpp
// Function: Config::getHomeDir()
const char *Config::getHomeDir()
{
    const char *homedir = getenv("HOME");
    if (homedir != nullptr) return homedir;
    passwd pwd = {nullptr}, *result{nullptr};
    size_t bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
    if (bufsize == static_cast<size_t>(-1)) bufsize = 16384;

    std::unique_ptr<char[]> buf = std::make_unique<char[]>(bufsize);
    getpwuid_r(getuid(), &pwd, buf.get(), bufsize, &result);
    if (result == nullptr) {
        fprintf(stderr, "Unable to find home-directory\n");
        exit(EXIT_FAILURE);
    }

    homedir = result->pw_dir;
    return homedir;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x7672(%rip), %rdi      # 0x113e0
callq 0x6700
movq %rax, %r14
testq %rax, %rax
jne 0x9dff
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0x8(%rsp), %r15
movq $0x0, (%r15)
movl $0x46, %edi
callq 0x6410
cmpq $-0x1, %rax
movl $0x4000, %r12d          # imm = 0x4000
cmovneq %rax, %r12
movq %r12, %rdi
callq 0x6040
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x6350
callq 0x6300
movl %eax, %edi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movq %r15, %r8
callq 0x6bb0
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x9e0e
movq 0x20(%rax), %r14
movq %rbx, %rdi
callq 0x6770
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x6d1d
movq %rax, %r14
movq %rbx, %rdi
callq 0x6770
movq %r14, %rdi
callq 0x6a80
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/config.cpp
// Function: Config::getConfigFile(std::optional<std::filesystem::__cxx11::path>&)
bool Config::getConfigFile(std::optional<fs::path>& conf)
{
    if (!conf.has_value())
    {
        if (getDefaultConfigFile()) return true;
        return false;
    }

    std::error_code ec{};
    const auto config_file{conf.value()};
    if (!fs::exists(config_file, ec))
    {
        fprintf(stderr, "Unable to find config file '%s'.\n", config_file.c_str());
        return false;
    }

    full_path = fs::absolute(config_file, ec);
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x28(%rsi)
je 0xa1d6
movq %rsi, %r15
movq %rsp, %r12
movl $0x0, (%r12)
callq 0x6390
movq %rax, %r14
movq %rax, 0x8(%r12)
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0xaaa8
movq %r13, %rdi
movq %r12, %rsi
callq 0x67e0
andq $0xff, %rax
je 0xa1eb
movl $0x0, (%rsp)
movq %r14, 0x8(%rsp)
cmpl $0xff, %eax
je 0xa1eb
leaq 0x38(%rsp), %r14
leaq 0x10(%rsp), %rsi
movq %rsp, %rdx
movq %r14, %rdi
callq 0x64a0
leaq 0x30(%rbx), %rdi
cmpq %rdi, %r14
je 0xa1b0
leaq 0x38(%rsp), %rsi
movq %rbx, %rdx
callq 0x6dc4
leaq 0x38(%rsp), %rdi
callq 0x7324
movb $0x1, %bl
leaq 0x10(%rsp), %rdi
callq 0x7324
movl %ebx, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rbx, %rdi
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x9e26
leaq 0x10(%rsp), %rdi
callq 0x6e05
xorl %ebx, %ebx
jmp 0xa1bc
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7324
movq %rbx, %rdi
callq 0x6a80
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/ui/ui.cpp
// Function: Ui::switchTab(int)
void Ui::switchTab(int index)
{
    if (disconnect) {
        return;
    }

    delete current_tab;

    tab_index = index;

    switch (index) {
        default:
        case TAB_PLAYBACK:
            tab_index = TAB_PLAYBACK;
            current_tab = new Playback();
            break;

        case TAB_RECORDING:
            current_tab = new Recording();
            break;

        case TAB_OUTPUT:
            current_tab = new Output();
            break;

        case TAB_INPUT:
            current_tab = new Input();
            break;

        case -1:
        case TAB_CONFIGURATION:
            tab_index = TAB_CONFIGURATION;
            current_tab = new Configuration();
            break;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, 0x105(%rdi)
jne 0xc7b7
movl %esi, %r14d
movq %rdi, %rbx
movq 0x138(%rdi), %rdi
testq %rdi, %rdi
je 0xc70b
movq (%rdi), %rax
callq *0x8(%rax)
movl %r14d, 0x130(%rbx)
incl %r14d
cmpl $0x5, %r14d
ja 0xc74c
leaq 0x5f4a(%rip), %rax      # 0x1266c
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x4, 0x130(%rbx)
movl $0x28, %edi
callq 0x65b0
movq %rax, %r14
movq %rax, %rdi
callq 0x10494
jmp 0xc7b0
movl $0x0, 0x130(%rbx)
movl $0x28, %edi
callq 0x65b0
movq %rax, %r14
movq %rax, %rdi
callq 0x10270
jmp 0xc7b0
movl $0x28, %edi
callq 0x65b0
movq %rax, %r14
movq %rax, %rdi
callq 0x102fc
jmp 0xc7b0
movl $0x28, %edi
callq 0x65b0
movq %rax, %r14
movq %rax, %rdi
callq 0x1038c
jmp 0xc7b0
movl $0x28, %edi
callq 0x65b0
movq %rax, %r14
movq %rax, %rdi
callq 0x10410
movq %r14, 0x138(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
jmp 0xc7c7
jmp 0xc7c7
jmp 0xc7c7
jmp 0xc7c7
movq %rax, %rbx
movl $0x28, %esi
movq %r14, %rdi
callq 0x65c0
movq %rbx, %rdi
callq 0x6a80
nop
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/ui/ui.cpp
// Function: Ui::checkPulseAudio()
void Ui::checkPulseAudio()
{
    if (!pulse.connected && !disconnect) {
        disconnect = true;
        delete current_tab;
        current_tab = new Fallback();
    } else if (pulse.connected && disconnect) {
        disconnect = false;
        switchTab(tab_index);
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xbe1d(%rip), %rcx      # 0x18608
movb 0x105(%rdi), %al
cmpb $0x0, 0x1(%rcx)
je 0xc811
testb %al, %al
je 0xc863
movb $0x0, 0x105(%rbx)
movl 0x130(%rbx), %esi
movq %rbx, %rdi
popq %rbx
jmp 0xc6e2
testb %al, %al
jne 0xc863
movb $0x1, 0x105(%rbx)
movq 0x138(%rbx), %rdi
testq %rdi, %rdi
je 0xc82e
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x28, %edi
callq 0x65b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movb $0x1, 0x8(%rax)
leaq 0xb42b(%rip), %rcx      # 0x17c80
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rax, 0x138(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/ui/ui.cpp
// Function: Ui::run()
void Ui::run()
{
    while (running) {
        checkPulseAudio();
        draw();

        usleep(20000);

        handleInput();
    }
}

// Assembly:
cmpb $0x1, 0x104(%rdi)
jne 0xd391
pushq %rbx
movq %rdi, %rbx
movq %rbx, %rdi
callq 0xc7e0
movq %rbx, %rdi
callq 0xd278
movl $0x4e20, %edi           # imm = 0x4E20
callq 0x6810
movq %rbx, %rdi
callq 0xc866
cmpb $0x0, 0x104(%rbx)
jne 0xd365
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/ui/tab.cpp
// Function: Tab::borderBox(int, int, int, int)
void Tab::borderBox(int w, int h, int px, int py)
{
    wattron(ui.window, COLOR_PAIR(COLOR_BORDER));

    mvwvline(ui.window, py, px, ACS_VLINE, h);
    mvwvline(ui.window, py, px + w, ACS_VLINE, h);

    mvwhline(ui.window, py, px, ACS_HLINE, w);
    mvwhline(ui.window, py + h, px, ACS_HLINE, w);

    mvwhline(ui.window, py, px, ACS_ULCORNER, 1);
    mvwhline(ui.window, py, px + w, ACS_URCORNER, 1);

    mvwhline(ui.window, py + h, px, ACS_LLCORNER, 1);
    mvwhline(ui.window, py + h, px + w, ACS_LRCORNER, 1);

    wattroff(ui.window, COLOR_PAIR(COLOR_BORDER));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %r14d
movl %esi, %ebx
movl %edi, %r12d
leaq 0xa865(%rip), %r13      # 0x187f8
movq 0x10(%r13), %rdi
movl $0xd00, %esi            # imm = 0xD00
xorl %edx, %edx
callq 0x62e0
movq 0x10(%r13), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xdfcf
movq 0x10(%r13), %rdi
movq 0x9f7e(%rip), %rax      # 0x17f40
movl 0x1e0(%rax), %esi
movl %ebx, %edx
callq 0x6740
movq 0x10(%r13), %rdi
leal (%r14,%r12), %ebp
movl %r15d, %esi
movl %ebp, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xdffe
movq 0x10(%r13), %rdi
movq 0x9f4f(%rip), %rax      # 0x17f40
movl 0x1e0(%rax), %esi
movl %ebx, %edx
callq 0x6740
movq 0x10(%r13), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xe02b
movq 0x10(%r13), %rdi
movq 0x9f23(%rip), %rax      # 0x17f40
movl 0x1c4(%rax), %esi
movl %r12d, %edx
callq 0x6550
movq 0x10(%r13), %rdi
addl %r15d, %ebx
movl %ebx, %esi
movl %r14d, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xe05a
movq 0x10(%r13), %rdi
movq 0x9ef4(%rip), %rax      # 0x17f40
movl 0x1c4(%rax), %esi
movl %r12d, %edx
callq 0x6550
movq 0x10(%r13), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xe089
movq 0x10(%r13), %rdi
movq 0x9ec7(%rip), %rax      # 0x17f40
movl 0x1b0(%rax), %esi
movl $0x1, %edx
callq 0x6550
movq 0x10(%r13), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xe0b7
movq 0x10(%r13), %rdi
movq 0x9e99(%rip), %rax      # 0x17f40
movl 0x1ac(%rax), %esi
movl $0x1, %edx
callq 0x6550
movq 0x10(%r13), %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xe0e5
movq 0x10(%r13), %rdi
movq 0x9e6b(%rip), %rax      # 0x17f40
movl 0x1b4(%rax), %esi
movl $0x1, %edx
callq 0x6550
movq 0x10(%r13), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xe112
movq 0x10(%r13), %rdi
movq 0x9e3e(%rip), %rax      # 0x17f40
movl 0x1a8(%rax), %esi
movl $0x1, %edx
callq 0x6550
movq 0x10(%r13), %rdi
movl $0xd00, %esi            # imm = 0xD00
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6750
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/ui/tab.cpp
// Function: Tab::handleDropDown(PaObject*)
int Tab::getBlockSize()
{
    int BLOCK_SIZE = 5;

    if (has_volume) {
        if (ui.hide_top) {
            BLOCK_SIZE -= 1;
        }

        if (ui.hide_bottom) {
            BLOCK_SIZE -= 1;
        }
    }

    return BLOCK_SIZE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movb 0x8(%rdi), %r15b
leaq 0xa0c5(%rip), %rax      # 0x187f8
movzbl 0x101(%rax), %ecx
andl $0x1, %ecx
xorl $0x5, %ecx
movzbl 0x102(%rax), %edx
subl %edx, %ecx
testb %r15b, %r15b
movl $0x5, %r12d
cmovnel %ecx, %r12d
testq %rsi, %rsi
je 0xe865
movq %rsi, %rbx
movq 0x18(%rdi), %rsi
movl 0x20(%rdi), %r14d
movl 0x24(%rdi), %r13d
testq %rsi, %rsi
je 0xe7d6
leaq 0x18(%rsp), %rdi
callq 0xf9e8
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
decl %r13d
imull %r12d, %r13d
imull %r12d, %r14d
cmpl %r14d, %r13d
cmovll %r13d, %r14d
leaq 0x18(%rsp), %rdx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl %r14d, %esi
movl %eax, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xed24
movl %eax, %ebp
leaq 0x18(%rsp), %rdi
callq 0x96de
cmpl $-0x1, %ebp
je 0xe865
movq %rbx, %rdi
movl %ebp, %esi
callq 0x76c8
jmp 0xe865
movl 0x8(%rax), %ebp
leaq 0x238(%rbx), %rsi
movq %rsp, %rdi
callq 0xf8f6
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
decl %r13d
imull %r12d, %r13d
imull %r12d, %r14d
cmpl %r14d, %r13d
cmovll %r13d, %r14d
leal 0x2(%r14), %esi
movzbl %r15b, %edi
negl %edi
orl $0x1, %edi
addl $-0x3, %ebp
xorl %ecx, %ecx
testb %r15b, %r15b
cmovnel %r14d, %esi
cmovnel %ecx, %ebp
movq %rsp, %rdx
movl %eax, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0xee4e
movl %eax, %ebp
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xe847
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x65c0
cmpl $-0x1, %ebp
je 0xe865
movl %ebp, %eax
movq 0x238(%rbx), %rcx
movq (%rcx,%rax,8), %rsi
addq $0x8, %rsi
movq %rbx, %rdi
callq 0x76fe
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xe89c
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x65c0
jmp 0xe89c
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x96de
movq %rbx, %rdi
callq 0x6a80
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/ui/tab.cpp
// Function: Tab::handleMouseVolumeBar(PaObject*, int, int, int, int, int, int, int)
bool Tab::handleMouseVolumeBar(
    PaObject* item,
    int mousex,
    int mousey,
    int w,
    int h,
    int x,
    int y, 
    int button
)
{
    if (mousex < x || mousex >= x + w || mousey < (y - 1) || mousey >= y + 2) {
        return false;
    }

    if (button == 4) {
        item->step_volume(1);
    } else if (button == 5) {
        item->step_volume(-1);
    } else {
        item->set_volume(((mousex - x + 1) / (float)(w - x)) * 1.5f);
    }
    return true;
}

// Assembly:
pushq %rbx
movl 0x18(%rsp), %r9d
movl 0x10(%rsp), %eax
movl %edx, %edi
subl %eax, %edi
setge %r10b
leal (%rax,%r8), %r11d
cmpl %edx, %r11d
setg %dl
andb %r10b, %dl
leal -0x1(%r9), %r10d
cmpl %ecx, %r10d
setle %r10b
addl $0x2, %r9d
cmpl %ecx, %r9d
setg %bl
andb %r10b, %bl
andb %dl, %bl
cmpb $0x1, %bl
jne 0xec5f
movl 0x20(%rsp), %ecx
cmpl $0x5, %ecx
je 0xec2e
cmpl $0x4, %ecx
jne 0xec3d
movq %rsi, %rdi
movl $0x1, %esi
jmp 0xec36
movq %rsi, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x7652
jmp 0xec5f
incl %edi
cvtsi2ss %edi, %xmm0
subl %eax, %r8d
cvtsi2ss %r8d, %xmm1
divss %xmm1, %xmm0
mulss 0x3cd1(%rip), %xmm0     # 0x12928
movq %rsi, %rdi
callq 0x75b4
movl %ebx, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/ui/tab.cpp
// Function: Tab::fillW(int, int, int, int, char const*)
void Tab::fillW(int w, int h, int offset_x, int offset_y, const char *str)
{
    int wo = (w - offset_x);

    wattron(ui.window, COLOR_PAIR(COLOR_BORDER));

    for (int i = 0; i < wo; i++) {
        mvwaddstr(ui.window, offset_y, offset_x + i, str);
    }

    wattroff(ui.window, COLOR_PAIR(COLOR_BORDER));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %ecx, %ebp
movl %edx, %r14d
movl %edi, %r15d
movl %edi, %r13d
subl %edx, %r13d
leaq 0x8fef(%rip), %r12      # 0x187f8
movq 0x10(%r12), %rdi
movl $0xd00, %esi            # imm = 0xD00
xorl %edx, %edx
callq 0x62e0
testl %r13d, %r13d
jle 0xf84d
movq 0x10(%r12), %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x65f0
cmpl $-0x1, %eax
je 0xf845
movq 0x10(%r12), %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x6200
incl %r14d
cmpl %r14d, %r15d
jne 0xf81f
movq 0x10(%r12), %rdi
movl $0xd00, %esi            # imm = 0xD00
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6750
// File: /workspace/github_cpp_makefile_star2_O3/fulhax[P]ncpamixer/src/ui/tabs/configuration.cpp
// Function: Configuration::Configuration()
Configuration::Configuration()
{
    object = &pulse.PA_CARDS;
    toggle = nullptr;

    selected_index = pulse.exists(*object, -1);

    has_volume = false;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%rdi)
movups %xmm0, 0x18(%rdi)
movb $0x1, 0x8(%rdi)
leaq 0x779c(%rip), %rax      # 0x17c50
movq %rax, (%rdi)
movl $0xc8, %esi
addq 0x7ae5(%rip), %rsi      # 0x17fa8
movq %rsi, 0x10(%rdi)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xf9e8
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x8846
movl %eax, 0xc(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x96de
movb $0x0, 0x8(%rbx)
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x96de
movq %rbx, %rdi
callq 0x6a80
nop
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]tetris/src/game.cpp
// Function: test_rotation(block_t*, bool)
collision_t test_rotation(block_t* block, rotation_t counter_clockwise)
{
	/* Make a copy of the block and rotate the copy. */
	block_t block_copy = *block;
	block_rotate(&block_copy, counter_clockwise);

	/* Test if any part of the copied block interfears with the taken boxes on the field. 
	 * Also test if the copied block interfears with the wall. Return accordingly. */
	collision_t collision = NO_COLLISION;
	
	/* Test for collision with other boxes. */
	for (int y = 0; y < MAX_BLOCK_HEIGHT; y++)
	{
		for (int x = 0; x < MAX_BLOCK_WIDTH; x++)
		{
			if (block_copy.structure.tile[y][x] == FILLED   &&
				field[y + block_copy.position.y][x + block_copy.position.x].tile == TAKEN)
			{
				collision = COLLISION_BLOCK;
			}
		}
	}

	/* Test for collision with left side wall. */
	for (int y = 0; y < MAX_BLOCK_HEIGHT; y++)
	{
		for (int x = 0; x < MAX_BLOCK_WIDTH; x++)
		{
			if (block_copy.structure.tile[y][x] == FILLED   &&
				x + block_copy.position.x < 0)
			{
				collision = COLLISION_WALL_R;
			}
		}
	}

	/* Test for collision with the right side wall. */
	for (int y = 0; y < MAX_BLOCK_HEIGHT; y++)
	{
		for (int x = 0; x < MAX_BLOCK_WIDTH; x++)
		{
			if (block_copy.structure.tile[y][x] == FILLED   &&
				x + block_copy.position.x > GRID_WIDTH - 1)
			{
				collision = COLLISION_WALL_R;
			}
		}
	}
	return collision;
}

// Assembly:
subq $0x58, %rsp
movl %esi, %eax
movq %rdi, %rsi
leaq 0x8(%rsp), %rdx
movl $0x14, %ecx
movq %rdx, %rdi
rep  movsl (%rsi), %es:(%rdi)
movq %rdx, %rdi
movl %eax, %esi
callq 0x2a41
leaq 0x18(%rsp), %rcx
movslq -0x4(%rcx), %rax
movslq -0x8(%rcx), %rdx
imulq $0x78, %rax, %rax
leaq (%rdx,%rdx,2), %rsi
leaq (%rax,%rsi,4), %rax
leaq 0x3606(%rip), %rsi      # 0x6170
addq %rax, %rsi
addq $0x8, %rsi
xorl %edi, %edi
movl $0x5, %r8d
movq %rcx, %r9
xorl %eax, %eax
movq %rsi, %r10
xorl %r11d, %r11d
cmpl $0x1, (%r9,%r11,4)
jne 0x2b93
cmpl $0x1, (%r10)
cmovel %r8d, %eax
incq %r11
addq $0xc, %r10
cmpq $0x4, %r11
jne 0x2b84
incq %rdi
addq $0x78, %rsi
addq $0x10, %r9
cmpq $0x4, %rdi
jne 0x2b7e
movq %rdx, %rsi
negq %rsi
xorl %edi, %edi
movl $0x2, %r8d
movq %rcx, %r9
xorl %r10d, %r10d
movl %eax, %r11d
cmpq %rsi, %r10
cmovll %r8d, %eax
cmpl $0x1, (%r9,%r10,4)
cmovnel %r11d, %eax
incq %r10
cmpq $0x4, %r10
jne 0x2bc5
incq %rdi
addq $0x10, %r9
cmpq $0x4, %rdi
jne 0x2bc2
movl $0x9, %esi
subq %rdx, %rsi
xorl %edx, %edx
movl $0x2, %edi
xorl %r8d, %r8d
movl %eax, %r9d
cmpq %rsi, %r8
cmovgl %edi, %eax
cmpl $0x1, (%rcx,%r8,4)
cmovnel %r9d, %eax
incq %r8
cmpq $0x4, %r8
jne 0x2c00
incq %rdx
addq $0x10, %rcx
cmpq $0x4, %rdx
jne 0x2bfd
addq $0x58, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]tetris/src/game.cpp
// Function: remove_row(int)
void remove_row(int row)
{
    for (int x = 0; x < GRID_WIDTH; x++)
    {
        field[row][x].tile     = EMPTY;
        field[row][x].color_f  = COLOR_BACKGROUND_FORTH;
        field[row][x].color_b  = COLOR_BACKGROUND_BACK;
    }
}

// Assembly:
movslq %edi, %rax
imulq $0x78, %rax, %rcx
leaq 0x339e(%rip), %rax      # 0x6170
addq %rcx, %rax
movl $0x8, %ecx
movabsq $0x600000007, %rdx      # imm = 0x600000007
movl $0x0, (%rax,%rcx)
movq %rdx, -0x8(%rax,%rcx)
addq $0xc, %rcx
cmpq $0x80, %rcx
jne 0x2de4
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]tetris/src/game.cpp
// Function: move_field_down(int, int)
void move_field_down(int row, int n)
{
    for (int y = row - 1; y >= 0; y--)
    {
        for (int x = 0; x < GRID_WIDTH; x++)
        {
            field[y + n][x].tile = field[y][x].tile;
            field[y + n][x].color_f = field[y][x].color_f;
            field[y + n][x].color_b = field[y][x].color_b;
        }
    }
}

// Assembly:
testl %edi, %edi
jle 0x2e5c
movl %edi, %eax
movslq %esi, %rdx
imulq $0x78, %rax, %rcx
leaq 0x335e(%rip), %rsi      # 0x6170
leaq (%rcx,%rsi), %rdi
addq %rsi, %rcx
addq $-0x70, %rcx
imulq $0x78, %rdx, %rdx
addq %rdi, %rdx
movq %rax, %rsi
decq %rax
movq $-0x78, %rdi
movq %rcx, %r8
movl (%r8), %r9d
movl %r9d, 0x8(%rdx,%rdi)
movq -0x8(%r8), %r9
movq %r9, (%rdx,%rdi)
addq $0xc, %r8
addq $0xc, %rdi
jne 0x2e34
addq $-0x78, %rcx
addq $-0x78, %rdx
cmpq $0x2, %rsi
jge 0x2e24
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]tetris/src/game.cpp
// Function: test_row_full(int)
bool test_row_full(int row)
{
    bool res = true;
    for (int x = 0; x < GRID_WIDTH; x++)
    {
        if (field[row][x].tile == EMPTY)
        {
            res = false;
            break;
        }
    }
    return res;
}

// Assembly:
movslq %edi, %rax
imulq $0x78, %rax, %rax
leaq 0x3305(%rip), %rcx      # 0x6170
cmpl $0x0, 0x8(%rax,%rcx)
je 0x2e99
addq %rcx, %rax
addq $0x14, %rax
xorl %edx, %edx
movq %rdx, %rcx
cmpq $0x9, %rdx
je 0x2e91
cmpl $0x0, (%rax)
leaq 0xc(%rax), %rax
leaq 0x1(%rcx), %rdx
jne 0x2e7b
cmpq $0x9, %rcx
setae %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]tetris/src/game.cpp
// Function: game_draw_field()
void game_draw_field()
{
    extern SDL_Renderer* renderer;
    extern int block_width;
    extern int block_height;
    for (int y = 0; y < GRID_HEIGHT; y++)
    {
        for (int x = 0; x < GRID_WIDTH; x++)
        {
            draw_box(
                x * block_width, y * block_height,  // Position.
                block_width, block_height,          // Size.
                field[y][x].color_f,                // Foreground color.
                field[y][x].color_b,                // Background color.
                renderer,                           // Renderer to draw to.
                GLOBAL_MARGIN                       // Margin level (px).
            );
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x32b4(%rip), %rbp      # 0x6174
xorl %r14d, %r14d
leaq 0x3cb6(%rip), %r15      # 0x6b80
leaq 0x3cb3(%rip), %r12      # 0x6b84
leaq 0x3c98(%rip), %r13      # 0x6b70
movq %rbp, (%rsp)
xorl %ebx, %ebx
movl (%r15), %edx
movl %ebx, %edi
imull %edx, %edi
movl (%r12), %ecx
movl %ecx, %esi
imull %r14d, %esi
movl -0x4(%rbp), %r8d
movl (%rbp), %r9d
pushq $0x1
pushq (%r13)
callq 0x243c
addq $0x10, %rsp
incq %rbx
addq $0xc, %rbp
cmpq $0xa, %rbx
jne 0x2ede
incq %r14
movq (%rsp), %rbp
addq $0x78, %rbp
cmpq $0x14, %r14
jne 0x2ed8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]tetris/src/game.cpp
// Function: iteration_timer()
bool iteration_timer()
{
    using namespace std::chrono;
    static time_point<high_resolution_clock>  last_timestamp;
    time_point<high_resolution_clock>         current_timestamp         = high_resolution_clock::now();
    milliseconds                              time_since_last_call      = duration_cast<milliseconds>(current_timestamp - last_timestamp);

    if (current_iteration_wait_time_ms < time_since_last_call.count())
    {
        last_timestamp = current_timestamp;
        return true;
    }
    else return false;

}

// Assembly:
pushq %rax
callq 0x2070
movq %rax, %rcx
subq 0x3977(%rip), %rax      # 0x6ae0
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
movslq 0x395d(%rip), %rax      # 0x6ae8
cmpq %rax, %rdx
jle 0x3197
movq %rcx, 0x3949(%rip)      # 0x6ae0
cmpq %rax, %rdx
setg %al
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]tetris/src/input.cpp
// Function: handle_keyboard_input(unsigned char const*)
void handle_keyboard_input(keyboard_state_t* keyboard_state)
{
    if (keyboard_key_timer(SDL_SCANCODE_LEFT, keyboard_state))
        current_block_move(DIRECTION_LEFT);

    if (keyboard_key_timer(SDL_SCANCODE_RIGHT, keyboard_state))
        current_block_move(DIRECTION_RIGHT);

}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x50, %edi
movq %rbx, %rsi
callq 0x33e4
testb %al, %al
je 0x33c6
xorl %edi, %edi
callq 0x31a6
movl $0x4f, %edi
movq %rbx, %rsi
callq 0x33e4
testb %al, %al
je 0x33e2
movl $0x1, %edi
popq %rbx
jmp 0x31a6
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]optimal-seed-solver/hobbesSolver.cc
// Function: HobbesSolver::~HobbesSolver()
HobbesSolver::~HobbesSolver() {
	if  (invertedList != NULL) {
		delete [] invertedList;
		invertedList = NULL;
	}
	if  (defaultInvertedList != NULL) {
		delete [] defaultInvertedList;
		defaultInvertedList = NULL;
	}
		if  (dynamicMatrix != NULL) {
		delete [] dynamicMatrix;
		dynamicMatrix = NULL;
	}
	if  (defaultDynamicMatrix != NULL) {
		delete [] defaultDynamicMatrix;
		defaultDynamicMatrix = NULL;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x358(%rdi), %rdi
testq %rdi, %rdi
je 0x458a
callq 0x3330
movq $0x0, 0x358(%rbx)
movq 0x378(%rbx), %rdi
testq %rdi, %rdi
je 0x45a6
callq 0x3330
movq $0x0, 0x378(%rbx)
movq 0x360(%rbx), %rdi
testq %rdi, %rdi
je 0x45c2
callq 0x3330
movq $0x0, 0x360(%rbx)
movq 0x380(%rbx), %rdi
testq %rdi, %rdi
je 0x45de
callq 0x3330
movq $0x0, 0x380(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x5152
nop
// File: /workspace/github_cpp_makefile_star2_O3/c2-d2[P]disty/src/main.cpp
// Function: void compute_consensus<std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>>(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void compute_consensus(const T &pileup, string &consensus) {
    assert(pileup.size()==consensus.size());
    assert(pileup[0].size()==128);

    for(int i=0; i<static_cast<int>(pileup.size()); i++){
        char c='N';
        int max_freq=-1;
        const auto &column=pileup[i];

        for(int d=0;d<128;d++){
            if(d!='N'){
                if(column[d]>max_freq){
                    max_freq=column[d];
                    c=(char)d;
                }
            }
        }

        consensus[i]=c;
    }
}

// Assembly:
pushq %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rax
cmpq 0x8(%rsi), %rax
jne 0x3b9a
movq 0x8(%rcx), %rdx
subq (%rcx), %rdx
cmpq $0x200, %rdx            # imm = 0x200
jne 0x3bb9
testl %eax, %eax
jle 0x3b98
xorl %eax, %eax
leaq (%rax,%rax,2), %rdx
leaq (%rcx,%rdx,8), %rdx
movb $0x4e, %cl
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
cmpq $0x4e, %r9
je 0x3b67
movq (%rdx), %r10
movl (%r10,%r9,4), %r10d
cmpl %r8d, %r10d
movzbl %cl, %ecx
cmovgl %r9d, %ecx
cmovgl %r10d, %r8d
incq %r9
cmpq $0x80, %r9
jne 0x3b4c
movq (%rsi), %rdx
movb %cl, (%rdx,%rax)
incq %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %edx # imm = 0xAAAAAAAB
movslq %edx, %rdx
cmpq %rdx, %rax
jl 0x3b39
popq %rax
retq
leaq 0x1aa9(%rip), %rdi      # 0x564a
leaq 0x1772(%rip), %rsi      # 0x531a
leaq 0x1abb(%rip), %rcx      # 0x566a
movl $0x13f, %edx            # imm = 0x13F
callq 0x20e0
leaq 0x1a74(%rip), %rdi      # 0x5634
leaq 0x1753(%rip), %rsi      # 0x531a
leaq 0x1a9c(%rip), %rcx      # 0x566a
movl $0x140, %edx            # imm = 0x140
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O3/p-ranav[P]video_device_discovery/src/helpers.cpp
// Function: xioctl(int, int, void*)
int xioctl(int fd, int request, void *arg) {
  int r;
  do {
    r = ioctl (fd, request, arg);
  } while (-1 == r && EINTR == errno);
  return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %edi, %r14d
movslq %esi, %r15
movl %r14d, %edi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x4460
movl %eax, %r12d
cmpl $-0x1, %eax
jne 0xacda
callq 0x4030
cmpl $0x4, (%rax)
je 0xacb8
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq