//
// GameManager::stringForCustomObject from 0x322fe0 to 0x323054 (116 bytes)
//
// 2 xrefs:
// > EditorUI::createCustomItems @ 0x3880bc
// > EditorUI::onCreateObject @ 0x3a3db0
//
// 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
//
GameManager *__fastcall GameManager::stringForCustomObject(GameManager *this, int a2, const char *a3)
{
cocos2d::CCDictionary *v4; // r7
cocos2d::CCString *v5; // r0
char *CString; // r0
cocos2d::CCString *v7; // r7
char *v8; // r1
GameManager *v9; // r0
std::string v11; // [sp+8h] [bp-Ch] BYREF
v4 = *(cocos2d::CCDictionary **)(a2 + 308);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_776584((int)&v11, CString);
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v4, &v11);
sub_774008(&v11);
if ( v7 )
{
v8 = (char *)cocos2d::CCString::getCString(v7);
v9 = this;
}
else
{
v9 = this;
v8 = (char *)&unk_939830;
}
sub_776584((int)v9, v8);
return this;
}