// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: cache_set_vector
static int cache_set_vector(bridge_t *br, uri_t uri, char *types, rtosc_arg_t *args)
{
    param_cache_t *line = cache_get(br, uri);
    assert(line);
    line->pending = false;

    int line_size = line->type == 'v' ? strlen(line->vec_type) : 0;

    //If the line is invalid OR
    //the cache isn't a vector field OR
    //the vector fields differ in type OR
    //the vector fields differ in value
    if(!line->valid || line->type != 'v' || strcmp(line->vec_type, types) ||
            memcmp(&line->vec_value, &args, sizeof(args[0])*line_size))
    {
        if(line->type == 'v')
            declone_vec_value(line->vec_type, line->vec_value);
        else
            declone_value(line->type, line->val);

        line->valid     = true;
        line->type      = 'v';
        line->vec_type  = strdup(types);
        line->vec_value = clone_vec_value(types, args);
        line->requests = 0;

        //check if cache line is currently debounced...
        //int debounced = false;
        //for(int i=0; i<br->debounce_len; ++i)
        //    if(!strcmp(br->bounce[i].path, line->path))
        //        debounced = true;

        //if(!debounced)
            run_callbacks(br, line);

        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
movq %rcx, -0x40(%rbp)
callq 0x3175
testq %rax, %rax
je 0x306d
movq %rbx, -0x38(%rbp)
movq %rax, %rcx
movb 0x8(%rax), %r13b
movb 0x9(%rax), %r12b
movl %r13d, %eax
andb $-0x3, %al
movb %al, 0x8(%rcx)
cmpb $0x76, %r12b
movq %rcx, -0x30(%rbp)
je 0x2f5a
xorl %ebx, %ebx
jmp 0x2f6a
movq 0x20(%rcx), %rdi
callq 0x20d0
movslq %eax, %rbx
shlq $0x4, %rbx
cmpb $0x76, %r12b
setne %al
testb $0x1, %r13b
sete %cl
orb %al, %cl
movq -0x30(%rbp), %r13
jne 0x2fab
movq 0x20(%r13), %rdi
movq %r15, %rsi
callq 0x21a0
testl %eax, %eax
jne 0x2fab
movq %r13, %rdi
addq $0x28, %rdi
leaq -0x40(%rbp), %rsi
movq %rbx, %rdx
callq 0x2220
testl %eax, %eax
je 0x3069
cmpb $0x76, %r12b
je 0x2fc2
cmpb $0x62, %r12b
jne 0x2fcf
movq 0x28(%r13), %rdi
callq 0x2030
jmp 0x2fcf
movq 0x20(%r13), %rdi
movq 0x28(%r13), %rsi
callq 0x2b21
orb $0x1, 0x8(%r13)
movb $0x76, 0x9(%r13)
movq %r15, %rdi
callq 0x22c0
movq %rax, 0x20(%r13)
movq %r15, %rdi
callq 0x20d0
movq %rax, %r13
movslq %r13d, %r12
movl $0x10, %edi
movq %r12, %rsi
callq 0x2180
movq %rax, %rbx
testl %r12d, %r12d
jle 0x303d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
shlq $0x4, %r13
xorl %r12d, %r12d
movsbl (%r15), %edi
movq (%r14,%r12), %rsi
movq 0x8(%r14,%r12), %rdx
callq 0x41fd
movq %rax, (%rbx,%r12)
movq %rdx, 0x8(%rbx,%r12)
addq $0x10, %r12
incq %r15
cmpq %r12, %r13
jne 0x3016
movq -0x30(%rbp), %rsi
movq %rbx, 0x28(%rsi)
movl $0x0, 0x18(%rsi)
movq -0x38(%rbp), %rdi
callq 0x3f7f
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x305a
leaq 0x6286(%rip), %rdi      # 0x92fa
leaq 0x6101(%rip), %rsi      # 0x917c
leaq 0x627d(%rip), %rcx      # 0x92ff
movl $0x95, %edx
callq 0x2130