// // EditorUI::repositionObjectsToCenter from 0x1003eae00 to 0x1003eaea0 (160 bytes) // // 7 xrefs: // > SetupSmartBlockLayer::onPasteTemplate @ 0x100070038 // > EditorUI::spriteFromObjectString @ 0x1003eaa04 // > EditorUI::onCreateObject @ 0x1003eb7d8 // > EditorUI::doPasteObjects @ 0x1003eed58 // > EditorUI::createSmartObjectsFromTemplate @ 0x1003f1c40 // > EditorUI::createSmartObjectsFromTemplate @ 0x1003f1cc4 // > EditorUI::createPrefab @ 0x1003f2540 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall EditorUI::repositionObjectsToCenter(EditorUI *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, bool a4) { bool v4; // w3 _BOOL8 v5; // x21 unsigned int v8; // w21 GameObject *v9; // x22 __int64 v10; // [xsp+8h] [xbp-38h] BYREF float32x2_t v11; // [xsp+10h] [xbp-30h] BYREF float32x2_t v12; // [xsp+18h] [xbp-28h] BYREF cocos2d::CCPoint v13; // 0:s0.4,4:s1.4 v5 = a4; EditorUI::getGroupCenter(a1, a2, v4); sub_1000229F0((float32x2_t *)v5, &v12, &v11); if ( (unsigned int)sub_10024A36C((__int64)a2) ) { v8 = 0; do { v9 = (GameObject *)sub_10024A388((__int64)a2, v8); v13.x = sub_1000229B8(&v10, (__int64 *)&v11); EditorUI::moveObject(a1, v9, v13); ++v8; } while ( v8 < (unsigned int)sub_10024A36C((__int64)a2) ); } }