//
// cocos2d::CCDictionary::valueForKey from 0x7c7a9c to 0x7c7af6 (90 bytes)
//
// 3 xrefs:
// > GameManager::recountUserStats @ 0x41bce8
// > GameLevelManager::accountIDForUserID @ 0x4aa65a
// > GameLevelManager::userIDForAccountID @ 0x4aa66c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:26 +0000
//
void *__fastcall cocos2d::CCDictionary::valueForKey(cocos2d::CCDictionary *this, int a2, int a3, int a4)
{
const void *v4; // r0
void *v5; // r5
cocos2d::CCDictionary *v7; // [sp+0h] [bp-10h] BYREF
int v8; // [sp+4h] [bp-Ch]
int v9; // [sp+8h] [bp-8h]
int v10; // [sp+Ch] [bp-4h]
v7 = this;
v8 = a2;
v9 = a3;
v10 = a4;
v4 = (const void *)cocos2d::CCDictionary::objectForKey(this, a2);
if ( !v4
|| (v5 = _dynamic_cast(
v4,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0)) == nullptr )
{
v7 = nullptr;
v8 = 0;
v9 = 0;
std::string::__init((int *)&v7, &unk_B6B226, 0);
v5 = (void *)cocos2d::CCString::create(&v7);
std::string::~string((int)&v7);
}
return v5;
}