{"type": "func", "start": 5370573808, "end": 5370573968, "name": "EditorUI::repositionObjectsToCenter", "pseudocode": "// \n// EditorUI::repositionObjectsToCenter from 0x1401c73f0 to 0x1401c7490 (160 bytes)\n// \n// 11 xrefs:\n// > EditorUI::onCreateObject @ 0x1401b3094\n// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6e8e\n// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6f0f\n// > EditorUI::createPrefab @ 0x1401b76bb\n// > EditorUI::doPasteObjects @ 0x1401c60dd\n// > EditorUI::spriteFromObjectString @ 0x1401f0b06\n// > SetupSmartBlockLayer::onPasteTemplate @ 0x1405ed9d8\n// > <???> @ 0x1408a2c08\n// > <???> @ 0x1408a2c18\n// > <???> @ 0x14091a7a4\n// > <???> @ 0x14091a7b0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:05 +0000\n// \n\nunsigned int __fastcall EditorUI::repositionObjectsToCenter(__int64 a1, cocos2d::CCArray *a2, __int64 a3, __int64 a4)\n{\n  unsigned int v7; // ebx\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v9; // rdi\n  __int64 v10; // rax\n  _BYTE v11[8]; // [rsp+20h] [rbp-28h] BYREF\n  _BYTE v12[8]; // [rsp+28h] [rbp-20h] BYREF\n  _BYTE v13[24]; // [rsp+30h] [rbp-18h] BYREF\n\n  EditorUI::getGroupCenter(a1, v11, a2, a4);\n  cocos2d::CCPoint::operator-(a3, v12, v11);\n  v7 = 0;\n  result = cocos2d::CCArray::count(a2);\n  if ( result )\n  {\n    do\n    {\n      v9 = cocos2d::CCArray::objectAtIndex(a2, v7);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const struct cocos2d::CCPoint *)v12);\n      EditorUI::moveObject(a1, v9, v10);\n      ++v7;\n      result = cocos2d::CCArray::count(a2);\n    }\n    while ( v7 < result );\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::repositionObjectsToCenter from 0x1401c73f0 to 0x1401c7490 (160 bytes)\n; \n; 11 xrefs:\n; > EditorUI::onCreateObject @ 0x1401b3094\n; > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6e8e\n; > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6f0f\n; > EditorUI::createPrefab @ 0x1401b76bb\n; > EditorUI::doPasteObjects @ 0x1401c60dd\n; > EditorUI::spriteFromObjectString @ 0x1401f0b06\n; > SetupSmartBlockLayer::onPasteTemplate @ 0x1405ed9d8\n; > <???> @ 0x1408a2c08\n; > <???> @ 0x1408a2c18\n; > <???> @ 0x14091a7a4\n; > <???> @ 0x14091a7b0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:05 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401c73f0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1401c73f5\npush    rsi                                                            ; +0xa, 0x1401c73fa\nsub     rsp, 40h                                                       ; +0xb, 0x1401c73fb\nmov     rbx, r8                                                        ; +0xf, 0x1401c73ff\nmov     rsi, rdx                                                       ; +0x12, 0x1401c7402\nmov     r8, rdx                                                        ; +0x15, 0x1401c7405\nmov     rbp, rcx                                                       ; +0x18, 0x1401c7408\nlea     rdx, [rsp+48h+var_28]                                          ; +0x1b, 0x1401c740b\ncall    EditorUI__getGroupCenter                                       ; +0x20, 0x1401c7410\nlea     r8, [rsp+48h+var_28]                                           ; +0x25, 0x1401c7415\nmov     rcx, rbx                                                       ; +0x2a, 0x1401c741a\nlea     rdx, [rsp+48h+var_20]                                          ; +0x2d, 0x1401c741d\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x32, 0x1401c7422\nmov     rcx, rsi                                                       ; +0x38, 0x1401c7428\nxor     ebx, ebx                                                       ; +0x3b, 0x1401c742b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3d, 0x1401c742d\ntest    eax, eax                                                       ; +0x43, 0x1401c7433\njz      short loc_1401C7480                                            ; +0x45, 0x1401c7435\nmov     [rsp+48h+arg_0], rdi                                           ; +0x47, 0x1401c7437\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x1401c743c\nmov     edx, ebx                                                       ; +0x50, 0x1401c7440\nmov     rcx, rsi                                                       ; +0x52, 0x1401c7442\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x55, 0x1401c7445\nlea     rdx, [rsp+48h+var_20]                                          ; +0x5b, 0x1401c744b\nmov     rdi, rax                                                       ; +0x60, 0x1401c7450\nlea     rcx, [rsp+48h+var_18]                                          ; +0x63, 0x1401c7453\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x68, 0x1401c7458\nmov     rdx, rdi                                                       ; +0x6e, 0x1401c745e\nmov     rcx, rbp                                                       ; +0x71, 0x1401c7461\nmov     r8, rax                                                        ; +0x74, 0x1401c7464\ncall    EditorUI__moveObject                                           ; +0x77, 0x1401c7467\nmov     rcx, rsi                                                       ; +0x7c, 0x1401c746c\ninc     ebx                                                            ; +0x7f, 0x1401c746f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x81, 0x1401c7471\ncmp     ebx, eax                                                       ; +0x87, 0x1401c7477\njb      short loc_1401C7440                                            ; +0x89, 0x1401c7479\nmov     rdi, [rsp+48h+arg_0]                                           ; +0x8b, 0x1401c747b\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x90, 0x1401c7480\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x95, 0x1401c7485\nadd     rsp, 40h                                                       ; +0x9a, 0x1401c748a\npop     rsi                                                            ; +0x9e, 0x1401c748e\nretn                                                                   ; +0x9f, 0x1401c748f", "xrefs": ["EditorUI::onCreateObject @ 0x1401b3094", "EditorUI::createSmartObjectsFromTemplate @ 0x1401b6e8e", "EditorUI::createSmartObjectsFromTemplate @ 0x1401b6f0f", "EditorUI::createPrefab @ 0x1401b76bb", "EditorUI::doPasteObjects @ 0x1401c60dd", "EditorUI::spriteFromObjectString @ 0x1401f0b06", "SetupSmartBlockLayer::onPasteTemplate @ 0x1405ed9d8", "<???> @ 0x1408a2c08", "<???> @ 0x1408a2c18", "<???> @ 0x14091a7a4", "<???> @ 0x14091a7b0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}