{"type": "func", "start": 4295181744, "end": 4295181895, "name": "EditorUI::repositionObjectsToCenter", "pseudocode": "// \n// EditorUI::repositionObjectsToCenter from 0x1000345b0 to 0x100034647 (151 bytes)\n// \n// 7 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x100034136\n// > EditorUI::onCreateObject @ 0x100035498\n// > EditorUI::doPasteObjects @ 0x10003e3fe\n// > EditorUI::createSmartObjectsFromTemplate @ 0x1000430ca\n// > EditorUI::createSmartObjectsFromTemplate @ 0x10004314d\n// > EditorUI::createPrefab @ 0x100043d11\n// > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e70a5\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall EditorUI::repositionObjectsToCenter(EditorUI *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, bool a4)\n{\n  _BOOL8 v4; // r15\n  unsigned int v5; // r15d\n  GameObject *v6; // r13\n  cocos2d::CCPoint v7; // xmm0_8\n  char v8; // [rsp+0h] [rbp-40h] BYREF\n  _BYTE v9[8]; // [rsp+8h] [rbp-38h] BYREF\n  _BYTE v10[48]; // [rsp+10h] [rbp-30h] BYREF\n\n  v4 = a4;\n  EditorUI::getGroupCenter((EditorUI *)&v8, a2, (bool)a2);\n  sub_10028CD00(v10, v4, &v8);\n  if ( (unsigned int)sub_100720070(a2) )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = (GameObject *)sub_1007200C0(a2, v5);\n      *(double *)&v7 = sub_10028CC60(v9, v10);\n      EditorUI::moveObject(a1, v6, v7);\n      ++v5;\n    }\n    while ( v5 < (unsigned int)sub_100720070(a2) );\n  }\n}", "assembly": "; \n; EditorUI::repositionObjectsToCenter from 0x1000345b0 to 0x100034647 (151 bytes)\n; \n; 7 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x100034136\n; > EditorUI::onCreateObject @ 0x100035498\n; > EditorUI::doPasteObjects @ 0x10003e3fe\n; > EditorUI::createSmartObjectsFromTemplate @ 0x1000430ca\n; > EditorUI::createSmartObjectsFromTemplate @ 0x10004314d\n; > EditorUI::createPrefab @ 0x100043d11\n; > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e70a5\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1000345b0\nmov     rbp, rsp                                                       ; +0x1, 0x1000345b1\npush    r15                                                            ; +0x4, 0x1000345b4\npush    r14                                                            ; +0x6, 0x1000345b6\npush    r13                                                            ; +0x8, 0x1000345b8\npush    r12                                                            ; +0xa, 0x1000345ba\npush    rbx                                                            ; +0xc, 0x1000345bc\nsub     rsp, 18h                                                       ; +0xd, 0x1000345bd\nmov     r15, rdx                                                       ; +0x11, 0x1000345c1\nmov     rbx, rsi                                                       ; +0x14, 0x1000345c4\nmov     r14, rdi                                                       ; +0x17, 0x1000345c7\nlea     r12, [rbp+var_40]                                              ; +0x1a, 0x1000345ca\nmov     rdi, r12                                                       ; +0x1e, 0x1000345ce\nmov     rdx, rsi                                                       ; +0x21, 0x1000345d1\ncall    EditorUI__getGroupCenter                                       ; +0x24, 0x1000345d4\nlea     rdi, [rbp+var_30]                                              ; +0x29, 0x1000345d9\nmov     rsi, r15                                                       ; +0x2d, 0x1000345dd\nmov     rdx, r12                                                       ; +0x30, 0x1000345e0\ncall    sub_10028CD00                                                  ; +0x33, 0x1000345e3\nmov     rdi, rbx                                                       ; +0x38, 0x1000345e8\ncall    sub_100720070                                                  ; +0x3b, 0x1000345eb\ntest    eax, eax                                                       ; +0x40, 0x1000345f0\njz      short loc_100034638                                            ; +0x42, 0x1000345f2\nxor     r15d, r15d                                                     ; +0x44, 0x1000345f4\nlea     r12, [rbp+var_38]                                              ; +0x47, 0x1000345f7\nnop     dword ptr [rax+rax+00h]                                        ; +0x4b, 0x1000345fb\nmov     rdi, rbx                                                       ; +0x50, 0x100034600\nmov     esi, r15d                                                      ; +0x53, 0x100034603\ncall    sub_1007200C0                                                  ; +0x56, 0x100034606\nmov     r13, rax                                                       ; +0x5b, 0x10003460b\nmov     rdi, r12                                                       ; +0x5e, 0x10003460e\nlea     rsi, [rbp+var_30]                                              ; +0x61, 0x100034611\ncall    sub_10028CC60                                                  ; +0x65, 0x100034615\nmov     rdi, r14                                                       ; +0x6a, 0x10003461a\nmov     rsi, r13                                                       ; +0x6d, 0x10003461d\nmov     rdx, r12                                                       ; +0x70, 0x100034620\ncall    EditorUI__moveObject                                           ; +0x73, 0x100034623\ninc     r15d                                                           ; +0x78, 0x100034628\nmov     rdi, rbx                                                       ; +0x7b, 0x10003462b\ncall    sub_100720070                                                  ; +0x7e, 0x10003462e\ncmp     r15d, eax                                                      ; +0x83, 0x100034633\njb      short loc_100034600                                            ; +0x86, 0x100034636\nadd     rsp, 18h                                                       ; +0x88, 0x100034638\npop     rbx                                                            ; +0x8c, 0x10003463c\npop     r12                                                            ; +0x8d, 0x10003463d\npop     r13                                                            ; +0x8f, 0x10003463f\npop     r14                                                            ; +0x91, 0x100034641\npop     r15                                                            ; +0x93, 0x100034643\npop     rbp                                                            ; +0x95, 0x100034645\nretn                                                                   ; +0x96, 0x100034646", "xrefs": ["EditorUI::spriteFromObjectString @ 0x100034136", "EditorUI::onCreateObject @ 0x100035498", "EditorUI::doPasteObjects @ 0x10003e3fe", "EditorUI::createSmartObjectsFromTemplate @ 0x1000430ca", "EditorUI::createSmartObjectsFromTemplate @ 0x10004314d", "EditorUI::createPrefab @ 0x100043d11", "SetupSmartBlockLayer::onPasteTemplate @ 0x1004e70a5"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}