//
// GameManager::stringForCustomObject from 0x415410 to 0x4154aa (154 bytes)
//
// 2 xrefs:
// > EditorUI::onCreateObject @ 0x487522
// > EditorUI::createCustomItems @ 0x6f6630
//
// 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 11:47:40 +0000
//
GameManager *__fastcall GameManager::stringForCustomObject(GameManager *this, int a2, const char *a3, int a4)
{
int v5; // r5
cocos2d::CCString *v6; // r0
const char *CString; // r8
size_t v8; // r0
cocos2d::CCString *v9; // r5
const char *v10; // r0
const char *v11; // r5
size_t v12; // r0
const char *v13; // r1
size_t v14; // r2
int *v15; // r0
GameManager *v17; // [sp+0h] [bp-10h] BYREF
int v18; // [sp+4h] [bp-Ch]
const char *v19; // [sp+8h] [bp-8h]
int v20; // [sp+Ch] [bp-4h]
v17 = this;
v18 = a2;
v19 = a3;
v20 = a4;
v5 = *(_DWORD *)(a2 + 336);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3);
v17 = nullptr;
v18 = 0;
v19 = nullptr;
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = strlen(CString);
std::string::__init((int *)&v17, CString, v8);
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v5, &v17);
std::string::~string((int)&v17);
if ( v9 )
{
v10 = (const char *)cocos2d::CCString::getCString(v9);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
v11 = v10;
v12 = strlen(v10);
v13 = v11;
v14 = v12;
v15 = (int *)this;
}
else
{
v15 = (int *)this;
v14 = 0;
*(_DWORD *)this = 0;
v13 = (const char *)&unk_B6B226;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
}
std::string::__init(v15, v13, v14);
return this;
}