//
// EditorUI::createObject from 0x37d704 to 0x37d77e (122 bytes)
//
// 14 xrefs:
// > EditorUI::processSmartObjectsFromType @ 0x37e31c
// > EditorUI::processSmartObjectsFromType @ 0x37e3ac
// > EditorUI::addObjectsToSmartTemplate @ 0x39c3ac
// > EditorUI::createLoop @ 0x39ddb8
// > EditorUI::createLoop @ 0x39df36
// > EditorUI::createNewKeyframeAnim @ 0x3a35b8
// > EditorUI::onCreateObject @ 0x3a3cda
// > EditorUI::createPrefab @ 0x3a4234
// > EditorUI::createEdgeForObject @ 0x536a6e
// > EditorUI::createOutlines @ 0x537290
// > EditorUI::createOutlines @ 0x537322
// > EditorUI::createRockBases @ 0x5376ea
// > EditorUI::createRockBases @ 0x5377aa
// > EditorUI::createExtraObject @ 0x537a4c
//
// 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)
{
LevelEditorLayer *m_editorLayer; // r7
GameObject *Object; // r0
GameObject *v6; // r5
float *p_m_pixelScaleY; // r6
bool v9; // [sp+0h] [bp-14h]
cocos2d::CCPoint v10; // [sp+4h] [bp-10h] BYREF
m_editorLayer = a1->m_editorLayer;
cocos2d::CCPoint::CCPoint(&v10, (const cocos2d::CCPoint *)LODWORD(a3.x));
Object = LevelEditorLayer::createObject(m_editorLayer, a2, (cocos2d::CCPoint)(unsigned int)&v10, v9);
v6 = Object;
if ( Object )
{
p_m_pixelScaleY = &Object->m_pixelScaleY;
if ( Object->m_pixelScaleX != 1.0 || *p_m_pixelScaleY != 1.0 )
{
GameObject::updateCustomScaleX(Object, Object->m_pixelScaleX);
GameObject::updateCustomScaleY(v6, *p_m_pixelScaleY);
}
}
return v6;
}