// File: /workspace/github_c_makefile_star2_O1/mruby-zest[P]osc-bridge/src/schema.c
// Function: sm_get
schema_handle_t sm_get(schema_t sch, uri_t u)
{
    schema_handle_t invalid;
    memset(&invalid, 0, sizeof(invalid));
    invalid.flag = 0xdeadbeef;
    //printf("Getting a handle(%s)...\n", u);
    for(int i=0; i<sch.elements; ++i)
        if(match_path(u, sch.handles[i].pattern))
            return sch.handles[i];
    if(!(strstr(u, "VoicePar") && strstr(u, "Enabled")))
        printf("[WARNING:osc-bridge] Invalid Handle \"%s\"...\n", u);
    return invalid;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
movslq 0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
testq %rax, %rax
jle 0x65d8
leaq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
xorl %eax, %eax
movq %rax, -0x58(%rbp)
imulq $0x58, %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x48(%rbp)
movq 0x10(%rax,%rcx), %r12
testq %r12, %r12
je 0x65c7
movq -0x38(%rbp), %r13
movb (%r13), %cl
testb %cl, %cl
sete %al
je 0x65bc
movzbl (%r12), %edx
cmpl $0x5b, %edx
je 0x64f7
testl %edx, %edx
je 0x65bc
cmpb %dl, %cl
jne 0x65c7
incq %r13
jmp 0x65b4
callq 0x22f0
movq (%rax), %r15
movsbq 0x1(%r12), %r14
testb $0x8, 0x1(%r15,%r14,2)
je 0x66a3
leaq 0x1(%r12), %rdi
callq 0x2280
testb %r14b, %r14b
je 0x6665
movl %eax, %ebx
addq $0x2, %r12
movsbq %r14b, %rax
testb $0x8, 0x1(%r15,%rax,2)
je 0x6547
movb (%r12), %r14b
incq %r12
testb %r14b, %r14b
jne 0x652a
jmp 0x6665
cmpb $0x2c, %r14b
jne 0x6665
movq %r12, %rdi
callq 0x2280
movl %eax, %r14d
movb (%r12), %al
testb %al, %al
je 0x6684
movsbq %al, %rcx
testb $0x8, 0x1(%r15,%rcx,2)
je 0x657e
movb 0x1(%r12), %al
incq %r12
jmp 0x6560
cmpb $0x5d, %al
jne 0x6684
movq %r13, %rdi
callq 0x2280
movb (%r13), %cl
testb %cl, %cl
je 0x65ab
movsbq %cl, %rcx
testb $0x8, 0x1(%r15,%rcx,2)
je 0x65ab
movb 0x1(%r13), %cl
incq %r13
jmp 0x6592
cmpl %ebx, %eax
jl 0x65c7
cmpl %r14d, %eax
jg 0x65c7
incq %r12
jmp 0x64c6
testb $0x1, %al
jne 0x663f
cmpb $0x0, (%r12)
jne 0x663f
movq -0x58(%rbp), %rax
incq %rax
cmpq -0x50(%rbp), %rax
jne 0x64a4
leaq 0x3278(%rip), %rsi      # 0x9857
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
callq 0x22d0
testq %rax, %rax
je 0x6604
leaq 0x3269(%rip), %rsi      # 0x9860
movq %rbx, %rdi
callq 0x22d0
testq %rax, %rax
jne 0x6615
leaq 0x325d(%rip), %rdi      # 0x9868
movq %rbx, %rsi
xorl %eax, %eax
callq 0x20f0
movq -0x30(%rbp), %rax
movl $0xdeadbeef, (%rax)     # imm = 0xDEADBEEF
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax)
movups %xmm0, 0x14(%rax)
movups %xmm0, 0x24(%rax)
movups %xmm0, 0x34(%rax)
movups %xmm0, 0x44(%rax)
movl $0x0, 0x54(%rax)
jmp 0x6656
movq -0x40(%rbp), %rsi
addq -0x48(%rbp), %rsi
movl $0xb, %ecx
movq -0x30(%rbp), %rax
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3273(%rip), %rdi      # 0x98df
leaq 0x3234(%rip), %rsi      # 0x98a7
leaq 0x323a(%rip), %rcx      # 0x98b4
movl $0x1d, %edx
callq 0x2130
leaq 0x3264(%rip), %rdi      # 0x98ef
leaq 0x3215(%rip), %rsi      # 0x98a7
leaq 0x321b(%rip), %rcx      # 0x98b4
movl $0x22, %edx
callq 0x2130
leaq 0x31eb(%rip), %rdi      # 0x9895
leaq 0x31f6(%rip), %rsi      # 0x98a7
leaq 0x31fc(%rip), %rcx      # 0x98b4
movl $0x19, %edx
callq 0x2130