//
// GameManager::addNewCustomObject from 0x41538c to 0x415408 (124 bytes)
//
// 1 xrefs:
// > EditorUI::onNewCustomItem @ 0x6f6ad8
//
// 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
//
const char *__fastcall GameManager::addNewCustomObject(int a1, int a2)
{
int NextUniqueObjectKey; // r0
int v5; // r8
const char *v6; // r6
cocos2d::CCObject *v7; // r7
cocos2d::CCString *v8; // r0
const char *CString; // r9
size_t v10; // r0
int v12[3]; // [sp+0h] [bp-14h] BYREF
NextUniqueObjectKey = GameManager::getNextUniqueObjectKey((cocos2d::CCDictionary **)a1);
v5 = *(_DWORD *)(a1 + 336);
v6 = (const char *)NextUniqueObjectKey;
v7 = (cocos2d::CCObject *)cocos2d::CCString::create(a2);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v6);
memset(v12, 0, sizeof(v12));
CString = (const char *)cocos2d::CCString::getCString(v8);
v10 = strlen(CString);
std::string::__init(v12, CString, v10);
cocos2d::CCDictionary::setObject(v5, v7);
std::string::~string((int)v12);
return v6;
}