//
// EditorUI::createObject from 0x14010ff20 to 0x14010ffb3 (147 bytes)
//
// 15 xrefs:
// > EditorUI::onCreateObject @ 0x14010f978
// > EditorUI::addObjectsToSmartTemplate @ 0x140116890
// > EditorUI::createPrefab @ 0x140117c76
// > EditorUI::processSmartObjectsFromType @ 0x140118570
// > EditorUI::processSmartObjectsFromType @ 0x140118669
// > EditorUI::createNewKeyframeAnim @ 0x140119517
// > EditorUI::createLoop @ 0x1401198e9
// > EditorUI::createLoop @ 0x140119b9d
// > EditorUI::createEdgeForObject @ 0x14012eb75
// > EditorUI::createOutlines @ 0x14012f295
// > EditorUI::createOutlines @ 0x14012f36b
// > EditorUI::createRockBases @ 0x14012fbe5
// > EditorUI::createRockBases @ 0x14012fd0f
// > EditorUI::createExtraObject @ 0x140132d1f
// > ??> @ 0x1406c8e74
//
// 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
//
GameObject *EditorUI::createObject(EditorUI *a1, int a2, cocos2d::CCPoint a3)
{
cocos2d::CCPoint v5; // rax
GameObject *result; // rax
GameObject *v7; // rbx
cocos2d::CCPoint v8; // [rsp+30h] [rbp+8h] BYREF
cocos2d::CCPoint::CCPoint(&v8, *(const struct cocos2d::CCPoint **)&a3);
result = LevelEditorLayer::createObject(a1->m_editorLayer, a2, v5, 0);
v7 = result;
if ( result )
{
if ( result->m_pixelScaleX != 1.0 || result->m_pixelScaleY != 1.0 )
{
GameObject::updateCustomScaleX(result, result->m_pixelScaleX);
GameObject::updateCustomScaleY(v7, v7->m_pixelScaleY);
}
return v7;
}
return result;
}