// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../serialize/jsonHelper.h
// Function: JSONHelper::getValueFromKey(char*, char*)
static String* getValueFromKey(char* name, char* s) {
        int len = strlen( s );
        //pull the class name from the serialzed string
        int startIndex = 0;
        for (int i = 0; i < len; i++){
            //iterate through s, checking for each key until we have a match
            bool nameStarted = false;
            char buff[len];
            int loc = 0;
            for(int j = startIndex; j < len; j++) {
                char temp = s[j];
                if(temp == '\'' && !nameStarted) {
                    nameStarted = true;
                } else if(temp == '\'' && nameStarted) {
                    //full name has been discovered
                    startIndex = j+1;
                    break;
                } else if(temp == '[' || temp == '{') { //special case for nested things
                    startIndex = endIndex(s, temp, i);
                } else if(nameStarted) {
                    buff[loc] = temp;
                    loc++;
                }
            }
            buff[loc] = '\0';
            char* keyName = buff;
            if(0 == strncmp(keyName, name, strlen(keyName))) {
                //we have a match!!!
                //get the specific starting place for getting value
                int objSize = len-startIndex;
                char* objectValue = new char[objSize];
                for(int z = 0; z < objSize; z++) {
                    objectValue[z] = s[z+startIndex];
                }
                return getPayloadValue(objectValue);
            }
        }
        return new String("");
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, -0x60(%rbp)
movq %rsi, %rdi
callq 0x7100
testl %eax, %eax
jle 0xcab9
movl %eax, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
xorl %edx, %edx
leal 0xf(%rsi), %ecx
andl $-0x10, %ecx
movq %rcx, -0x58(%rbp)
movl $0x0, -0x2c(%rbp)
movq %rsi, -0x50(%rbp)
movq %rax, -0x38(%rbp)
movq %rsp, -0x40(%rbp)
movq %rsp, %rcx
subq -0x58(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rcx, %rsp
cmpl %eax, %edx
jge 0xca68
movslq %edx, %r12
leal 0x1(%rdx), %r13d
xorl %r14d, %r14d
xorl %r15d, %r15d
movb (%rbx,%r12), %al
cmpb $0x27, %al
jne 0xca27
testb $0x1, %r14b
movb $0x1, %r14b
je 0xca5b
jmp 0xca6d
movl %eax, %ecx
andb $-0x21, %cl
cmpb $0x5b, %cl
jne 0xca47
movsbl %al, %esi
movq %rbx, %rdi
movl -0x2c(%rbp), %edx
callq 0xcd00
movq -0x50(%rbp), %rsi
movl %eax, %edx
jmp 0xca5b
testb $0x1, %r14b
je 0xca5b
movslq %r15d, %r15
movq -0x48(%rbp), %rcx
movb %al, (%rcx,%r15)
incl %r15d
incq %r12
incl %r13d
cmpq %r12, %rsi
jne 0xca14
jmp 0xca70
xorl %r15d, %r15d
jmp 0xca70
movl %r13d, %edx
movq %rdx, %r13
movslq %r15d, %rax
movq -0x48(%rbp), %r14
movb $0x0, (%r14,%rax)
movq %r14, %rdi
callq 0x7100
movq %r14, %rdi
movq -0x60(%rbp), %rsi
movq %rax, %rdx
callq 0x7120
testl %eax, %eax
je 0xcaed
movq -0x40(%rbp), %rsp
movl -0x2c(%rbp), %ecx
incl %ecx
movq -0x38(%rbp), %rax
movl %ecx, -0x2c(%rbp)
cmpl %eax, %ecx
movq %r13, %rdx
movq -0x50(%rbp), %rsi
jne 0xc9f1
movl $0x20, %edi
callq 0x7230
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
leaq 0x1a9bc(%rip), %rax     # 0x27490
movq %rax, (%rbx)
movl $0x1, %edi
callq 0x7030
movq %rax, 0x18(%rbx)
movb $0x0, (%rax)
movq %rbx, %rax
jmp 0xcb39
movq -0x38(%rbp), %r15
movl %r15d, %r14d
subl %r13d, %r14d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovnsl %r14d, %eax
movslq %eax, %rdi
callq 0x7030
movq %rax, %r12
testl %r14d, %r14d
jle 0xcb2d
movslq %r13d, %rax
addq %rax, %rbx
notl %r13d
addl %r15d, %r13d
incq %r13
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x71a0
movq %r12, %rdi
callq 0xc82c
movq -0x40(%rbp), %rsp
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
nop