//
// EditorUI::createObject from 0x100477b08 to 0x100477b8c (132 bytes)
//
// 15 xrefs:
// > sub_100080E54 @ 0x100080fd4
// > EditorUI::createOutlines @ 0x100081594
// > EditorUI::createOutlines @ 0x100081658
// > EditorUI::createRockBases @ 0x100082188
// > EditorUI::createRockBases @ 0x10008229c
// > sub_1000847B0 @ 0x100084858
// > EditorUI::onCreateObject @ 0x100477314
// > EditorUI::addObjectsToSmartTemplate @ 0x100478a24
// > sub_1004796B4 @ 0x1004798bc
// > EditorUI::processSmartObjectsFromType @ 0x100479f68
// > EditorUI::processSmartObjectsFromType @ 0x10047a050
// > sub_10047AA1C @ 0x10047ab30
// > EditorUI::createLoop @ 0x10047ae2c
// > EditorUI::createLoop @ 0x10047b024
// > EditorUI::createGradientFromSelection @ 0x10047b494
//
// 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 11:05:41 +0000
//
__int64 __fastcall EditorUI::createObject(__int64 a1, __int64 a2, double *a3)
{
__int64 v4; // x20
__n128 v5; // q0
__int64 *Object; // x0
__int64 v7; // x19
float v8; // s0
__int64 v10; // [xsp+8h] [xbp-18h] BYREF
v4 = *(_QWORD *)(a1 + 1440);
v5.n128_f64[0] = sub_1000262F4(&v10, a3);
Object = LevelEditorLayer::createObject(v4, a2, (double *)&v10, 0, v5);
v7 = (__int64)Object;
if ( Object )
{
v8 = *((float *)Object + 328);
if ( v8 != 1.0 || *((float *)Object + 329) != 1.0 )
{
GameObject::updateCustomScaleX((__int64)Object, v8);
GameObject::updateCustomScaleY(v7, *(float *)(v7 + 1316));
}
}
return v7;
}