//
// EditorUI::createExtras from 0x9d00fc to 0x9d01b8 (188 bytes)
//
// 2 xrefs:
// > EditorUI::createSmartObjectsFromType @ 0x6c168c
// > ??> @ 0x35700
//
// 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
//
cocos2d::CCArray *EditorUI::createExtras(EditorUI *a1, cocos2d::CCArray *a2)
{
cocos2d::CCArray *v4; // x0
cocos2d::CCArray *v5; // x0
unsigned int v6; // w19
cocos2d::CCArray *v7; // x21
bool v8; // cf
unsigned int v9; // w1
cocos2d::CCArray *i; // x0
GameObject *v11; // x2
int m_objectID; // w1
if ( !a2 )
return nullptr;
v4 = (cocos2d::CCArray *)cocos2d::CCArray::count(a2);
if ( !(_DWORD)v4 )
return nullptr;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4);
v6 = 0;
v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5);
v8 = (unsigned int)cocos2d::CCArray::count(a2) == 0;
v9 = 0;
for ( i = a2; !v8; i = a2 )
{
v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(i, v9);
m_objectID = v11->m_objectID;
if ( (unsigned int)(m_objectID - 2808) <= 0x1D )
EditorUI::createExtrasForObject(a1, m_objectID, v11, v7);
v8 = ++v6 >= (unsigned int)cocos2d::CCArray::count(a2);
v9 = v6;
}
return v7;
}