// // EditorUI::repositionObjectsToCenter from 0x1005b8100 to 0x1005b8197 (151 bytes) // // 7 xrefs: // > EditorUI::onCreateObject @ 0x10001164b // > EditorUI::createSmartObjectsFromTemplate @ 0x1000142d9 // > EditorUI::createSmartObjectsFromTemplate @ 0x10001435e // > EditorUI::createPrefab @ 0x100014ca3 // > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e19bb // > EditorUI::doPasteObjects @ 0x1005b80c0 // > EditorUI::spriteFromObjectString @ 0x100638a76 // // 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:32:42 +0000 // __int64 __fastcall EditorUI::repositionObjectsToCenter(__int64 a1, __int64 a2, unsigned __int64 *a3, __int64 a4) { __int64 result; // rax unsigned int v6; // r15d __int64 v7; // r13 unsigned __int64 v8; // [rsp+0h] [rbp-40h] BYREF __int64 v9; // [rsp+8h] [rbp-38h] BYREF double v10[6]; // [rsp+10h] [rbp-30h] BYREF EditorUI::getGroupCenter(&v8, a1, a2, a4); sub_100278370(v10, a3, &v8); result = sub_1007FEF90(a2); if ( (_DWORD)result ) { v6 = 0; do { v7 = sub_1007FEFE0(a2, v6); sub_1002782D0(&v9, v10); EditorUI::moveObject(a1, v7, &v9); ++v6; result = sub_1007FEF90(a2); } while ( v6 < (unsigned int)result ); } return result; }