// File: /workspace/github_cpp_makefile_star2_O2/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, -0x58(%rbp)
movq %rsi, %rdi
callq 0x7110
movslq %eax, %rsi
xorl %ecx, %ecx
testl %esi, %esi
movl $0x0, %edx
cmovgl %eax, %edx
movl %edx, -0x30(%rbp)
movq %rax, -0x48(%rbp)
movl %eax, %eax
addq $0xf, %rax
andq $-0x10, %rax
movq %rax, -0x50(%rbp)
xorl %eax, %eax
movq %rsi, -0x40(%rbp)
cmpl -0x30(%rbp), %ecx
je 0xc24d
movl %ecx, -0x2c(%rbp)
movq %rsp, -0x60(%rbp)
movq %rsp, %rcx
subq -0x50(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movq %rcx, %rsp
movslq %eax, %r13
leal 0x1(%r13), %r12d
xorl %r15d, %r15d
xorl %r14d, %r14d
movslq %r15d, %rdi
cmpq %rsi, %r13
jge 0xc209
movb (%rbx,%r13), %cl
cmpb $0x27, %cl
jne 0xc1d1
testb $0x1, %r14b
movb $0x1, %r14b
je 0xc201
jmp 0xc20e
movl %ecx, %edx
andb $-0x21, %dl
cmpb $0x5b, %dl
jne 0xc1ef
movsbl %cl, %esi
movq %rbx, %rdi
movl -0x2c(%rbp), %edx
callq 0xc43a
movq -0x40(%rbp), %rsi
jmp 0xc201
testb $0x1, %r14b
je 0xc201
movq -0x38(%rbp), %rdx
movb %cl, (%rdx,%rdi)
incl %edi
movl %edi, %r15d
incq %r13
incl %r12d
jmp 0xc1b5
movl %eax, %r14d
jmp 0xc211
movl %r12d, %r14d
movq -0x38(%rbp), %r15
movb $0x0, (%r15,%rdi)
movq %r15, %rdi
callq 0x7110
movq %r15, %rdi
movq -0x58(%rbp), %rsi
movq %rax, %rdx
callq 0x7140
testl %eax, %eax
movq -0x60(%rbp), %r12
je 0xc26c
movq %r12, %rsp
movl -0x2c(%rbp), %ecx
incl %ecx
movq -0x40(%rbp), %rsi
movl %r14d, %eax
jmp 0xc18a
pushq $0x20
popq %rdi
callq 0x7250
movq %rax, %rbx
leaq 0xbe8b(%rip), %rsi      # 0x180ea
movq %rax, %rdi
callq 0x8e1e
movq %rbx, %rax
jmp 0xc2b2
movq -0x48(%rbp), %r15
movl %r14d, %r13d
subl %r14d, %r15d
xorl %r14d, %r14d
testl %r15d, %r15d
pushq $-0x1
popq %rax
cmovnsl %r15d, %eax
movslq %eax, %rdi
cmovlel %r14d, %r15d
callq 0x7030
movslq %r13d, %rcx
addq %rcx, %rbx
cmpq %r14, %r15
je 0xc2a7
movb (%rbx,%r14), %cl
movb %cl, (%rax,%r14)
incq %r14
jmp 0xc295
movq %rax, %rdi
callq 0xc014
movq %r12, %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 0x7220
movq %r14, %rdi
callq 0x7390