//
// EditorUI::moveObject from 0x10060e950 to 0x10060ea79 (297 bytes)
//
// 16 xrefs:
// > EditorUI::repositionObjectsToCenter @ 0x1005b8173
// > EditorUI::ccTouchMoved @ 0x10060a7fa
// > EditorUI::ccTouchMoved @ 0x10060a875
// > EditorUI::ccTouchEnded @ 0x10060afb0
// > EditorUI::moveObjectCall_1 @ 0x10060e526
// > EditorUI::moveObjectCall_1 @ 0x10060e583
// > sub_10060F130 @ 0x10060f2d3
// > sub_10060F300 @ 0x10060f4a3
// > EditorUI::rotateObjects @ 0x10060f681
// > EditorUI::transformObject @ 0x10060fe09
// > EditorUI::scaleObjects @ 0x1006104b5
// > EditorUI::transformObjects @ 0x100610bb0
// > EditorUI::alignObjectsOnAxis @ 0x100610fa8
// > EditorUI::alignObjectsOnAxis @ 0x1006110b3
// > EditorUI::alignObjects @ 0x10061156c
// > EditorUI::alignObjects @ 0x1006116a2
//
// This function is hookable on this platform (idp: pc, 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 12:34:33 +0000
//
void __fastcall EditorUI::moveObject(__int64 a1, __int64 a2, unsigned __int64 *a3)
{
unsigned __int64 *v5; // rax
__m128 v6; // xmm0
char isSpeedObject; // r15
__int64 v8; // rsi
__int64 v9; // [rsp-38h] [rbp-38h] BYREF
double v10[6]; // [rsp-30h] [rbp-30h] BYREF
if ( a2 )
{
v5 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
sub_100278350(v10, v5, a3);
if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3272LL) + 453LL) )
v6 = (__m128)0x46EB1400u;
else
v6 = (__m128)0x451BA000u;
_mm_storel_ps(
v10,
_mm_min_ps(
_mm_max_ps((__m128)*(unsigned __int64 *)&v10[0], (__m128)xmmword_100A0D740),
_mm_insert_ps((__m128)xmmword_100A03890, v6, 16)));
sub_1002782D0(&v9, v10);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a2 + 184LL))(a2, &v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1376LL))(a2);
GJBaseGameLayer::reorderObjectSection(*(_QWORD *)(a1 + 1440), a2);
isSpeedObject = GameObject::isSpeedObject(a2);
if ( *(_DWORD *)(a2 + 1028) == 747 )
{
v8 = *(_QWORD *)(a2 + 1848);
if ( v8 )
GJBaseGameLayer::reorderObjectSection(*(_QWORD *)(a1 + 1440), v8);
}
LevelEditorLayer::objectMoved(*(_QWORD *)(a1 + 1440), a2);
if ( isSpeedObject || (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1680LL))(a2) )
*(_BYTE *)(a1 + 869) = 1;
}
}