// // EditorUI::moveObject from 0x10003e8a0 to 0x10003e9c9 (297 bytes) // // 14 xrefs: // > EditorUI::repositionObjectsToCenter @ 0x100034623 // > EditorUI::rotateObjects @ 0x10003bdf0 // > EditorUI::scaleObjects @ 0x10003fa35 // > EditorUI::transformObjects @ 0x100040ba0 // > EditorUI::flipObjectsY @ 0x1000435c3 // > EditorUI::flipObjectsX @ 0x100043793 // > EditorUI::moveObjectCall_1 @ 0x10004a526 // > EditorUI::moveObjectCall_1 @ 0x10004a583 // > EditorUI::transformObject @ 0x10004be87 // > EditorUI::alignObjects @ 0x10004dd0c // > EditorUI::alignObjects @ 0x10004de43 // > EditorUI::ccTouchMoved @ 0x10004f88a // > EditorUI::ccTouchMoved @ 0x10004f925 // > EditorUI::ccTouchEnded @ 0x100050018 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall EditorUI::moveObject(EditorUI *a1, GameObject *a2, cocos2d::CCPoint a3) { __int64 v4; // rax __m128 v5; // xmm0 double v6; // xmm0_8 bool isSpeedObject; // r15 GameObject *v8; // rsi __int64 v9; // [rsp-38h] [rbp-38h] BYREF double v10[6]; // [rsp-30h] [rbp-30h] BYREF if ( a2 ) { v4 = ((__int64 (__fastcall *)(GameObject *, double))a2->getPosition)(a2, *(double *)&a3); sub_10028CCE0(v10, v4); if ( a1->m_editorLayer->m_levelSettings->m_dynamicLevelHeight ) v5 = (__m128)0x46EB1400u; else v5 = (__m128)0x451BA000u; _mm_storel_ps( v10, _mm_min_ps( _mm_max_ps((__m128)*(unsigned __int64 *)&v10[0], (__m128)xmmword_100815470), _mm_insert_ps((__m128)xmmword_100815490, v5, 16))); v6 = sub_10028CC60(&v9); ((void (__fastcall *)(GameObject *, __int64 *, double))a2->setPosition)(a2, &v9, v6); ((void (__fastcall *)(GameObject *))a2->updateStartValues)(a2); GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2); isSpeedObject = GameObject::isSpeedObject(a2); if ( a2->m_objectID == 747 ) { v8 = *(GameObject **)&a2[1].m_sQuad.bl.vertices.y; if ( v8 ) GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, v8); } LevelEditorLayer::objectMoved(a1->m_editorLayer, a2); if ( isSpeedObject || ((unsigned __int8 (__fastcall *)(GameObject *))a2->canReverse)(a2) ) a1->m_speedObjectsUpdated = 1; } }