//
// EditorUI::moveObject from 0xc008b8 to 0xc009e0 (296 bytes)
//
// 17 xrefs:
// > EditorUI::ccTouchMoved @ 0xbd5cec
// > EditorUI::ccTouchMoved @ 0xbd5f78
// > EditorUI::ccTouchEnded @ 0xbd67fc
// > EditorUI::repositionObjectsToCenter @ 0xbd8d6c
// > EditorUI::rotateObjects @ 0xc00d58
// > EditorUI::transformObject @ 0xc00fa0
// > EditorUI::flipObjectsX @ 0xc01584
// > EditorUI::flipObjectsY @ 0xc01740
// > EditorUI::moveObjectCall @ 0xc0256c
// > EditorUI::moveObjectCall @ 0xc02644
// > EditorUI::alignObjectsOnAxis @ 0xc02ed0
// > EditorUI::alignObjectsOnAxis @ 0xc02f64
// > EditorUI::alignObjects @ 0xc032c0
// > EditorUI::alignObjects @ 0xc03398
// > EditorUI::scaleObjects @ 0xc03894
// > EditorUI::transformObjects @ 0xc03f14
// > ??> @ 0x9e8d8
//
// 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 13:03:48 +0000
//
__int64 __fastcall EditorUI::moveObject(__int64 a1, __int64 a2)
{
__int64 v4; // x0
_BOOL4 isSpeedObject; // w22
long double v6; // q0
GameObject *v8; // x1
_BYTE v9[8]; // [xsp+58h] [xbp+58h] BYREF
__int64 v10; // [xsp+60h] [xbp+60h] BYREF
if ( a2 )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
cocos2d::CCPoint::operator+(&v10, v4);
EditorUI::getLimitedPosition(a1, (float *)&v10, (cocos2d::CCPoint *)v9);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a2 + 184LL))(a2, v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1376LL))(a2);
GJBaseGameLayer::reorderObjectSection(*(GJBaseGameLayer **)(a1 + 1440), (GameObject *)a2);
isSpeedObject = GameObject::isSpeedObject((GameObject *)a2);
if ( *(_DWORD *)(a2 + 1028) == 747 )
{
v8 = *(GameObject **)(a2 + 1848);
if ( v8 )
GJBaseGameLayer::reorderObjectSection(*(GJBaseGameLayer **)(a1 + 1440), v8);
}
*(__n128 *)&v6 = LevelEditorLayer::objectMoved((LevelEditorLayer *)*(_QWORD *)(a1 + 1440), (GameObject *)a2);
if ( isSpeedObject || (*(unsigned __int8 (__fastcall **)(__int64, long double))(*(_QWORD *)a2 + 1680LL))(a2, v6) )
*(_BYTE *)(a1 + 869) = 1;
}
return _stack_chk_guard;
}