//
// EditorUI::createObject from 0x7c22d0 to 0x7c238c (188 bytes)
//
// 16 xrefs:
// > EditorUI::processSmartObjectsFromType @ 0x7c3338
// > EditorUI::processSmartObjectsFromType @ 0x7c34d0
// > EditorUI::createNewKeyframeAnim @ 0x7c3df4
// > EditorUI::createLoop @ 0x7c4128
// > EditorUI::createLoop @ 0x7c4290
// > EditorUI::createPrefab @ 0x7c9d3c
// > EditorUI::onCreateObject @ 0x7ca1cc
// > EditorUI::createGradientFromSelection @ 0x7cacb0
// > EditorUI::addObjectsToSmartTemplate @ 0x7cc4c8
// > EditorUI::createEdgeForObject @ 0xb079a0
// > EditorUI::createOutlines @ 0xb08248
// > EditorUI::createOutlines @ 0xb0831c
// > EditorUI::createRockBases @ 0xb08c08
// > EditorUI::createRockBases @ 0xb08d28
// > EditorUI::createExtraObject @ 0xb093dc
// > ??> @ 0x51af0
//
// 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 12:54:07 +0000
//
float *__fastcall EditorUI::createObject(__int64 a1, unsigned int a2, const cocos2d::CCPoint *a3)
{
cocos2d::CCArray **v4; // x22
float *result; // x0
float *v6; // x19
float v7; // s0
_BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF
v4 = *(cocos2d::CCArray ***)(a1 + 1440);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, a3);
result = (float *)LevelEditorLayer::createObject(v4, a2, (const cocos2d::CCPoint *)v8, 0);
v6 = result;
if ( !result )
return nullptr;
v7 = result[328];
if ( v7 != 1.0 || result[329] != 1.0 )
{
GameObject::updateCustomScaleX((GameObject *)result, v7);
GameObject::updateCustomScaleY((GameObject *)v6, v6[329]);
return v6;
}
return result;
}