//
// EditorUI::moveObject from 0x10015d1b0 to 0x10015d298 (232 bytes)
//
// 16 xrefs:
// > EditorUI::moveObjectCall_1 @ 0x10015ce50
// > EditorUI::moveObjectCall_1 @ 0x10015cea4
// > EditorUI::flipObjectsX @ 0x10015d9c0
// > EditorUI::flipObjectsY @ 0x10015db48
// > EditorUI::rotateObjects @ 0x10015dcc8
// > EditorUI::transformObject @ 0x10015e4a4
// > EditorUI::scaleObjects @ 0x10015eacc
// > sub_10015EB98 @ 0x10015eee0
// > EditorUI::alignObjectsOnAxis @ 0x10015f358
// > EditorUI::alignObjectsOnAxis @ 0x10015f38c
// > EditorUI::alignObjects @ 0x10015f810
// > EditorUI::alignObjects @ 0x10015f848
// > EditorUI::ccTouchMoved @ 0x100161994
// > EditorUI::ccTouchMoved @ 0x100161a00
// > EditorUI::ccTouchEnded @ 0x1001621f8
// > EditorUI::repositionObjectsToCenter @ 0x10018ad44
//
// 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::moveObject(__int64 result, __int64 a2, float32x2_t *a3)
{
__int64 v5; // x19
float32x2_t *v6; // x0
double v7; // d0
char v8; // w21
__int64 v9; // x1
float32x2_t v10; // [xsp+0h] [xbp-30h] BYREF
__int64 v11; // [xsp+8h] [xbp-28h] BYREF
if ( a2 )
{
v5 = result;
v6 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
*(float32x2_t *)&v7 = sub_100026318(v6, a3, &v10);
EditorUI::getLimitedPosition(&v11, v5, &v10, v7);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a2 + 184LL))(a2, &v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1376LL))(a2);
GJBaseGameLayer::reorderObjectSection(*(_QWORD *)(v5 + 1440), a2);
v8 = sub_1002FFADC(a2);
if ( *(_DWORD *)(a2 + 1028) == 747 )
{
v9 = *(_QWORD *)(a2 + 1848);
if ( v9 )
GJBaseGameLayer::reorderObjectSection(*(_QWORD *)(v5 + 1440), v9);
}
result = sub_1003FF6D0(*(_QWORD *)(v5 + 1440), a2);
if ( (v8 & 1) != 0 || (result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1680LL))(a2), (_DWORD)result) )
*(_BYTE *)(v5 + 869) = 1;
}
return result;
}