//
// EditorUI::moveObjectCall_1 from 0x10015cd58 to 0x10015cf48 (496 bytes)
//
// 2 xrefs:
// > EditorUI::moveObjectCall @ 0x10015cd54
// > EditorUI::handleEditorAction @ 0x100162934
//
// 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 10:59:44 +0000
//
__int64 __fastcall EditorUI::moveObjectCall_1(__int64 result, __int64 a2)
{
__int64 v3; // x19
__int64 v4; // x0
__n128 v5; // q0
__int64 v6; // x8
__int64 v7; // x0
__n128 v8; // q0
__int64 v9; // x21
__int64 v10; // x0
__int64 v11; // x20
__int64 v12; // x21
double v13; // d0
__int64 v14; // x0
__int64 v15; // x20
double v16; // d0
__int64 v17; // x20
float32x2_t *v18; // x0
double v19; // d0
float32x2_t v20; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v21; // [xsp+8h] [xbp-28h] BYREF
v3 = result;
if ( *(_QWORD *)(result + 1496) || (result = sub_1002E757C(*(_QWORD *)(result + 896)), (_DWORD)result) )
{
v4 = cocos2d::CCDirector::sharedDirector(result);
if ( (*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4) + 133) & 1) == 0 )
{
v6 = *(_QWORD *)(v3 + 1440);
++*(_DWORD *)(v6 + 14716);
EditorBuildStats::noteAction(v6 + 14704);
}
v7 = EditorSFXManager::sharedState(v5);
EditorSFXManager::playAction_1(v7, 150);
if ( (unsigned int)(a2 - 1) <= 0x23 )
{
v9 = dword_10075E98C[(unsigned int)(a2 - 1)];
v10 = EditorSFXManager::sharedState(v8);
EditorSFXManager::playAction_1(v10, v9);
}
sub_10015CF48(&v21, v3, a2);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(v3 + 896)) )
{
EditorUI::createUndoObject(v3, 5, 0);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(v3 + 896)) )
{
v11 = 0;
do
{
v12 = sub_1002E75A0(*(_QWORD *)(v3 + 896), v11);
v13 = sub_1000262F4(&v20, (double *)&v21);
EditorUI::moveObject(v3, v12, &v20, v13);
v11 = (unsigned int)(v11 + 1);
}
while ( (unsigned int)v11 < (unsigned int)sub_1002E757C(*(_QWORD *)(v3 + 896)) );
}
}
else
{
v14 = UndoObject::create(*(_QWORD *)(v3 + 1496), 5);
LevelEditorLayer::addToUndoList(*(_QWORD *)(v3 + 1440), v14, 0);
v15 = *(_QWORD *)(v3 + 1496);
v16 = sub_1000262F4(&v20, (double *)&v21);
EditorUI::moveObject(v3, v15, &v20, v16);
}
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(v3 + 792) + 352LL))(*(_QWORD *)(v3 + 792)) )
{
v17 = *(_QWORD *)(v3 + 792);
v18 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17);
*(float32x2_t *)&v19 = sub_100026318(v18, &v21, &v20);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v17 + 184LL))(v17, &v20, v19);
GJTransformControl::refreshControl(*(_QWORD **)(v3 + 792));
}
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(v3 + 760) + 352LL))(*(_QWORD *)(v3 + 760)) )
{
*(_BYTE *)(v3 + 776) = 1;
EditorUI::activateRotationControl(v3);
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1352LL))(v3);
return EditorUI::updateButtons(v3);
}
return result;
}