LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_set_value_int
void br_set_value_int(bridge_t *br, uri_t uri, int value)
{
    rtosc_arg_t arg = {.i = value};
    if(cache_set(br, uri, 'i', arg, 1)) {
        char buffer[1024];
        rtosc_message(buffer, 1024, uri, "i", value);
        osc_send(br, buffer);
        debounce_update(br, cache_get(br, uri));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, %ecx
movl $0x69, %edx
movl $0x1, %r9d
callq 0x329f
testl %eax, %eax
je 0x2df6
leaq 0x63d0(%rip), %rcx      # 0x9189
leaq -0x420(%rbp), %r12
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
movq %r14, %rdx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x6818
movq %rbx, %rdi
movq %r12, %rsi
callq 0x26d3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3175
movq %rbx, %rdi
movq %rax, %rsi
callq 0x308c
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_set_value_float
void br_set_value_float(bridge_t *br, uri_t uri, float value)
{
    rtosc_arg_t arg = {.f = value};
    if(cache_set(br, uri, 'f', arg, 1)) {
        char buffer[1024];
        rtosc_message(buffer, 1024, uri, "f", value);
        osc_send(br, buffer);
        debounce_update(br, cache_get(br, uri));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rsi, %r14
movq %rdi, %rbx
movd %xmm0, -0x1c(%rbp)
movd %xmm0, %ecx
movl $0x66, %edx
movl $0x1, %r9d
callq 0x329f
testl %eax, %eax
je 0x2e82
xorps %xmm0, %xmm0
cvtss2sd -0x1c(%rbp), %xmm0
leaq 0x683a(%rip), %rcx      # 0x9682
leaq -0x420(%rbp), %r15
movl $0x400, %esi            # imm = 0x400
movq %r15, %rdi
movq %r14, %rdx
movb $0x1, %al
callq 0x6818
movq %rbx, %rdi
movq %r15, %rsi
callq 0x26d3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3175
movq %rbx, %rdi
movq %rax, %rsi
callq 0x308c
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_set_array
void br_set_array(bridge_t *br, uri_t uri, char *type, rtosc_arg_t*args)
{
    if(cache_set_vector(br, uri, type, args)) {
        char buffer[1024*8];
        int len = rtosc_amessage(buffer, sizeof(buffer), uri, type, args);
        (void) len;
        //hexdump(buffer, 0, len);
        osc_send(br, buffer);
        debounce_update(br, cache_get(br, uri));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2008, %rsp           # imm = 0x2008
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2f09
testl %eax, %eax
je 0x2ef7
leaq -0x2030(%rbp), %r13
movl $0x2000, %esi           # imm = 0x2000
movq %r13, %rdi
movq %r14, %rdx
movq %r12, %rcx
movq %r15, %r8
callq 0x6b54
movq %rbx, %rdi
movq %r13, %rsi
callq 0x26d3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3175
movq %rbx, %rdi
movq %rax, %rsi
callq 0x308c
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: debounce_update
static void debounce_update(bridge_t *br, param_cache_t *line)
{
    uv_update_time(br->loop);
    uint64_t now = uv_now(br->loop);
    double obs   = 1e-3*now;
    for(int i=0; i<br->debounce_len; ++i) {
        if(!strcmp(line->path, br->bounce[i].path)) {
            br->bounce[i].last_set = obs;
            return;
        }
    }
    debounce_push(br, line, obs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
movq (%rdi), %rdi
callq 0x2290
movq (%r15), %rdi
callq 0x2170
movq %rax, -0x38(%rbp)
movslq 0x124(%r15), %rbx
testq %rbx, %rbx
jle 0x30f2
movq -0x30(%rbp), %rax
movq (%rax), %r12
movq 0x108(%r15), %r13
addq $0x8, %r13
movq %rbx, %r14
movq -0x8(%r13), %rsi
movq %r12, %rdi
callq 0x21a0
testl %eax, %eax
je 0x3138
addq $0x10, %r13
decq %r14
jne 0x30d9
movq %rbx, %rsi
shlq $0x4, %rsi
leal 0x1(%rbx), %eax
movl %eax, 0x124(%r15)
movq 0x108(%r15), %rdi
addq $0x10, %rsi
callq 0x2240
movq %rax, 0x108(%r15)
movslq 0x124(%r15), %rcx
shlq $0x4, %rcx
movq -0x30(%rbp), %rdx
movq (%rdx), %rdx
leaq (%rax,%rcx), %r13
addq $-0x8, %r13
movq %rdx, -0x8(%r13)
movsd -0x38(%rbp), %xmm0
unpcklps 0x5ecc(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x5ed4(%rip), %xmm0     # 0x9020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x5ed0(%rip), %xmm1     # 0x9030
movsd %xmm1, (%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: cache_get
static param_cache_t *cache_get(bridge_t *br, uri_t uri)
{
    for(int i=0; i<br->cache_len; ++i)
        if(!strcmp(br->cache[i].path, uri))
	    return br->cache + i;
    cache_push(br, uri);
    return cache_get(br, uri);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movslq 0x120(%r14), %r12
testq %r12, %r12
setg %r13b
jle 0x31dd
movq 0x100(%r14), %r15
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x21a0
testl %eax, %eax
je 0x31e3
movl $0x1, %r13d
cmpq %r13, %r12
je 0x31df
movq 0x30(%r15), %rdi
addq $0x30, %r15
movq %rbx, %rsi
callq 0x21a0
incq %r13
testl %eax, %eax
jne 0x31b5
decq %r13
cmpq %r12, %r13
setb %r13b
jmp 0x31e3
jmp 0x31e3
seta %r13b
testb %r13b, %r13b
jne 0x31f5
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3759
jmp 0x3189
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_set_value_bool
void br_set_value_bool(bridge_t *br, uri_t uri, int value)
{
    rtosc_arg_t arg = {.i = value};
    char type = value ? 'T' : 'F';
    if(cache_set(br, uri, type, arg, 1)) {
        char buffer[1024];
        char typestr[2] = {type, '\0'};
        rtosc_message(buffer, 1024, uri, typestr, value);
        osc_send(br, buffer);
        debounce_update(br, cache_get(br, uri));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x410, %rsp            # imm = 0x410
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, %ecx
testl %edx, %edx
movl $0x46, %eax
movl $0x54, %r12d
cmovel %eax, %r12d
movl %r12d, %edx
movl $0x1, %r9d
callq 0x329f
testl %eax, %eax
je 0x328f
leaq -0x22(%rbp), %rcx
movb %r12b, (%rcx)
movb $0x0, 0x1(%rcx)
leaq -0x430(%rbp), %r12
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
movq %r14, %rdx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x6818
movq %rbx, %rdi
movq %r12, %rsi
callq 0x26d3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3175
movq %rbx, %rdi
movq %rax, %rsi
callq 0x308c
addq $0x410, %rsp            # imm = 0x410
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: cache_set
static int cache_set(bridge_t *br, uri_t uri, char type, rtosc_arg_t val, int skip_debounce)
{
    param_cache_t *line = cache_get(br, uri);
    assert(line);
    line->pending = false;
    if(!line->valid || line->type != type || memcmp(&line->val, &val, sizeof(val)))
    {
        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  = type;
        line->val   = clone_value(type, val);
        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 || skip_debounce)
            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 $0x28, %rsp
movl %r9d, %r15d
movq %r8, %r12
movq %rcx, %r13
movl %edx, %r14d
movq %rdi, %rbx
movq %rcx, -0x50(%rbp)
movq %r8, -0x48(%rbp)
callq 0x3175
testq %rax, %rax
je 0x33f1
movb 0x8(%rax), %dl
movl %edx, %ecx
andb $-0x3, %cl
movb %cl, 0x8(%rax)
testb $0x1, %dl
je 0x3309
cmpb %r14b, 0x9(%rax)
jne 0x3309
movdqu 0x20(%rax), %xmm0
movdqu -0x50(%rbp), %xmm1
pcmpeqb %xmm0, %xmm1
pmovmskb %xmm1, %ecx
cmpl $0xffff, %ecx           # imm = 0xFFFF
je 0x33ec
movzbl 0x9(%rax), %ecx
cmpl $0x62, %ecx
movq %rax, -0x30(%rbp)
je 0x332e
cmpl $0x76, %ecx
jne 0x333b
movq 0x20(%rax), %rdi
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x2b21
jmp 0x3337
movq 0x28(%rax), %rdi
callq 0x2030
movq -0x30(%rbp), %rax
orb $0x1, 0x8(%rax)
movb %r14b, 0x9(%rax)
movsbl %r14b, %edi
movq %r13, %rsi
movq %r12, %rdx
callq 0x41fd
movq -0x30(%rbp), %rsi
movq %rax, 0x20(%rsi)
movq %rdx, 0x28(%rsi)
movl $0x0, 0x18(%rsi)
movslq 0x124(%rbx), %r12
testq %r12, %r12
jle 0x33c1
movl %r15d, -0x34(%rbp)
movq %rbx, -0x40(%rbp)
movq 0x108(%rbx), %r13
movq (%rsi), %r14
shlq $0x4, %r12
xorl %ebx, %ebx
xorl %r15d, %r15d
movq (%r13,%rbx), %rdi
movq %r14, %rsi
callq 0x21a0
testl %eax, %eax
movl $0x1, %eax
cmovel %eax, %r15d
addq $0x10, %rbx
cmpq %rbx, %r12
jne 0x338c
testl %r15d, %r15d
sete %al
movq -0x40(%rbp), %rbx
movl -0x34(%rbp), %r15d
movq -0x30(%rbp), %rsi
jmp 0x33c3
movb $0x1, %al
movl $0x1, %r14d
testl %r15d, %r15d
jne 0x33d2
testb %al, %al
je 0x33da
movq %rbx, %rdi
callq 0x3f7f
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x33da
leaq 0x5f02(%rip), %rdi      # 0x92fa
leaq 0x5d7d(%rip), %rsi      # 0x917c
leaq 0x5f38(%rip), %rcx      # 0x933e
movl $0x77, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_has_callback
int br_has_callback(bridge_t *br, uri_t uri)
{
    for(int i=0; i < br->callback_len; ++i)
        if(!strcmp(br->callback[i].path, uri))
            return true;
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq 0x128(%rdi), %r14
testq %r14, %r14
setg %r12b
jle 0x34e1
movq %rsi, %rbx
movq 0x110(%rdi), %r15
movq (%r15), %rdi
callq 0x21a0
testl %eax, %eax
je 0x34e1
addq $0x18, %r15
movl $0x1, %ecx
movq %rcx, %r12
cmpq %rcx, %r14
je 0x34da
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x21a0
leaq 0x1(%r12), %rcx
addq $0x18, %r15
testl %eax, %eax
jne 0x34ba
cmpq %r14, %r12
setb %r12b
movzbl %r12b, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: callback_push
static void callback_push(bridge_t *br, uri_t uri, bridge_cb_t cb, void *data)
{
    br->callback_len += 1;
    br->callback = (bridge_callback_t*)realloc(br->callback, br->callback_len*sizeof(bridge_callback_t));
    bridge_callback_t *ch = br->callback + (br->callback_len - 1);
    ch->path    = strdup(uri);
    ch->cb      = cb;
    ch->data    = data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movslq 0x128(%rdi), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x128(%rdi)
movq 0x110(%rdi), %rdi
leaq 0x8(,%rax,8), %rax
leaq (%rax,%rax,2), %rsi
callq 0x2240
movq %rax, %r13
movq %rax, 0x110(%r12)
movslq 0x128(%r12), %rax
leaq (%rax,%rax,2), %r12
movq %r15, %rdi
callq 0x22c0
movq %rax, -0x18(%r13,%r12,8)
movq %r14, -0x10(%r13,%r12,8)
movq %rbx, -0x8(%r13,%r12,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: cache_push
static void cache_push(bridge_t *br, uri_t uri)
{
    if(!uri)
        return;
    assert(uri);
    br->cache_len += 1;
    br->cache = realloc(br->cache, br->cache_len*sizeof(param_cache_t));
    param_cache_t *ch = br->cache + (br->cache_len - 1);
    memset(ch, 0, sizeof(param_cache_t));
    ch->path    = strdup(uri);
    cache_update(br, ch);
}

// Assembly:
testq %rsi, %rsi
je 0x37e2
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x120(%rdi), %rax
incq %rax
movl %eax, 0x120(%rdi)
movq 0x100(%rdi), %rdi
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2240
movq %rax, 0x100(%rbx)
movslq 0x120(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %r15
addq $-0x30, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, 0x20(%r15)
movq %r14, %rdi
callq 0x22c0
movq %rax, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x37e3
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: cache_update
static void cache_update(bridge_t *br, param_cache_t *ch)
{
    double now  = 1e-3*uv_now(br->loop);
    uri_t uri   = ch->path;
    ch->valid   = 0;
    ch->type    = 0;
    ch->usable  = 1;
    ch->pending = 1;
    ch->force_refresh = 0;
    ch->request_time = now;
    ch->requests++;
    memset(&ch->val, 0, sizeof(ch->val));

    if(osc_request_hook) {
        char buffer[128];
        const int len = rtosc_message(buffer, 128, uri, "");
        if(len <= 0)
            fprintf(stderr, "[ERROR] Osc Bridge Could Not Request Update For \"%s\"\n", uri);
    	osc_request_hook(br, buffer);
    } else
        osc_request(br, uri);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2170
movq %rax, %xmm0
punpckldq 0x5802(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x580a(%rip), %xmm0     # 0x9020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x5806(%rip), %xmm1     # 0x9030
movq (%r15), %r14
movb 0x8(%r15), %al
movb $0x0, 0x9(%r15)
andb $-0x10, %al
orb $0x6, %al
movb %al, 0x8(%r15)
movsd %xmm1, 0x10(%r15)
incl 0x18(%r15)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x20(%r15)
cmpq $0x0, 0x99b6(%rip)      # 0xd210
je 0x389b
leaq 0x5b49(%rip), %rcx      # 0x93ac
leaq -0xa0(%rbp), %rdi
movl $0x80, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x6818
testl %eax, %eax
jle 0x38b3
leaq -0xa0(%rbp), %rsi
movq %rbx, %rdi
callq *0x9983(%rip)           # 0xd210
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3a88
movq 0x973e(%rip), %rax      # 0xcff8
movq (%rax), %rdi
leaq 0x5ab3(%rip), %rsi      # 0x9377
movq %r14, %rdx
xorl %eax, %eax
callq 0x21b0
jmp 0x387d
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_damage
void br_damage(bridge_t *br, uri_t dmg)
{
    //printf("Damage of parameters...\n");
    //printf("path is %s\n", dmg);
    for(int i=0; i<br->cache_len; ++i) {
        if(strstr(br->cache[i].path, dmg)) {
            int current = br_has_callback(br, br->cache[i].path);
            if(current) {
                osc_request(br, br->cache[i].path);
                br->cache[i].pending = true;
            } else
                br->cache[i].usable = false;
            br->cache[i].requests = 0;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, -0x30(%rbp)
cmpl $0x0, 0x120(%rdi)
jle 0x3a79
movq %rdi, %r14
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x100(%r14), %rbx
movq (%rbx,%r12), %r15
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0x22d0
testq %rax, %rax
je 0x3a66
movq %r14, %rdi
movq %r15, %rsi
callq 0x3480
testl %eax, %eax
je 0x3a50
movq %r14, %rdi
movq %r15, %rsi
callq 0x3a88
movq 0x100(%r14), %rax
orb $0x2, 0x8(%rax,%r12)
jmp 0x3a56
andb $-0x5, 0x8(%rbx,%r12)
movq 0x100(%r14), %rax
movl $0x0, 0x18(%rax,%r12)
incq %r13
movslq 0x120(%r14), %rax
addq $0x30, %r12
cmpq %rax, %r13
jl 0x3a0b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_refresh
void br_refresh(bridge_t *br, uri_t uri)
{
    param_cache_t *cline = cache_get(br, uri);

    uv_update_time(br->loop);
    double now = 1e-3*uv_now(br->loop);

    if(cline->request_time < now) {
        cline->request_time = now;
        osc_request(br, uri);
    } else {
        //printf("skipping refresh for %s at dt = %f\n", uri, cline->request_time-now);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3175
movq %rax, %r15
movq (%r14), %rdi
callq 0x2290
movq (%r14), %rdi
callq 0x2170
movq %rax, %xmm1
punpckldq 0x5506(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x550e(%rip), %xmm1     # 0x9020
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x550a(%rip), %xmm0     # 0x9030
ucomisd 0x10(%r15), %xmm0
jbe 0x3b49
movsd %xmm0, 0x10(%r15)
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3a88
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_force_refresh
void br_force_refresh(bridge_t *br, uri_t uri)
{
    param_cache_t *cline = cache_get(br, uri);

    uv_update_time(br->loop);
    double now = 1e-3*uv_now(br->loop);

    if(cline->request_time < now) {
        cline->request_time = now;
        osc_request(br, uri);
        cline->force_refresh = 0;
    } else {
        cline->request_time = now;
        cline->force_refresh = 1;
        //printf("skipping refresh for %s at dt = %f\n", uri, cline->request_time-now);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3175
movq %rax, %r15
movq (%r14), %rdi
callq 0x2290
movq (%r14), %rdi
callq 0x2170
movq %rax, %xmm0
punpckldq 0x5487(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x548f(%rip), %xmm0     # 0x9020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x548b(%rip), %xmm1     # 0x9030
ucomisd 0x10(%r15), %xmm1
movsd %xmm1, 0x10(%r15)
jbe 0x3bc5
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3a88
andb $-0x9, 0x8(%r15)
jmp 0x3bca
orb $0x8, 0x8(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: br_pending
int br_pending(bridge_t *br)
{
    int pending = 0;
    for(int i=0; i<br->cache_len; ++i)
        pending += !!(br->cache[i].pending);
    return pending;
}

// Assembly:
movslq 0x120(%rdi), %rax
testq %rax, %rax
jle 0x3cb8
pushq %rbp
movq %rsp, %rbp
movq 0x100(%rdi), %rcx
shlq $0x4, %rax
leaq (%rax,%rax,2), %rdx
xorl %esi, %esi
xorl %eax, %eax
btl $0x1, 0x8(%rcx,%rsi)
adcl $0x0, %eax
addq $0x30, %rsi
cmpq %rsi, %rdx
jne 0x3ca4
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: print_stats
void print_stats(bridge_t *br, schema_t sch)
{
    printf("Bridge Statistics:\n");
    printf("    Total cache lines:          %d\n", br->cache_len);
    printf("    Total callbacks:            %d\n", br->callback_len);
    printf("Schema Statistics:\n");
    printf("    Known Parameters Patterns:  %d\n", sch.elements);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x5372(%rip), %rdi      # 0x94fc
callq 0x2080
movl 0x120(%rbx), %esi
leaq 0x50f2(%rip), %rdi      # 0x928e
xorl %eax, %eax
callq 0x20f0
movl 0x128(%rbx), %esi
leaq 0x5102(%rip), %rdi      # 0x92b2
xorl %eax, %eax
callq 0x20f0
leaq 0x5351(%rip), %rdi      # 0x950f
callq 0x2080
movl 0x20(%rbp), %esi
leaq 0x5109(%rip), %rdi      # 0x92d6
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x20f0
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/bridge.c
// Function: clone_value
static rtosc_arg_t
clone_value(char type, rtosc_arg_t val)
{
    if(type == 'b') {
        char *data = (char*)val.b.data;
        val.b.data = malloc(val.b.len);
        memcpy(val.b.data, data, val.b.len);
    } else if(type == 's') {
        val.s = strdup(val.s);
    }
    return val;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
cmpl $0x73, %edi
je 0x4239
cmpl $0x62, %edi
jne 0x4244
movslq %r14d, %r15
movq %r15, %rdi
callq 0x2200
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x21e0
movq %r12, %rbx
jmp 0x4244
movq %r14, %rdi
callq 0x22c0
movq %rax, %r14
movq %r14, %rax
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_stoi
static mm_json_number
mm_json_stoi(struct mm_json_token *tok)
{
    mm_json_number n = 0;
    mm_json_size i = 0;
    mm_json_size off;
    mm_json_size neg;
    if (!tok->str || !tok->len)
        return 0;

    off = (tok->str[0] == '-' || tok->str[0] == '+') ? 1 : 0;
    neg = (tok->str[0] == '-') ? 1 : 0;
    for (i = off; i < tok->len; i++) {
        if ((tok->str[i] >= '0') && (tok->str[i] <= '9'))
            n = (n * 10) + tok->str[i]  - '0';
    }
    return (neg) ? -n : n;
}

// Assembly:
movq (%rdi), %rax
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0x4751
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x4751
pushq %rbp
movq %rsp, %rbp
movb (%rax), %dl
leal -0x2b(%rdx), %edi
xorl %esi, %esi
testb $-0x3, %dil
sete %sil
xorpd %xmm0, %xmm0
cmpq %rsi, %rcx
jbe 0x4743
xorpd %xmm3, %xmm3
movsd 0x4e9a(%rip), %xmm1     # 0x95a0
movsd 0x4e9a(%rip), %xmm2     # 0x95a8
movapd %xmm3, %xmm0
movsbl (%rax,%rsi), %edi
leal -0x30(%rdi), %r8d
xorps %xmm4, %xmm4
cvtsi2sd %edi, %xmm4
mulsd %xmm1, %xmm0
addsd %xmm4, %xmm0
addsd %xmm2, %xmm0
cmpb $0xa, %r8b
jb 0x4737
movapd %xmm3, %xmm0
incq %rsi
movapd %xmm0, %xmm3
cmpq %rsi, %rcx
jne 0x4712
cmpb $0x2d, %dl
jne 0x4750
xorpd 0x4e20(%rip), %xmm0     # 0x9570
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_cpy
MM_JSON_API mm_json_size
mm_json_cpy(mm_json_char *dst, mm_json_size max, const struct mm_json_token* tok)
{
    unsigned i = 0;
    mm_json_size ret;
    mm_json_size siz;

    MM_JSON_ASSERT(dst);
    MM_JSON_ASSERT(tok);
    if (!dst || !max || !tok)
        return 0;

    ret = (max < (tok->len + 1)) ? max : tok->len;
    siz = (max < (tok->len + 1)) ? max-1 : tok->len;
    for (i = 0; i < siz; i++)
        dst[i] = tok->str[i];
    dst[siz] = '\0';
    return ret;
}

// Assembly:
movq %rsi, %rax
testq %rdi, %rdi
sete %cl
testq %rsi, %rsi
sete %sil
orb %cl, %sil
testq %rdx, %rdx
sete %cl
orb %sil, %cl
jne 0x47b3
movq 0x8(%rdx), %rsi
leaq 0x1(%rsi), %r8
leaq -0x1(%rax), %rcx
cmpq %rax, %r8
cmovbeq %rsi, %rax
cmovbeq %rsi, %rcx
testq %rcx, %rcx
je 0x47ae
pushq %rbp
movq %rsp, %rbp
movl $0x1, %esi
xorl %r8d, %r8d
movq (%rdx), %r9
movb (%r9,%r8), %r9b
movb %r9b, (%rdi,%r8)
movl %esi, %r8d
incl %esi
cmpq %r8, %rcx
ja 0x4798
popq %rbp
movb $0x0, (%rdi,%rcx)
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_cmp
MM_JSON_API mm_json_int
mm_json_cmp(const struct mm_json_token* tok, const mm_json_char* str)
{
    mm_json_size i;
    MM_JSON_ASSERT(tok);
    MM_JSON_ASSERT(str);
    if (!tok || !str) return 1;
    for (i = 0; (i < tok->len && *str); i++, str++){
        if (tok->str[i] != *str)
            return 1;
    }
    return 0;
}

// Assembly:
testq %rdi, %rdi
sete %cl
testq %rsi, %rsi
sete %dl
movl $0x1, %eax
orb %cl, %dl
jne 0x47fa
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x47f8
pushq %rbp
movq %rsp, %rbp
xorl %edx, %edx
movb (%rsi,%rdx), %r8b
testb %r8b, %r8b
je 0x47f4
movq (%rdi), %r9
cmpb %r8b, (%r9,%rdx)
jne 0x47f6
incq %rdx
cmpq %rdx, %rcx
jne 0x47da
xorl %eax, %eax
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_begin
MM_JSON_API struct mm_json_iter
mm_json_begin(const mm_json_char *str, mm_json_size len)
{
    struct mm_json_iter iter = MM_JSON_ITER_NULL;
    mm_json_init();
    iter.src = str;
    iter.len = len;
    return iter;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
callq 0x4254
movq %r14, 0x10(%r15)
movq %rbx, 0x18(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_type
static enum mm_json_token_type
mm_json_type(const struct mm_json_token *tok)
{
    if (!tok || !tok->str || !tok->len)
        return MM_JSON_NONE;
    if (tok->str[0] == '{')
        return MM_JSON_OBJECT;
    if (tok->str[0] == '[')
        return MM_JSON_ARRAY;
    if (tok->str[0] == '\"')
        return MM_JSON_STRING;
    if (tok->str[0] == 't')
        return MM_JSON_TRUE;
    if (tok->str[0] == 'f')
        return MM_JSON_FALSE;
    if (tok->str[0] == 'n')
        return MM_JSON_NULL;
    return MM_JSON_NUMBER;
}

// Assembly:
movq (%rdi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x4c98
cmpq $0x0, 0x8(%rdi)
je 0x4c98
pushq %rbp
movq %rsp, %rbp
movzbl (%rcx), %ecx
cmpl $0x6d, %ecx
jg 0x4c62
cmpl $0x22, %ecx
je 0x4c7d
cmpl $0x5b, %ecx
je 0x4c8b
cmpl $0x66, %ecx
jne 0x4c76
movl $0x6, %eax
jmp 0x4c97
cmpl $0x6e, %ecx
je 0x4c84
cmpl $0x74, %ecx
je 0x4c92
movl $0x1, %eax
cmpl $0x7b, %ecx
je 0x4c97
movl $0x3, %eax
jmp 0x4c97
movl $0x4, %eax
jmp 0x4c97
movl $0x7, %eax
jmp 0x4c97
movl $0x2, %eax
jmp 0x4c97
movl $0x5, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_parse
MM_JSON_API struct mm_json_iter
mm_json_parse(struct mm_json_pair *p, const struct mm_json_iter* it)
{
    struct mm_json_iter next;
    MM_JSON_ASSERT(p);
    MM_JSON_ASSERT(it);
    next = mm_json_read(&p->name, it);
    if (next.err) return next;
    return mm_json_read(&p->value, &next);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x38(%rbp), %r15
movq %r15, %rdi
callq 0x4833
cmpl $0x0, (%r15)
je 0x4ccf
movups -0x38(%rbp), %xmm0
movups -0x28(%rbp), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
jmp 0x4ce2
addq $0x28, %r14
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4833
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_num
MM_JSON_API mm_json_size
mm_json_num(const mm_json_char *json, mm_json_size length)
{
    struct mm_json_iter iter;
    struct mm_json_token tok;
    mm_json_size count = 0;

    MM_JSON_ASSERT(json);
    MM_JSON_ASSERT(length);
    if (!json || !length)
        return 0;

    iter = mm_json_begin(json, length);
    iter = mm_json_read(&tok, &iter);
    while (!iter.err) {
        count += (1 + tok.sub);
        iter = mm_json_read(&tok, &iter);
    }
    return count;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x4d59
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4254
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %r15
movaps %xmm0, (%r15)
movq %r14, 0x10(%r15)
movq %rbx, 0x18(%r15)
leaq -0x60(%rbp), %rbx
leaq -0x88(%rbp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4833
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movaps %xmm1, 0x10(%r15)
movaps %xmm0, (%r15)
cmpl $0x0, (%r15)
je 0x4d6b
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
leaq -0x60(%rbp), %r14
leaq -0x88(%rbp), %r15
leaq -0x40(%rbp), %r12
movq -0x70(%rbp), %rax
addq %rax, %rbx
incq %rbx
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4833
movups -0x60(%rbp), %xmm0
movups -0x50(%rbp), %xmm1
movaps %xmm1, -0x30(%rbp)
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, -0x40(%rbp)
je 0x4d7c
jmp 0x4d5b
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_load
MM_JSON_API enum mm_json_status
mm_json_load(struct mm_json_token *toks, mm_json_size max, mm_json_size *read,
            const mm_json_char *json, mm_json_size length)
{
    enum mm_json_status status = MM_JSON_OK;
    struct mm_json_token tok;
    struct mm_json_iter iter;

    MM_JSON_ASSERT(toks);
    MM_JSON_ASSERT(json);
    MM_JSON_ASSERT(length);
    MM_JSON_ASSERT(max);
    MM_JSON_ASSERT(read);

    if (!toks || !json || !length || !max || !read)
        return MM_JSON_INVAL;
    if (*read >= max)
        return MM_JSON_OUT_OF_TOKEN;

    iter = mm_json_begin(json, length);
    iter = mm_json_read(&tok, &iter);
    if (iter.err && iter.len)
        return MM_JSON_PARSING_ERROR;

    while (iter.len) {
        toks[*read] = tok;
        *read += 1;
        if (*read > max) return MM_JSON_OUT_OF_TOKEN;
        if (toks[*read-1].type == MM_JSON_OBJECT ||  toks[*read-1].type == MM_JSON_ARRAY) {
            status = mm_json_load(toks, max, read, toks[*read-1].str, toks[*read-1].len);
            if (status != MM_JSON_OK) return status;
        }

        iter = mm_json_read(&tok, &iter);
        if (iter.err && iter.src && iter.len)
            return MM_JSON_PARSING_ERROR;
    }
    return status;
}

// Assembly:
movl $0x1, %eax
testq %rdx, %rdx
je 0x4f2c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r15
testq %rsi, %rsi
je 0x4f1e
movq %rdi, %r12
testq %rdi, %rdi
je 0x4f1e
movq %rcx, %rbx
testq %rcx, %rcx
je 0x4f1e
movq %r8, %r13
testq %r8, %r8
je 0x4f1e
movq %rdx, %r14
movl $0x2, %eax
cmpq %r15, (%rdx)
jae 0x4f1e
callq 0x4254
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdx
movaps %xmm0, (%rdx)
movq %rbx, 0x10(%rdx)
movq %r13, 0x18(%rdx)
leaq -0x70(%rbp), %rbx
leaq -0x98(%rbp), %rsi
movq %rbx, %rdi
movq %rdx, %r13
callq 0x4833
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movaps %xmm1, 0x10(%r13)
movaps %xmm0, (%r13)
cmpl $0x0, (%r13)
je 0x4e5c
cmpq $0x0, -0x38(%rbp)
jne 0x4f19
leaq -0x50(%rbp), %r13
cmpq $0x0, -0x38(%rbp)
je 0x4f2d
movq (%r14), %rax
leaq (%rax,%rax,4), %rax
movq -0x78(%rbp), %rcx
movq %rcx, 0x20(%r12,%rax,8)
movups -0x98(%rbp), %xmm0
movups -0x88(%rbp), %xmm1
movups %xmm1, 0x10(%r12,%rax,8)
movups %xmm0, (%r12,%rax,8)
movq (%r14), %rcx
leaq 0x1(%rcx), %rax
movq %rax, (%r14)
cmpq %r15, %rax
ja 0x4f31
leaq (%rcx,%rcx,4), %rcx
movl 0x20(%r12,%rcx,8), %ecx
decl %ecx
cmpl $0x1, %ecx
ja 0x4ed7
leaq (%rax,%rax,4), %rax
movq -0x28(%r12,%rax,8), %rcx
movq -0x20(%r12,%rax,8), %r8
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4dac
testl %eax, %eax
jne 0x4f1e
movq %rbx, %rdi
leaq -0x98(%rbp), %rsi
movq %r13, %rdx
callq 0x4833
movups -0x70(%rbp), %xmm0
movups -0x60(%rbp), %xmm1
movaps %xmm1, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
cmpl $0x0, -0x50(%rbp)
je 0x4e60
cmpq $0x0, -0x40(%rbp)
je 0x4e60
cmpq $0x0, -0x38(%rbp)
je 0x4e60
movl $0x3, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x4f1e
movl $0x2, %eax
jmp 0x4f1e
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_path_parse_name
static const mm_json_char*
mm_json_path_parse_name(struct mm_json_token *tok, const mm_json_char *path,
    mm_json_char delimiter)
{
    const mm_json_char *del;
    const mm_json_char *begin, *end;
    if (!path || *path == '\0')
        return NULL;

    tok->str = path;
    del = mm_json_strchr(tok->str, delimiter, -1);
    begin = mm_json_strchr(tok->str, '[', -1);
    end = mm_json_strchr(tok->str, ']', -1);

    /* array part left */
    if (begin && end && begin == tok->str) {
        tok->len = (mm_json_size)((end - begin) + 1);
        if (*(end + 1) == '\0')
            return NULL;
        if (*(end + 1) == '.')
            return(end + 2);
        else return(end + 1);
    }

    /* only array after name */
    if (begin < del) {
        tok->len = (mm_json_size)(begin - tok->str);
        return begin;
    }

    if (!del) return NULL;
    if (*del == '\0') {
        tok->len = (mm_json_size)(del - tok->str);
        return NULL;
    }
    tok->len = (mm_json_size)(del - tok->str);
    return del+1;
}

// Assembly:
cmpb $0x0, (%rsi)
je 0x53f2
pushq %rbp
movq %rsp, %rbp
movq %rsi, (%rdi)
movb (%rsi), %al
movq %rsi, %rcx
testb %al, %al
je 0x53a4
movq %rsi, %rcx
cmpb %dl, %al
je 0x53a4
movb 0x1(%rcx), %al
incq %rcx
testb %al, %al
jne 0x5396
movb (%rsi), %dl
movq %rsi, %rax
testb %dl, %dl
je 0x53bf
movq %rsi, %rax
cmpb $0x5b, %dl
je 0x53bf
movb 0x1(%rax), %dl
incq %rax
testb %dl, %dl
jne 0x53b0
movb (%rsi), %r8b
movq %rsi, %rdx
testb %r8b, %r8b
je 0x53df
movq %rsi, %rdx
cmpb $0x5d, %r8b
je 0x53df
movb 0x1(%rdx), %r8b
incq %rdx
testb %r8b, %r8b
jne 0x53cd
movq %rax, %r8
subq %rsi, %r8
je 0x53f5
cmpq %rcx, %rax
jae 0x5415
movq %r8, 0x8(%rdi)
jmp 0x5438
xorl %eax, %eax
retq
movq %rdx, %rcx
subq %rax, %rcx
incq %rcx
movq %rcx, 0x8(%rdi)
movzbl 0x1(%rdx), %eax
testl %eax, %eax
je 0x542e
cmpl $0x2e, %eax
jne 0x5432
addq $0x2, %rdx
jmp 0x5435
movq %rcx, %rdx
subq %rsi, %rdx
xorl %eax, %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
movq %rdx, 0x8(%rdi)
cmovneq %rcx, %rax
jmp 0x5438
xorl %eax, %eax
jmp 0x5438
incq %rdx
movq %rdx, %rax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_query_number_del
MM_JSON_API mm_json_int
mm_json_query_number_del(mm_json_number *num, struct mm_json_token *toks, mm_json_size count,
    const mm_json_char *path, mm_json_char del)
{
    struct mm_json_token *tok;
    MM_JSON_ASSERT(toks);
    MM_JSON_ASSERT(count);
    MM_JSON_ASSERT(num);
    MM_JSON_ASSERT(path);
    if (!toks || !count || !num || !path)
        return MM_JSON_NONE;

    tok = mm_json_query_del(toks, count, path, del);
    if (!tok) return MM_JSON_NONE;
    if (tok->type != MM_JSON_NUMBER)
        return tok->type;
    return mm_json_convert(num, tok);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
xorl %ebx, %ebx
testq %rcx, %rcx
je 0x5499
movq %rdi, %r14
testq %rdi, %rdi
je 0x5499
testq %rsi, %rsi
je 0x5499
testq %rdx, %rdx
je 0x5499
movsbl %r8b, %eax
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
callq 0x4f38
testq %rax, %rax
je 0x5499
movl 0x20(%rax), %ebx
cmpl $0x3, %ebx
jne 0x5499
movq %r14, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x4464
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_query_string_del
MM_JSON_API mm_json_int
mm_json_query_string_del(mm_json_char *buffer, mm_json_size max, mm_json_size *size,
    struct mm_json_token *toks, mm_json_size count, const mm_json_char *path, mm_json_char del)
{
    struct mm_json_token *tok;
    MM_JSON_ASSERT(toks);
    MM_JSON_ASSERT(count);
    MM_JSON_ASSERT(buffer);
    MM_JSON_ASSERT(size);
    MM_JSON_ASSERT(path);
    if (!toks || !count || !buffer || !size || !path)
        return MM_JSON_NONE;

    tok = mm_json_query_del(toks, count, path, del);
    if (!tok) return MM_JSON_NONE;
    if (tok->type != MM_JSON_STRING)
        return tok->type;
    *size = mm_json_cpy(buffer, max, tok);
    return tok->type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %r12d, %r12d
testq %r9, %r9
je 0x5558
movq %rdx, %rbx
testq %rdx, %rdx
je 0x5558
movq %rdi, %r15
testq %rdi, %rdi
je 0x5558
testq %rcx, %rcx
je 0x5558
testq %r8, %r8
je 0x5558
movq %rsi, %r14
movsbl 0x10(%rbp), %eax
movq %rcx, %rdi
movq %r8, %rsi
movq %r9, %rdx
movl %eax, %ecx
callq 0x4f38
testq %rax, %rax
je 0x5558
movl 0x20(%rax), %r12d
cmpl $0x4, %r12d
jne 0x5558
testq %r14, %r14
je 0x554e
movq 0x8(%rax), %rdx
leaq 0x1(%rdx), %rsi
leaq -0x1(%r14), %rcx
cmpq %r14, %rsi
cmovbeq %rdx, %r14
cmovbeq %rdx, %rcx
testq %rcx, %rcx
je 0x5547
movl $0x1, %edx
xorl %esi, %esi
movq (%rax), %rdi
movb (%rdi,%rsi), %dil
movb %dil, (%r15,%rsi)
movl %edx, %esi
incl %edx
cmpq %rsi, %rcx
ja 0x5533
movb $0x0, (%r15,%rcx)
jmp 0x5551
xorl %r14d, %r14d
movq %r14, (%rbx)
movl 0x20(%rax), %r12d
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/mm_json.h
// Function: mm_json_query_type_del
MM_JSON_API mm_json_int
mm_json_query_type_del(struct mm_json_token *toks, mm_json_size count, const mm_json_char *path,
    mm_json_char del)
{
    struct mm_json_token *tok;
    MM_JSON_ASSERT(toks);
    MM_JSON_ASSERT(count);
    MM_JSON_ASSERT(path);
    if (!toks || !count || !path)
        return MM_JSON_NONE;

    tok = mm_json_query_del(toks, count, path, del);
    if (!tok) return MM_JSON_NONE;
    return tok->type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %r8b
orb %al, %r8b
testq %rdx, %rdx
sete %al
xorl %ebx, %ebx
orb %r8b, %al
jne 0x55b1
movsbl %cl, %ecx
callq 0x4f38
testq %rax, %rax
je 0x55b1
movl 0x20(%rax), %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/parse-schema.c
// Function: parse_range
void parse_range(schema_handle_t *handle, const char *str, int len)
{
    struct mm_json_iter array = mm_json_begin(str, len);
    struct mm_json_token tok;
    array = mm_json_read(&tok, &array);
    if(!array.src) {
        fprintf(stdout, "[WARNING] Unexpected range termination in parse_range()\n");
        return;
    }

    if(tok.type == MM_JSON_NUMBER)
        handle->value_min = atof(tok.str);
    else
        fprintf(stdout, "[WARNING] Unexpected Range Type %d For Min\n", tok.type);

    array = mm_json_read(&tok, &array);
    if(!array.src) {
        fprintf(stdout, "[WARNING] Unexpected range termination in parse_range() P2\n");
        return;
    }

    if(tok.type == MM_JSON_NUMBER)
        handle->value_max = atof(tok.str);
    else
        fprintf(stdout, "[WARNING] Unexpected Range Type %d For Max\n", tok.type);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movslq %edx, %r12
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %r15
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
callq 0x4254
movq %r14, 0x10(%r15)
movq %r12, 0x18(%r15)
leaq -0x90(%rbp), %r14
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x4833
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movaps %xmm1, 0x10(%r15)
movaps %xmm0, (%r15)
cmpq $0x0, 0x10(%r15)
je 0x5964
movl -0x28(%rbp), %edx
cmpl $0x3, %edx
jne 0x597c
movq -0x48(%rbp), %rdi
callq 0x20b0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x4c(%rbx)
jmp 0x5994
movq 0x766d(%rip), %rax      # 0xcfd8
movq (%rax), %rcx
leaq 0x3d0f(%rip), %rdi      # 0x9684
movl $0x38, %esi
jmp 0x59ee
movq 0x7655(%rip), %rax      # 0xcfd8
movq (%rax), %rdi
leaq 0x3d30(%rip), %rsi      # 0x96bd
xorl %eax, %eax
callq 0x21b0
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x4833
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movaps %xmm1, 0x10(%r15)
movaps %xmm0, (%r15)
cmpq $0x0, 0x10(%r15)
je 0x59d8
movl -0x28(%rbp), %edx
cmpl $0x3, %edx
jne 0x59fa
movq -0x48(%rbp), %rdi
callq 0x20b0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x50(%rbx)
jmp 0x5a12
movq 0x75f9(%rip), %rax      # 0xcfd8
movq (%rax), %rcx
leaq 0x3d00(%rip), %rdi      # 0x96e9
movl $0x3b, %esi
movl $0x1, %edx
callq 0x22b0
jmp 0x5a12
movq 0x75d7(%rip), %rax      # 0xcfd8
movq (%rax), %rdi
leaq 0x3d1a(%rip), %rsi      # 0x9725
xorl %eax, %eax
callq 0x21b0
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/schema.c
// Function: br_destroy_schema
void br_destroy_schema(schema_t sch)
{
    free(sch.json);
    for(int i=0; i<sch.elements; ++i) {
        if(sch.handles[i].opts) {
            free(sch.handles[i].opts->ids);
            for(size_t j=0; j<sch.handles[i].opts->num_opts; ++j)
                free((void*)sch.handles[i].opts->labels[j]);
            free(sch.handles[i].opts->labels);
        }
        free((void*)sch.handles[i].documentation);
        free((void*)sch.handles[i].name);
        free((void*)sch.handles[i].short_name);
        free((void*)sch.handles[i].pattern);
        free((void*)sch.handles[i].default_);
        free(sch.handles[i].opts);
    }
    free(sch.handles);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x10(%rbp), %rbx
movq (%rbx), %rdi
callq 0x2030
movslq 0x10(%rbx), %rax
movq %rax, -0x30(%rbp)
testq %rax, %rax
jle 0x6451
leaq 0x10(%rbp), %rax
movq 0x8(%rax), %r15
xorl %r12d, %r12d
imulq $0x58, %r12, %rbx
leaq (%r15,%rbx), %r13
addq $0x8, %r13
movq (%r13), %rax
testq %rax, %rax
je 0x6409
movq (%rax), %rdi
callq 0x2030
movq (%r13), %rax
cmpl $0x0, 0x10(%rax)
je 0x6400
xorl %r14d, %r14d
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %rdi
callq 0x2030
incq %r14
movq (%r13), %rax
movl 0x10(%rax), %ecx
cmpq %rcx, %r14
jb 0x63e4
movq 0x8(%rax), %rdi
callq 0x2030
movq 0x30(%r15,%rbx), %rdi
callq 0x2030
movq 0x18(%r15,%rbx), %rdi
callq 0x2030
movq 0x20(%r15,%rbx), %rdi
callq 0x2030
movq 0x10(%r15,%rbx), %rdi
callq 0x2030
movq 0x40(%r15,%rbx), %rdi
callq 0x2030
movq (%r13), %rdi
callq 0x2030
incq %r12
cmpq -0x30(%rbp), %r12
jne 0x63ba
leaq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2030
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/rtosc/rtosc.c
// Function: rtosc_argument_string
const char *rtosc_argument_string(const char *msg)
{
    assert(msg && *msg);
    while(*++msg); //skip pattern
    while(!*++msg);//skip null
    return msg+1;  //skip comma
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x6768
cmpb $0x0, (%rdi)
je 0x6768
incq %rdi
cmpb $0x0, (%rdi)
leaq 0x1(%rdi), %rdi
jne 0x6751
cmpb $0x0, (%rdi)
leaq 0x1(%rdi), %rdi
je 0x675a
movq %rdi, %rax
popq %rbp
retq
leaq 0x3359(%rip), %rdi      # 0x9ac8
leaq 0x335e(%rip), %rsi      # 0x9ad4
leaq 0x3365(%rip), %rcx      # 0x9ae2
movl $0xd, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/rtosc/rtosc.c
// Function: rtosc_narguments
unsigned rtosc_narguments(const char *msg)
{
    const char *args = rtosc_argument_string(msg);
    int nargs = 0;
    while(*args++)
        nargs += (*args == ']' || *args == '[') ? 0 : 1;
    return nargs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x6740
cmpb $0x0, (%rax)
je 0x67b3
incq %rax
xorl %ecx, %ecx
movb (%rax), %dl
leal -0x5b(%rdx), %esi
andb $-0x3, %sil
cmpb $0x1, %sil
sbbl $-0x1, %ecx
incq %rax
testb %dl, %dl
jne 0x679a
jmp 0x67b5
xorl %ecx, %ecx
movl %ecx, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/rtosc/rtosc.c
// Function: rtosc_type
char rtosc_type(const char *msg, unsigned nargument)
{
    assert(nargument < rtosc_narguments(msg));
    const char *arg = rtosc_argument_string(msg);
    while(1) {
        if(*arg == '[' || *arg == ']')
            ++arg;
        else if(!nargument || !*arg)
            return *arg;
        else
            ++arg, --nargument;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x6787
cmpl %ebx, %eax
jbe 0x67f9
movq %r14, %rdi
callq 0x6740
movzbl (%rax), %ecx
cmpl $0x5b, %ecx
je 0x67ed
cmpl $0x5d, %ecx
je 0x67ed
testl %ebx, %ebx
je 0x67f2
testb %cl, %cl
je 0x67f2
decl %ebx
incq %rax
jmp 0x67d6
movl %ecx, %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3312(%rip), %rdi      # 0x9b12
leaq 0x32cd(%rip), %rsi      # 0x9ad4
leaq 0x3326(%rip), %rcx      # 0x9b34
movl $0x45, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/rtosc/rtosc.c
// Function: nreserved
static unsigned nreserved(const char *args)
{
    unsigned res = 0;
    for(;*args;++args)
        res += has_reserved(*args);

    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movabsq $0x708d70002000, %rcx   # imm = 0x708D70002000
movl $0xa04109, %edx         # imm = 0xA04109
movzbl (%rdi), %esi
leal -0x46(%rsi), %r9d
cmpl $0x2e, %r9d
ja 0x6b4e
movl $0x1, %r8d
btq %r9, %rcx
jb 0x6b46
btq %r9, %rdx
jae 0x6b4e
xorl %r8d, %r8d
addl %r8d, %eax
incq %rdi
jmp 0x6b24
testl %esi, %esi
jne 0x6b43
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/rtosc/rtosc.c
// Function: rtosc_itr_begin
rtosc_arg_itr_t rtosc_itr_begin(const char *msg)
{
    rtosc_arg_itr_t itr;
    itr.type_pos  = advance_past_dummy_args(rtosc_argument_string(msg));
    itr.value_pos = (uint8_t*)(msg+arg_start(msg));

    return itr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x6740
movq %rax, %r14
movzbl (%r14), %eax
cmpl $0x5d, %eax
je 0x6fb9
cmpl $0x5b, %eax
jne 0x6fbe
incq %r14
jmp 0x6fab
movq %rbx, %rdi
callq 0x6740
movq %rax, %rcx
subq %rbx, %rcx
addq $0x4, %rcx
movl $0x1, %edx
incq %rcx
cmpb $0x0, (%rax,%rdx)
leaq 0x1(%rdx), %rdx
jne 0x6fd5
leal 0x3(%rdx), %eax
testq %rdx, %rdx
cmovnsl %edx, %eax
andl $-0x4, %eax
subl %edx, %eax
addl %eax, %ecx
addq %rcx, %rbx
movq %r14, %rax
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/rtosc/rtosc.c
// Function: rtosc_itr_next
rtosc_arg_val_t rtosc_itr_next(rtosc_arg_itr_t *itr)
{
    //current position provides the value
    rtosc_arg_val_t result = {0,{0}};
    result.type = *itr->type_pos;
    if(result.type)
        result.val = extract_arg(itr->value_pos, result.type);

    //advance
    itr->type_pos = advance_past_dummy_args(itr->type_pos+1);
    char type = result.type;
    int size  = arg_size(itr->value_pos, type);
    itr->value_pos += size;


    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %r12
movb (%r12), %al
movb %al, (%rdi)
movsbl %al, %r15d
testb %al, %al
je 0x7044
movq 0x8(%rbx), %rdi
movl %r15d, %esi
callq 0x707d
movq %rax, 0x8(%r14)
movq %rdx, 0x10(%r14)
incq %r12
movzbl (%r12), %eax
cmpl $0x5d, %eax
je 0x7044
cmpl $0x5b, %eax
je 0x7044
movq %r12, (%rbx)
movq 0x8(%rbx), %r12
movq %r12, %rdi
movl %r15d, %esi
callq 0x7198
cltq
addq %r12, %rax
movq %rax, 0x8(%rbx)
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq