//
// EditorUI::createExtras from 0xb0b90c to 0xb0b9c8 (188 bytes)
//
// 2 xrefs:
// > EditorUI::createSmartObjectsFromType @ 0x7c3990
// > ??> @ 0x4e730
//
// 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 13:01:26 +0000
//
cocos2d::CCArray *__fastcall EditorUI::createExtras(EditorUI *this, 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 v12; // 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);
v12 = *((_DWORD *)v11 + 257);
if ( (unsigned int)(v12 - 2808) <= 0x1D )
EditorUI::createExtrasForObject(this, v12, v11, v7);
v8 = ++v6 >= (unsigned int)cocos2d::CCArray::count(a2);
v9 = v6;
}
return v7;
}