//
// cocos2d::CCDictionary::valueForKey_1 from 0x1002f8f10 to 0x1002f8f72 (98 bytes)
//
// 5 xrefs:
// > GameManager::recountUserStats @ 0x10036f559
// > GameLevelManager::tryGetUsername @ 0x10054042f
// > GameLevelManager::userIDForAccountID @ 0x10054070e
// > GameLevelManager::accountIDForUserID @ 0x10054074e
// > GJGameLevel::create @ 0x10054193f
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:29 +0000
//
void *__fastcall cocos2d::CCDictionary::valueForKey_1(__int64 a1, __int64 a2)
{
const void *v2; // rax
void *result; // rax
void *v4; // rbx
_WORD v5[8]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = (const void *)cocos2d::CCDictionary::objectForKey_1(a1, a2);
if ( !v2
|| (result = __dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0)) == nullptr )
{
v5[0] = 0;
result = (void *)sub_10088E600(v5);
if ( (v5[0] & 1) != 0 )
{
v4 = result;
operator delete(__p);
return v4;
}
}
return result;
}