{"type": "func", "start": 12592296, "end": 12592956, "name": "EditorUI::moveObjectCall", "pseudocode": "// \n// EditorUI::moveObjectCall from 0xc024a8 to 0xc0273c (660 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd73cc\n// > EditorUI::handleEditorAction @ 0xbd800c\n// > EditorUI::moveObjectCall @ 0xc0276c\n// > <???> @ 0xafcd8\n// \n// This function is hookable on this platform (idp: arm, 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 13:03:49 +0000\n// \n\n__int64 __fastcall EditorUI::moveObjectCall(__int64 a1, int a2)\n{\n  cocos2d::CCDirector *v4; // x0\n  __int64 v5; // x0\n  __int64 v6; // x0\n  EditorSFXManager *v7; // x0\n  EditorSFXManager *v8; // x0\n  UndoObject *v9; // x0\n  __int64 v10; // x22\n  unsigned int v12; // w20\n  unsigned int v13; // w1\n  __int64 v14; // x23\n  __int64 v15; // x0\n  __int64 v16; // x22\n  void (__fastcall *v17)(__int64, __int64 *); // x23\n  __int64 v18; // x0\n  EditorSFXManager *v19; // x0\n  EditorSFXManager *v20; // x0\n  EditorSFXManager *v21; // x0\n  EditorSFXManager *v22; // x0\n  EditorSFXManager *v23; // x0\n  _BYTE v24[8]; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v25; // [xsp+60h] [xbp+60h] BYREF\n\n  v4 = *(cocos2d::CCDirector **)(a1 + 1496);\n  if ( v4 || (v4 = (cocos2d::CCDirector *)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)), (_DWORD)v4) )\n  {\n    v5 = cocos2d::CCDirector::sharedDirector(v4);\n    v6 = *(unsigned __int8 *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5) + 133);\n    if ( !(_DWORD)v6 )\n    {\n      v15 = *(_QWORD *)(a1 + 1440) + 14704LL;\n      *(_DWORD *)(v15 + 12) = *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 14716LL) + 1;\n      v6 = EditorBuildStats::noteAction(v15);\n    }\n    v7 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)v6);\n    EditorSFXManager::playAction(v7, 150);\n    v8 = (EditorSFXManager *)(unsigned int)(a2 - 1);\n    switch ( a2 )\n    {\n      case 1:\n      case 2:\n      case 3:\n      case 4:\n      case 13:\n      case 14:\n      case 15:\n      case 16:\n      case 25:\n      case 26:\n      case 27:\n      case 28:\n        v22 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        EditorSFXManager::playAction(v22, 151);\n        break;\n      case 5:\n      case 6:\n      case 7:\n      case 8:\n        v21 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        EditorSFXManager::playAction(v21, 152);\n        break;\n      case 9:\n      case 10:\n      case 11:\n      case 12:\n        v20 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        EditorSFXManager::playAction(v20, 153);\n        break;\n      case 17:\n      case 18:\n      case 19:\n      case 20:\n      case 21:\n      case 22:\n      case 23:\n      case 24:\n      case 29:\n      case 30:\n      case 31:\n      case 32:\n        v19 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        EditorSFXManager::playAction(v19, 155);\n        break;\n      case 33:\n      case 34:\n      case 35:\n      case 36:\n        v23 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        EditorSFXManager::playAction(v23, 276);\n        break;\n      default:\n        break;\n    }\n    EditorUI::moveForCommand(a1, a2, (cocos2d::CCPoint *)v24);\n    if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) )\n    {\n      v12 = 0;\n      EditorUI::createUndoObject(a1, 5, 0);\n      while ( v12 < (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) )\n      {\n        v13 = v12++;\n        v14 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 896), v13);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, (const cocos2d::CCPoint *)v24);\n        EditorUI::moveObject(a1, v14);\n      }\n    }\n    else\n    {\n      v9 = (UndoObject *)UndoObject::create(*(GameObjectCopy **)(a1 + 1496), 5);\n      LevelEditorLayer::addToUndoList(*(cocos2d::CCArray ***)(a1 + 1440), v9, 0);\n      v10 = *(_QWORD *)(a1 + 1496);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, (const cocos2d::CCPoint *)v24);\n      EditorUI::moveObject(a1, v10);\n    }\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )\n    {\n      v16 = *(_QWORD *)(a1 + 792);\n      v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL);\n      v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 192LL))(v16);\n      cocos2d::CCPoint::operator+(&v25, v18);\n      v17(v16, &v25);\n      GJTransformControl::refreshControl(*(GJTransformControl **)(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((GJRotationControl **)a1, nullptr);\n    }\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1352LL))(a1);\n    EditorUI::updateButtons((EditorUI *)a1);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::moveObjectCall from 0xc024a8 to 0xc0273c (660 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd73cc\n; > EditorUI::handleEditorAction @ 0xbd800c\n; > EditorUI::moveObjectCall @ 0xc0276c\n; > <???> @ 0xafcd8\n; \n; This function is hookable on this platform (idp: arm, 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 13:03:49 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xc024a8\nMOV             X29, SP                                                ; +0x4, 0xc024ac\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x8, 0xc024b0\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc024b4\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x10, 0xc024b8\nMOV             W20, W1                                                ; +0x14, 0xc024bc\nMOV             X19, X0                                                ; +0x18, 0xc024c0\nLDR             X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xc024c4\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x20, 0xc024c8\nLDR             X1, [X1]                                               ; +0x24, 0xc024cc\nLDR             X0, [X0,#0x5D8]; this                                  ; +0x28, 0xc024d0\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x2c, 0xc024d4\nCBZ             X0, loc_C026D8                                         ; +0x30, 0xc024d8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x34, 0xc024dc\nLDR             X1, [X0]                                               ; +0x38, 0xc024e0\nLDR             X1, [X1,#0xC0]                                         ; +0x3c, 0xc024e4\nBLR             X1                                                     ; +0x40, 0xc024e8\nLDRB            W0, [X0,#0x85]; this                                   ; +0x44, 0xc024ec\nCBZ             W0, loc_C02674                                         ; +0x48, 0xc024f0\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x4c, 0xc024f4\nMOV             W1, #0x96; int                                         ; +0x50, 0xc024f8\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x54, 0xc024fc\nSUB             W0, W20, #1; switch 36 cases                           ; +0x58, 0xc02500\nCMP             W0, #0x23                                              ; +0x5c, 0xc02504\nB.LS            loc_C0265C                                             ; +0x60, 0xc02508\nADD             X24, X29, #0x70+var_18; jumptable 0000000000C02670 default case ; +0x64, 0xc0250c\nMOV             X0, X19                                                ; +0x68, 0xc02510\nMOV             X8, X24                                                ; +0x6c, 0xc02514\nMOV             W1, W20                                                ; +0x70, 0xc02518\nBL              _ZN8EditorUI14moveForCommandE11EditCommand; EditorUI::moveForCommand(EditCommand) ; +0x74, 0xc0251c\nLDR             X0, [X19,#0x380]; this                                 ; +0x78, 0xc02520\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x7c, 0xc02524\nCBNZ            W0, loc_C025FC                                         ; +0x80, 0xc02528\nLDR             X0, [X19,#0x5D8]                                       ; +0x84, 0xc0252c\nMOV             W1, #5                                                 ; +0x88, 0xc02530\nADD             X20, X29, #0x70+var_10                                 ; +0x8c, 0xc02534\nBL              _ZN10UndoObject6createEP10GameObject11UndoCommand; UndoObject::create(GameObject *,UndoCommand) ; +0x90, 0xc02538\nMOV             X1, X0; UndoObject *                                   ; +0x94, 0xc0253c\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x98, 0xc02540\nMOV             W2, #0; bool                                           ; +0x9c, 0xc02544\nBL              _ZN16LevelEditorLayer13addToUndoListEP10UndoObjectb; LevelEditorLayer::addToUndoList(UndoObject *,bool) ; +0xa0, 0xc02548\nLDR             X22, [X19,#0x5D8]                                      ; +0xa4, 0xc0254c\nMOV             X0, X20; this                                          ; +0xa8, 0xc02550\nMOV             X1, X24; cocos2d::CCPoint *                            ; +0xac, 0xc02554\nSTR             X20, [X29,#0x70+var_28]                                ; +0xb0, 0xc02558\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xb4, 0xc0255c\nLDR             X2, [X29,#0x70+var_28]                                 ; +0xb8, 0xc02560\nMOV             X0, X19                                                ; +0xbc, 0xc02564\nMOV             X1, X22                                                ; +0xc0, 0xc02568\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0xc4, 0xc0256c\nLDR             X1, [X19,#0x318]                                       ; +0xc8, 0xc02570\nMOV             X0, X1                                                 ; +0xcc, 0xc02574\nLDR             X1, [X1]                                               ; +0xd0, 0xc02578\nLDR             X1, [X1,#0x160]                                        ; +0xd4, 0xc0257c\nBLR             X1                                                     ; +0xd8, 0xc02580\nUXTB            W0, W0                                                 ; +0xdc, 0xc02584\nCBNZ            W0, loc_C02698                                         ; +0xe0, 0xc02588\nLDR             X1, [X19,#0x2F8]                                       ; +0xe4, 0xc0258c\nMOV             X0, X1                                                 ; +0xe8, 0xc02590\nLDR             X1, [X1]                                               ; +0xec, 0xc02594\nLDR             X1, [X1,#0x160]                                        ; +0xf0, 0xc02598\nBLR             X1                                                     ; +0xf4, 0xc0259c\nUXTB            W0, W0                                                 ; +0xf8, 0xc025a0\nCBZ             W0, loc_C025BC                                         ; +0xfc, 0xc025a4\nMOV             W1, #1                                                 ; +0x100, 0xc025a8\nMOV             X0, X19; this                                          ; +0x104, 0xc025ac\nSTRB            W1, [X19,#0x308]                                       ; +0x108, 0xc025b0\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x10c, 0xc025b4\nBL              _ZN8EditorUI23activateRotationControlEPN7cocos2d8CCObjectE; EditorUI::activateRotationControl(cocos2d::CCObject *) ; +0x110, 0xc025b8\nLDR             X1, [X19]                                              ; +0x114, 0xc025bc\nMOV             X0, X19                                                ; +0x118, 0xc025c0\nLDR             X1, [X1,#0x548]                                        ; +0x11c, 0xc025c4\nBLR             X1                                                     ; +0x120, 0xc025c8\nMOV             X0, X19; this                                          ; +0x124, 0xc025cc\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x128, 0xc025d0\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x12c, 0xc025d4\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x130, 0xc025d8\nLDR             X0, [X21]                                              ; +0x134, 0xc025dc\nCMP             X1, X0                                                 ; +0x138, 0xc025e0\nB.NE            loc_C02738                                             ; +0x13c, 0xc025e4\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x140, 0xc025e8\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x144, 0xc025ec\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x148, 0xc025f0\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x14c, 0xc025f4\nRET                                                                    ; +0x150, 0xc025f8\nMOV             X0, X19                                                ; +0x154, 0xc025fc\nMOV             W1, #5                                                 ; +0x158, 0xc02600\nMOV             W2, #0                                                 ; +0x15c, 0xc02604\nMOV             W20, #0                                                ; +0x160, 0xc02608\nADD             X22, X29, #0x70+var_10                                 ; +0x164, 0xc0260c\nBL              _ZN8EditorUI16createUndoObjectE11UndoCommandb; EditorUI::createUndoObject(UndoCommand,bool) ; +0x168, 0xc02610\nB               loc_C02648                                             ; +0x16c, 0xc02614\nLDR             X0, [X19,#0x380]; this                                 ; +0x170, 0xc02618\nMOV             W1, W20; unsigned int                                  ; +0x174, 0xc0261c\nADD             W20, W20, #1                                           ; +0x178, 0xc02620\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x17c, 0xc02624\nMOV             X23, X0                                                ; +0x180, 0xc02628\nMOV             X1, X24; cocos2d::CCPoint *                            ; +0x184, 0xc0262c\nMOV             X0, X22; this                                          ; +0x188, 0xc02630\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x18c, 0xc02634\nMOV             X0, X19                                                ; +0x190, 0xc02638\nMOV             X1, X23                                                ; +0x194, 0xc0263c\nMOV             X2, X22                                                ; +0x198, 0xc02640\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x19c, 0xc02644\nLDR             X0, [X19,#0x380]; this                                 ; +0x1a0, 0xc02648\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a4, 0xc0264c\nCMP             W20, W0                                                ; +0x1a8, 0xc02650\nB.CC            loc_C02618                                             ; +0x1ac, 0xc02654\nB               loc_C02570                                             ; +0x1b0, 0xc02658\nADRL            X1, jpt_C02670                                         ; +0x1b4, 0xc0265c\nLDRB            W0, [X1,W0,UXTW]                                       ; +0x1bc, 0xc02664\nADR             X1, loc_C02674                                         ; +0x1c0, 0xc02668\nADD             X0, X1, W0,SXTB#2; this                                ; +0x1c4, 0xc0266c\nBR              X0; switch jump                                        ; +0x1c8, 0xc02670\nLDR             X1, [X19,#0x5A0]                                       ; +0x1cc, 0xc02674\nADD             X1, X1, #3,LSL#12                                      ; +0x1d0, 0xc02678\nADD             X1, X1, #0x970                                         ; +0x1d4, 0xc0267c\nMOV             X0, X1; this                                           ; +0x1d8, 0xc02680\nLDR             W2, [X1,#0xC]                                          ; +0x1dc, 0xc02684\nADD             W2, W2, #1                                             ; +0x1e0, 0xc02688\nSTR             W2, [X1,#0xC]                                          ; +0x1e4, 0xc0268c\nBL              _ZN16EditorBuildStats10noteActionEv; EditorBuildStats::noteAction(void) ; +0x1e8, 0xc02690\nB               loc_C024F4                                             ; +0x1ec, 0xc02694\nLDR             X22, [X19,#0x318]                                      ; +0x1f0, 0xc02698\nADD             X20, X29, #0x70+var_10                                 ; +0x1f4, 0xc0269c\nMOV             X0, X22                                                ; +0x1f8, 0xc026a0\nLDR             X1, [X22]                                              ; +0x1fc, 0xc026a4\nLDR             X2, [X1,#0xC0]                                         ; +0x200, 0xc026a8\nLDR             X23, [X1,#0xB8]                                        ; +0x204, 0xc026ac\nBLR             X2                                                     ; +0x208, 0xc026b0\nMOV             X8, X20                                                ; +0x20c, 0xc026b4\nMOV             X1, X24                                                ; +0x210, 0xc026b8\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x214, 0xc026bc\nMOV             X0, X22                                                ; +0x218, 0xc026c0\nMOV             X1, X20                                                ; +0x21c, 0xc026c4\nBLR             X23                                                    ; +0x220, 0xc026c8\nLDR             X0, [X19,#0x318]; this                                 ; +0x224, 0xc026cc\nBL              _ZN18GJTransformControl14refreshControlEv; GJTransformControl::refreshControl(void) ; +0x228, 0xc026d0\nB               loc_C0258C                                             ; +0x22c, 0xc026d4\nLDR             X0, [X19,#0x380]; this                                 ; +0x230, 0xc026d8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x234, 0xc026dc\nCBZ             W0, loc_C025D4                                         ; +0x238, 0xc026e0\nB               loc_C024DC                                             ; +0x23c, 0xc026e4\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0000000000C02670 cases 17-24,29-32 ; +0x240, 0xc026e8\nMOV             W1, #0x9B; int                                         ; +0x244, 0xc026ec\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x248, 0xc026f0\nB               def_C02670; jumptable 0000000000C02670 default case    ; +0x24c, 0xc026f4\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0000000000C02670 cases 9-12 ; +0x250, 0xc026f8\nMOV             W1, #0x99; int                                         ; +0x254, 0xc026fc\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x258, 0xc02700\nB               def_C02670; jumptable 0000000000C02670 default case    ; +0x25c, 0xc02704\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0000000000C02670 cases 5-8 ; +0x260, 0xc02708\nMOV             W1, #0x98; int                                         ; +0x264, 0xc0270c\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x268, 0xc02710\nB               def_C02670; jumptable 0000000000C02670 default case    ; +0x26c, 0xc02714\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0000000000C02670 cases 1-4,13-16,25-28 ; +0x270, 0xc02718\nMOV             W1, #0x97; int                                         ; +0x274, 0xc0271c\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x278, 0xc02720\nB               def_C02670; jumptable 0000000000C02670 default case    ; +0x27c, 0xc02724\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0000000000C02670 cases 33-36 ; +0x280, 0xc02728\nMOV             W1, #0x114; int                                        ; +0x284, 0xc0272c\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x288, 0xc02730\nB               def_C02670; jumptable 0000000000C02670 default case    ; +0x28c, 0xc02734\nBL              .__stack_chk_fail                                      ; +0x290, 0xc02738", "xrefs": ["EditorUI::handleEditorAction @ 0xbd73cc", "EditorUI::handleEditorAction @ 0xbd800c", "EditorUI::moveObjectCall @ 0xc0276c", "<???> @ 0xafcd8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}