// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x7100
movq %rax, %r15
testl %r15d, %r15d
setg %cl
jle 0xcd49
movl %r15d, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
xorl %esi, %esi
leal 0xf(%rdx), %eax
andl $-0x10, %eax
movq %rax, -0x70(%rbp)
movl $0x0, -0x30(%rbp)
movq %r15, -0x38(%rbp)
movq %rdx, -0x60(%rbp)
movq %r14, -0x50(%rbp)
movq %rsp, %r12
movq %rsp, %rax
subq -0x70(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rax, %rsp
cmpl %r15d, %esi
movb %cl, -0x29(%rbp)
jge 0xcc95
movq %r12, -0x40(%rbp)
movslq %esi, %r13
leal 0x1(%rsi), %r12d
incq %r13
xorl %r14d, %r14d
xorl %r15d, %r15d
movb -0x1(%rbx,%r13), %cl
cmpb $0x27, %cl
jne 0xcc32
movb $0x1, %al
testb $0x1, %r14b
je 0xcc52
xorl %eax, %eax
movl %r12d, %esi
jmp 0xcc6d
movl %ecx, %eax
andb $-0x21, %al
cmpb $0x5b, %al
jne 0xcc57
movsbl %cl, %esi
movq %rbx, %rdi
movl -0x30(%rbp), %edx
callq 0xcf4e
movq -0x60(%rbp), %rdx
movl %eax, %esi
movb $0x1, %al
jmp 0xcc6d
movb $0x1, %r14b
jmp 0xcc6d
movb $0x1, %al
testb $0x1, %r14b
je 0xcc6d
movslq %r15d, %r15
movq -0x58(%rbp), %rdi
movb %cl, (%rdi,%r15)
incl %r15d
testb %al, %al
je 0xcc80
incl %r12d
leaq 0x1(%r13), %rax
cmpq %rdx, %r13
movq %rax, %r13
jl 0xcc19
movq %rsi, -0x48(%rbp)
movslq %r15d, %rax
movq -0x50(%rbp), %r14
movq -0x38(%rbp), %r13
movq -0x40(%rbp), %r12
jmp 0xcc9e
movq %r15, %r13
movq %rsi, -0x48(%rbp)
xorl %eax, %eax
movq -0x58(%rbp), %r15
movb $0x0, (%r15,%rax)
movq %r15, %rdi
callq 0x7100
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x7120
movl %eax, %r14d
testl %eax, %eax
movq %r13, %r15
jne 0xcd1f
movq %r12, -0x40(%rbp)
movq -0x38(%rbp), %rax
movl %eax, %r15d
movq -0x48(%rbp), %r12
subl %r12d, %r15d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovnsl %r15d, %eax
movslq %eax, %rdi
callq 0x7030
movq %rax, %r13
testl %r15d, %r15d
movq -0x38(%rbp), %r15
jle 0xcd0f
movslq %r12d, %rsi
addq %rbx, %rsi
movl %r12d, %edx
notl %edx
addl %r15d, %edx
incq %rdx
movq %r13, %rdi
callq 0x71a0
movq %r13, %rdi
callq 0xc9f0
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %r12
movq %r12, %rsp
testl %r14d, %r14d
movq -0x60(%rbp), %rdx
movq -0x48(%rbp), %rsi
je 0xcd4b
movl -0x30(%rbp), %eax
incl %eax
movl %eax, -0x30(%rbp)
cmpl %r15d, %eax
setl %cl
movq -0x50(%rbp), %r14
jne 0xcbe8
jmp 0xcd4e
jmp 0xcd4e
movb -0x29(%rbp), %cl
testb $0x1, %cl
movq -0x68(%rbp), %r14
jne 0xcd86
movl $0x20, %edi
callq 0x7230
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
leaq 0x1b6e6(%rip), %rax     # 0x28458
movq %rax, (%r14)
movl $0x1, %edi
callq 0x7030
movq %rax, 0x18(%r14)
movb $0x0, (%rax)
movq %r14, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x7200
movq %rbx, %rdi
callq 0x73b0
nop