//
// EditorUI::moveObject from 0x70d95c to 0x70da0e (178 bytes)
//
// 16 xrefs:
// > EditorUI::ccTouchMoved @ 0x6f07f0
// > EditorUI::ccTouchMoved @ 0x6f0808
// > EditorUI::ccTouchEnded @ 0x6f0fde
// > EditorUI::repositionObjectsToCenter @ 0x6f29ae
// > EditorUI::rotateObjects @ 0x70db0c
// > EditorUI::transformObject @ 0x70e144
// > EditorUI::flipObjectsX @ 0x70e270
// > EditorUI::flipObjectsY @ 0x70e398
// > EditorUI::moveObjectCall @ 0x70ed76
// > EditorUI::moveObjectCall @ 0x70eda6
// > EditorUI::alignObjectsOnAxis @ 0x70f316
// > EditorUI::alignObjectsOnAxis @ 0x70f32a
// > EditorUI::alignObjects @ 0x70f5e8
// > EditorUI::alignObjects @ 0x70f5fe
// > EditorUI::scaleObjects @ 0x70f98e
// > EditorUI::transformObjects @ 0x70fddc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:42 +0000
//
int __fastcall EditorUI::moveObject(int result, GameObject *a2, int a3)
{
int v4; // r6
int v6; // r0
_BOOL4 isSpeedObject; // r7
GameObject *v8; // r1
_BYTE v9[8]; // [sp+4h] [bp-14h] BYREF
float v10[2]; // [sp+Ch] [bp-Ch] BYREF
v4 = result;
if ( a2 )
{
v6 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 96))(a2);
cocos2d::CCPoint::operator+(v10, v6, a3);
EditorUI::getLimitedPosition((cocos2d::CCPoint *)v9, v4, v10);
(*(void (__fastcall **)(GameObject *, _BYTE *))(*(_DWORD *)a2 + 92))(a2, v9);
(*(void (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 688))(a2);
GJBaseGameLayer::reorderObjectSection(*(GJBaseGameLayer **)(v4 + 944), a2);
isSpeedObject = GameObject::isSpeedObject(a2);
if ( *((_DWORD *)a2 + 223) == 747 )
{
v8 = *((GameObject **)a2 + 413);
if ( v8 )
GJBaseGameLayer::reorderObjectSection(*(GJBaseGameLayer **)(v4 + 944), v8);
}
result = LevelEditorLayer::objectMoved(*(_DWORD *)(v4 + 944), a2);
if ( isSpeedObject || (result = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 840))(a2)) != 0 )
*(_BYTE *)(v4 + 645) = 1;
}
return result;
}