{"type": "func", "start": 4301317136, "end": 4301317667, "name": "EditorUI::moveObjectCall_1", "pseudocode": "// \n// EditorUI::moveObjectCall_1 from 0x10060e410 to 0x10060e623 (531 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060bd76\n// > EditorUI::handleEditorAction @ 0x10060ce77\n// > EditorUI::moveObjectCall @ 0x10060e3fd\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 12:34:33 +0000\n// \n\n__int64 __fastcall EditorUI::moveObjectCall_1(__int64 a1, unsigned int a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rdi\n  __int64 v5; // rdi\n  __int64 v6; // rdi\n  unsigned int v7; // r15d\n  __int64 v8; // rax\n  unsigned int v9; // r14d\n  __int64 v10; // rsi\n  __int64 v11; // r13\n  char *v12; // rax\n  __int64 v13; // r14\n  __int64 v14; // r14\n  unsigned __int64 *v15; // rax\n  __int64 v16; // [rsp+8h] [rbp-38h] BYREF\n  unsigned __int64 v17[6]; // [rsp+10h] [rbp-30h] BYREF\n\n  if ( *(_QWORD *)(a1 + 1496) || (result = sub_1007FEF90(*(_QWORD *)(a1 + 896)), (_DWORD)result) )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4) + 133) )\n    {\n      v5 = *(_QWORD *)(a1 + 1440);\n      ++*(_DWORD *)(v5 + 14716);\n      v4 = v5 + 14704;\n      EditorBuildStats::noteAction(v4);\n    }\n    v6 = EditorSFXManager::sharedState(v4);\n    EditorSFXManager::playAction_1(v6, 150);\n    if ( a2 - 1 <= 0x23 )\n    {\n      v7 = dword_100A0D794[a2 - 1];\n      v8 = EditorSFXManager::sharedState(v6);\n      EditorSFXManager::playAction_1(v8, v7);\n    }\n    EditorUI::moveForCommand(v17, a1, a2);\n    if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) )\n    {\n      v9 = 0;\n      v10 = 5;\n      EditorUI::createUndoObject(a1, 5u, 0);\n      if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) )\n      {\n        do\n        {\n          v11 = sub_1007FEFE0(*(_QWORD *)(a1 + 896), v9);\n          sub_1002782D0(&v16, v17);\n          v10 = v11;\n          EditorUI::moveObject(a1, v11, &v16);\n          ++v9;\n        }\n        while ( v9 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) );\n      }\n    }\n    else\n    {\n      v12 = UndoObject::create(*(_QWORD *)(a1 + 1496), 5);\n      LevelEditorLayer::addToUndoList(*(_QWORD *)(a1 + 1440), (__int64)v12, 0);\n      v13 = *(_QWORD *)(a1 + 1496);\n      sub_1002782D0(&v16, v17);\n      v10 = v13;\n      EditorUI::moveObject(a1, v13, &v16);\n    }\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )\n    {\n      v14 = *(_QWORD *)(a1 + 792);\n      v15 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 192LL))(v14);\n      sub_100278350((double *)&v16, v15, v17);\n      v10 = (__int64)&v16;\n      (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL))(v14, &v16);\n      GJTransformControl::refreshControl(*(_QWORD *)(a1 + 792));\n    }\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760)) )\n    {\n      *(_BYTE *)(a1 + 776) = 1;\n      EditorUI::activateRotationControl(a1, v10);\n    }\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1352LL))(a1);\n    return EditorUI::updateButtons(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::moveObjectCall_1 from 0x10060e410 to 0x10060e623 (531 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060bd76\n; > EditorUI::handleEditorAction @ 0x10060ce77\n; > EditorUI::moveObjectCall @ 0x10060e3fd\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 12:34:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x10060e410\nmov     rbp, rsp                                                       ; +0x1, 0x10060e411\npush    r15                                                            ; +0x4, 0x10060e414\npush    r14                                                            ; +0x6, 0x10060e416\npush    r13                                                            ; +0x8, 0x10060e418\npush    r12                                                            ; +0xa, 0x10060e41a\npush    rbx                                                            ; +0xc, 0x10060e41c\nsub     rsp, 18h                                                       ; +0xd, 0x10060e41d\nmov     r14d, esi                                                      ; +0x11, 0x10060e421\nmov     rbx, rdi                                                       ; +0x14, 0x10060e424\ncmp     qword ptr [rdi+5D8h], 0                                        ; +0x17, 0x10060e427\njnz     short loc_10060E445                                            ; +0x1f, 0x10060e42f\nmov     rdi, [rbx+380h]                                                ; +0x21, 0x10060e431\ncall    sub_1007FEF90                                                  ; +0x28, 0x10060e438\ntest    eax, eax                                                       ; +0x2d, 0x10060e43d\njz      loc_10060E614                                                  ; +0x2f, 0x10060e43f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x35, 0x10060e445\nmov     rcx, [rax]                                                     ; +0x3a, 0x10060e44a\nmov     rdi, rax                                                       ; +0x3d, 0x10060e44d\ncall    qword ptr [rcx+0C0h]                                           ; +0x40, 0x10060e450\ncmp     byte ptr [rax+85h], 0                                          ; +0x46, 0x10060e456\njnz     short loc_10060E478                                            ; +0x4d, 0x10060e45d\nmov     rdi, [rbx+5A0h]                                                ; +0x4f, 0x10060e45f\ninc     dword ptr [rdi+397Ch]                                          ; +0x56, 0x10060e466\nadd     rdi, 3970h                                                     ; +0x5c, 0x10060e46c\ncall    EditorBuildStats__noteAction                                   ; +0x63, 0x10060e473\ncall    EditorSFXManager__sharedState                                  ; +0x68, 0x10060e478\nmov     rdi, rax                                                       ; +0x6d, 0x10060e47d\nmov     esi, 96h                                                       ; +0x70, 0x10060e480\ncall    EditorSFXManager__playAction_1                                 ; +0x75, 0x10060e485\nlea     eax, [r14-1]                                                   ; +0x7a, 0x10060e48a\ncmp     eax, 23h ; '#'                                                 ; +0x7e, 0x10060e48e\nja      short loc_10060E4B0                                            ; +0x81, 0x10060e491\nmov     eax, eax                                                       ; +0x83, 0x10060e493\nlea     rcx, dword_100A0D794                                           ; +0x85, 0x10060e495\nmov     r15d, [rcx+rax*4]                                              ; +0x8c, 0x10060e49c\ncall    EditorSFXManager__sharedState                                  ; +0x90, 0x10060e4a0\nmov     rdi, rax                                                       ; +0x95, 0x10060e4a5\nmov     esi, r15d                                                      ; +0x98, 0x10060e4a8\ncall    EditorSFXManager__playAction_1                                 ; +0x9b, 0x10060e4ab\nlea     rdi, [rbp+var_30]                                              ; +0xa0, 0x10060e4b0\nmov     rsi, rbx                                                       ; +0xa4, 0x10060e4b4\nmov     edx, r14d                                                      ; +0xa7, 0x10060e4b7\ncall    EditorUI__moveForCommand                                       ; +0xaa, 0x10060e4ba\nmov     rdi, [rbx+380h]                                                ; +0xaf, 0x10060e4bf\ncall    sub_1007FEF90                                                  ; +0xb6, 0x10060e4c6\ntest    eax, eax                                                       ; +0xbb, 0x10060e4cb\njz      short loc_10060E541                                            ; +0xbd, 0x10060e4cd\nxor     r14d, r14d                                                     ; +0xbf, 0x10060e4cf\nmov     rdi, rbx                                                       ; +0xc2, 0x10060e4d2\nmov     esi, 5                                                         ; +0xc5, 0x10060e4d5\nxor     edx, edx                                                       ; +0xca, 0x10060e4da\ncall    EditorUI__createUndoObject                                     ; +0xcc, 0x10060e4dc\nmov     rdi, [rbx+380h]                                                ; +0xd1, 0x10060e4e1\ncall    sub_1007FEF90                                                  ; +0xd8, 0x10060e4e8\ntest    eax, eax                                                       ; +0xdd, 0x10060e4ed\njz      loc_10060E588                                                  ; +0xdf, 0x10060e4ef\nlea     r15, [rbp+var_38]                                              ; +0xe5, 0x10060e4f5\nlea     r12, [rbp+var_30]                                              ; +0xe9, 0x10060e4f9\nnop     dword ptr [rax]                                                ; +0xed, 0x10060e4fd\nmov     rdi, [rbx+380h]                                                ; +0xf0, 0x10060e500\nmov     esi, r14d                                                      ; +0xf7, 0x10060e507\ncall    sub_1007FEFE0                                                  ; +0xfa, 0x10060e50a\nmov     r13, rax                                                       ; +0xff, 0x10060e50f\nmov     rdi, r15                                                       ; +0x102, 0x10060e512\nmov     rsi, r12                                                       ; +0x105, 0x10060e515\ncall    sub_1002782D0                                                  ; +0x108, 0x10060e518\nmov     rdi, rbx                                                       ; +0x10d, 0x10060e51d\nmov     rsi, r13                                                       ; +0x110, 0x10060e520\nmov     rdx, r15                                                       ; +0x113, 0x10060e523\ncall    EditorUI__moveObject                                           ; +0x116, 0x10060e526\ninc     r14d                                                           ; +0x11b, 0x10060e52b\nmov     rdi, [rbx+380h]                                                ; +0x11e, 0x10060e52e\ncall    sub_1007FEF90                                                  ; +0x125, 0x10060e535\ncmp     r14d, eax                                                      ; +0x12a, 0x10060e53a\njb      short loc_10060E500                                            ; +0x12d, 0x10060e53d\njmp     short loc_10060E588                                            ; +0x12f, 0x10060e53f\nmov     rdi, [rbx+5D8h]                                                ; +0x131, 0x10060e541\nmov     esi, 5                                                         ; +0x138, 0x10060e548\ncall    UndoObject__create                                             ; +0x13d, 0x10060e54d\nmov     rdi, [rbx+5A0h]                                                ; +0x142, 0x10060e552\nmov     rsi, rax                                                       ; +0x149, 0x10060e559\nxor     edx, edx                                                       ; +0x14c, 0x10060e55c\ncall    LevelEditorLayer__addToUndoList                                ; +0x14e, 0x10060e55e\nmov     r14, [rbx+5D8h]                                                ; +0x153, 0x10060e563\nlea     r15, [rbp+var_38]                                              ; +0x15a, 0x10060e56a\nlea     rsi, [rbp+var_30]                                              ; +0x15e, 0x10060e56e\nmov     rdi, r15                                                       ; +0x162, 0x10060e572\ncall    sub_1002782D0                                                  ; +0x165, 0x10060e575\nmov     rdi, rbx                                                       ; +0x16a, 0x10060e57a\nmov     rsi, r14                                                       ; +0x16d, 0x10060e57d\nmov     rdx, r15                                                       ; +0x170, 0x10060e580\ncall    EditorUI__moveObject                                           ; +0x173, 0x10060e583\nmov     rdi, [rbx+318h]                                                ; +0x178, 0x10060e588\nmov     rax, [rdi]                                                     ; +0x17f, 0x10060e58f\ncall    qword ptr [rax+160h]                                           ; +0x182, 0x10060e592\ntest    al, al                                                         ; +0x188, 0x10060e598\njz      short loc_10060E5DD                                            ; +0x18a, 0x10060e59a\nmov     r14, [rbx+318h]                                                ; +0x18c, 0x10060e59c\nmov     rax, [r14]                                                     ; +0x193, 0x10060e5a3\nmov     rdi, r14                                                       ; +0x196, 0x10060e5a6\ncall    qword ptr [rax+0C0h]                                           ; +0x199, 0x10060e5a9\nlea     r15, [rbp+var_38]                                              ; +0x19f, 0x10060e5af\nlea     rdx, [rbp+var_30]                                              ; +0x1a3, 0x10060e5b3\nmov     rdi, r15                                                       ; +0x1a7, 0x10060e5b7\nmov     rsi, rax                                                       ; +0x1aa, 0x10060e5ba\ncall    sub_100278350                                                  ; +0x1ad, 0x10060e5bd\nmov     rax, [r14]                                                     ; +0x1b2, 0x10060e5c2\nmov     rdi, r14                                                       ; +0x1b5, 0x10060e5c5\nmov     rsi, r15                                                       ; +0x1b8, 0x10060e5c8\ncall    qword ptr [rax+0B8h]                                           ; +0x1bb, 0x10060e5cb\nmov     rdi, [rbx+318h]                                                ; +0x1c1, 0x10060e5d1\ncall    GJTransformControl__refreshControl                             ; +0x1c8, 0x10060e5d8\nmov     rdi, [rbx+2F8h]                                                ; +0x1cd, 0x10060e5dd\nmov     rax, [rdi]                                                     ; +0x1d4, 0x10060e5e4\ncall    qword ptr [rax+160h]                                           ; +0x1d7, 0x10060e5e7\ntest    al, al                                                         ; +0x1dd, 0x10060e5ed\njz      short loc_10060E600                                            ; +0x1df, 0x10060e5ef\nmov     byte ptr [rbx+308h], 1                                         ; +0x1e1, 0x10060e5f1\nmov     rdi, rbx                                                       ; +0x1e8, 0x10060e5f8\ncall    EditorUI__activateRotationControl                              ; +0x1eb, 0x10060e5fb\nmov     rax, [rbx]                                                     ; +0x1f0, 0x10060e600\nmov     rdi, rbx                                                       ; +0x1f3, 0x10060e603\ncall    qword ptr [rax+548h]                                           ; +0x1f6, 0x10060e606\nmov     rdi, rbx                                                       ; +0x1fc, 0x10060e60c\ncall    EditorUI__updateButtons                                        ; +0x1ff, 0x10060e60f\nadd     rsp, 18h                                                       ; +0x204, 0x10060e614\npop     rbx                                                            ; +0x208, 0x10060e618\npop     r12                                                            ; +0x209, 0x10060e619\npop     r13                                                            ; +0x20b, 0x10060e61b\npop     r14                                                            ; +0x20d, 0x10060e61d\npop     r15                                                            ; +0x20f, 0x10060e61f\npop     rbp                                                            ; +0x211, 0x10060e621\nretn                                                                   ; +0x212, 0x10060e622", "xrefs": ["EditorUI::handleEditorAction @ 0x10060bd76", "EditorUI::handleEditorAction @ 0x10060ce77", "EditorUI::moveObjectCall @ 0x10060e3fd"], "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"}