//
// cocos2d::CCDictionary::valueForKey from 0x100422ee8 to 0x100422f60 (120 bytes)
//
// 5 xrefs:
// > GameLevelManager::tryGetUsername @ 0x100093794
// > GameLevelManager::userIDForAccountID @ 0x1000938cc
// > GameLevelManager::accountIDForUserID @ 0x1000938f4
// > GJGameLevel::create @ 0x1000943b8
// > GameManager::recountUserStats @ 0x10031a0f0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
const cocos2d::CCString *__fastcall cocos2d::CCDictionary::valueForKey(cocos2d::CCDictionary *a1, intptr_t a2)
{
cocos2d::CCObject *v2; // x0
const cocos2d::CCString *v3; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
v2 = cocos2d::CCDictionary::objectForKey(a1, a2);
if ( !v2
|| (v3 = (const cocos2d::CCString *)__dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0)) == nullptr )
{
sub_100009900(__p, "");
v3 = (const cocos2d::CCString *)sub_100268E48((__int128 *)__p);
if ( v6 < 0 )
operator delete(__p[0]);
}
return v3;
}