// File: /workspace/github_c_makefile_star2_O3/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, -0x30(%rbp)
movq %rdi, -0x40(%rbp)
movslq 0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
testq %rax, %rax
jle 0x6510
leaq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
xorl %eax, %eax
movq %rax, -0x60(%rbp)
imulq $0x58, %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x58(%rbp)
movq 0x10(%rax,%rcx), %r12
testq %r12, %r12
je 0x64ff
movq -0x30(%rbp), %rax
movb (%rax), %r15b
testb %r15b, %r15b
je 0x6577
movq -0x30(%rbp), %r13
movzbl (%r12), %eax
cmpl $0x5b, %eax
je 0x6439
testl %eax, %eax
je 0x64ff
cmpb %al, %r15b
jne 0x64ff
movb 0x1(%r13), %r15b
incq %r13
jmp 0x64f1
callq 0x22f0
movq (%rax), %r14
movsbq 0x1(%r12), %rbx
testb $0x8, 0x1(%r14,%rbx,2)
je 0x65db
leaq 0x1(%r12), %rdi
callq 0x2280
testb %bl, %bl
je 0x659d
addq $0x2, %r12
movsbq %bl, %rcx
testb $0x8, 0x1(%r14,%rcx,2)
je 0x6485
movb (%r12), %bl
incq %r12
testb %bl, %bl
jne 0x6469
jmp 0x659d
cmpb $0x2c, %bl
jne 0x659d
movl %eax, -0x34(%rbp)
movq %r12, %rdi
callq 0x2280
movl %eax, %ebx
movb (%r12), %al
testb %al, %al
je 0x65bc
movsbq %al, %rcx
testb $0x8, 0x1(%r14,%rcx,2)
je 0x64bd
movb 0x1(%r12), %al
incq %r12
jmp 0x649f
cmpb $0x5d, %al
jne 0x65bc
movq %r13, %rdi
callq 0x2280
movsbq %r15b, %rcx
testb $0x8, 0x1(%r14,%rcx,2)
je 0x64e8
movb 0x1(%r13), %r15b
incq %r13
testb %r15b, %r15b
jne 0x64cd
xorl %r15d, %r15d
cmpl -0x34(%rbp), %eax
jl 0x64ff
cmpl %ebx, %eax
jg 0x64ff
incq %r12
testb %r15b, %r15b
jne 0x6412
jmp 0x6577
movq -0x60(%rbp), %rax
incq %rax
cmpq -0x50(%rbp), %rax
jne 0x63e0
leaq 0x3340(%rip), %rsi      # 0x9857
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x22d0
testq %rax, %rax
je 0x653c
leaq 0x3331(%rip), %rsi      # 0x9860
movq %rbx, %rdi
callq 0x22d0
testq %rax, %rax
jne 0x654d
leaq 0x3325(%rip), %rdi      # 0x9868
movq %rbx, %rsi
xorl %eax, %eax
callq 0x20f0
movq -0x40(%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 0x658e
movq -0x48(%rbp), %rsi
addq -0x58(%rbp), %rsi
movl $0xb, %ecx
movq -0x40(%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 0x333b(%rip), %rdi      # 0x98df
leaq 0x32fc(%rip), %rsi      # 0x98a7
leaq 0x3302(%rip), %rcx      # 0x98b4
movl $0x1d, %edx
callq 0x2130
leaq 0x332c(%rip), %rdi      # 0x98ef
leaq 0x32dd(%rip), %rsi      # 0x98a7
leaq 0x32e3(%rip), %rcx      # 0x98b4
movl $0x22, %edx
callq 0x2130
leaq 0x32b3(%rip), %rdi      # 0x9895
leaq 0x32be(%rip), %rsi      # 0x98a7
leaq 0x32c4(%rip), %rcx      # 0x98b4
movl $0x19, %edx
callq 0x2130