//
// GameManager::stringForCustomObject from 0x1003b64c0 to 0x1003b6550 (144 bytes)
//
// 2 xrefs:
// > EditorUI::createCustomItems @ 0x100184928
// > EditorUI::onCreateObject @ 0x100477460
//
// This function is hookable on this platform (idp: arm, 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 11:03:56 +0000
//
_QWORD *__usercall GameManager::stringForCustomObject@(__int64 a1@, int a2@, _QWORD *a3@)
{
__int64 v4; // x20
void *v5; // x0
char *CString; // x0
__int64 v7; // x0
__int64 v8; // x20
char *v9; // x1
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v12; // [xsp+1Fh] [xbp-11h]
v4 = *(_QWORD *)(a1 + 456);
v5 = sub_1003065B0("%i", a2);
CString = (char *)cocos2d::CCString::getCString((__int64)v5);
sub_100009900(__p, CString);
v7 = cocos2d::CCDictionary::objectForKey(v4, __p);
v8 = v7;
if ( v12 < 0 )
{
operator delete(__p[0]);
if ( v8 )
goto LABEL_3;
LABEL_5:
v9 = "";
return sub_100009900(a3, v9);
}
if ( !v7 )
goto LABEL_5;
LABEL_3:
v9 = (char *)cocos2d::CCString::getCString(v8);
return sub_100009900(a3, v9);
}