{"type": "func", "start": 7400564, "end": 7400994, "name": "EditorUI::moveObjectCall", "pseudocode": "// \n// EditorUI::moveObjectCall from 0x70ec74 to 0x70ee22 (430 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f1b4c\n// > EditorUI::handleEditorAction @ 0x6f1b6a\n// > EditorUI::moveObjectCall @ 0x70ee3c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:43 +0000\n// \n\nint __fastcall EditorUI::moveObjectCall(int result, int a2)\n{\n  int v2; // r4\n  int v4; // r0\n  EditorSFXManager *v5; // r0\n  int v6; // r0\n  EditorSFXManager *v7; // r0\n  EditorSFXManager *v8; // r0\n  EditorSFXManager *v9; // r0\n  int v10; // r1\n  unsigned int v11; // r6\n  GameObject *v12; // r0\n  GameObject *v13; // r9\n  UndoObject *v14; // r0\n  GameObject *v15; // r8\n  int v16; // r6\n  void (__fastcall *v17)(int, _BYTE *); // r9\n  int v18; // r0\n  int v19; // r2\n  _BYTE v20[8]; // [sp+4h] [bp-18h] BYREF\n  _BYTE v21[8]; // [sp+Ch] [bp-10h] BYREF\n\n  v2 = result;\n  if ( *(_DWORD *)(result + 996) || (result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(result + 668))) != 0 )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)result);\n    v5 = (EditorSFXManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 96))(v4);\n    if ( !*((_BYTE *)v5 + 93) )\n    {\n      v6 = *(_DWORD *)(v2 + 944) + 12104;\n      *(_DWORD *)(v6 + 12) = *(_DWORD *)(*(_DWORD *)(v2 + 944) + 12116) + 1;\n      v5 = (EditorSFXManager *)EditorBuildStats::noteAction(v6);\n    }\n    v7 = (EditorSFXManager *)EditorSFXManager::sharedState(v5);\n    v8 = (EditorSFXManager *)EditorSFXManager::playAction(v7, 150);\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        v9 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        v10 = 151;\n        goto LABEL_11;\n      case 5:\n      case 6:\n      case 7:\n      case 8:\n        v9 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        v10 = 152;\n        goto LABEL_11;\n      case 9:\n      case 10:\n      case 11:\n      case 12:\n        v9 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        v10 = 153;\n        goto LABEL_11;\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        v9 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        v10 = 155;\n        goto LABEL_11;\n      case 33:\n      case 34:\n      case 35:\n      case 36:\n        v9 = (EditorSFXManager *)EditorSFXManager::sharedState(v8);\n        v10 = 276;\nLABEL_11:\n        EditorSFXManager::playAction(v9, v10);\n        break;\n      default:\n        break;\n    }\n    EditorUI::moveForCommand((cocos2d::CCPoint *)v20, v2, a2);\n    if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 668)) )\n    {\n      EditorUI::createUndoObject(v2, 5, 0);\n      v11 = 0;\n      while ( v11 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 668)) )\n      {\n        v12 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 668), v11++);\n        v13 = v12;\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (const cocos2d::CCPoint *)v20);\n        EditorUI::moveObject(v2, v13, (int)v21);\n      }\n    }\n    else\n    {\n      v14 = UndoObject::create(*(GameObjectCopy **)(v2 + 996), 5);\n      LevelEditorLayer::addToUndoList(*(cocos2d::CCArray ***)(v2 + 944), v14, 0);\n      v15 = *(GameObject **)(v2 + 996);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (const cocos2d::CCPoint *)v20);\n      EditorUI::moveObject(v2, v15, (int)v21);\n    }\n    if ( (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 596) + 176))(*(_DWORD *)(v2 + 596)) )\n    {\n      v16 = *(_DWORD *)(v2 + 596);\n      v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92);\n      v18 = (*(int (__fastcall **)(int))(*(_DWORD *)v16 + 96))(v16);\n      cocos2d::CCPoint::operator+(v21, v18, v20);\n      v17(v16, v21);\n      GJTransformControl::refreshControl(*(GJTransformControl **)(v2 + 596));\n    }\n    if ( (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 576) + 176))(*(_DWORD *)(v2 + 576)) )\n    {\n      *(_BYTE *)(v2 + 588) = 1;\n      EditorUI::activateRotationControl((cocos2d::CCArray **)v2, nullptr, v19, 1);\n    }\n    (*(void (__fastcall **)(int))(*(_DWORD *)v2 + 676))(v2);\n    return EditorUI::updateButtons((cocos2d::CCArray **)v2);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::moveObjectCall from 0x70ec74 to 0x70ee22 (430 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f1b4c\n; > EditorUI::handleEditorAction @ 0x6f1b6a\n; > EditorUI::moveObjectCall @ 0x70ee3c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:43 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x70EC7E)                ; +0x0, 0x70ec74\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x70ec76\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x70ec7a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x70ec7c\nSUB             SP, SP, #0x1C                                          ; +0xa, 0x70ec7e\nMOV             R4, R0                                                 ; +0xc, 0x70ec80\nLDR             R2, [R3]                                               ; +0xe, 0x70ec82\nMOV             R6, R1                                                 ; +0x10, 0x70ec84\nMOV             R7, R3                                                 ; +0x12, 0x70ec86\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x14, 0x70ec88\nLDR.W           R2, [R0,#0x3E4]                                        ; +0x16, 0x70ec8a\nCBNZ            R2, loc_70EC9E                                         ; +0x1a, 0x70ec8e\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0x1c, 0x70ec90\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x70ec94\nCMP             R0, #0                                                 ; +0x24, 0x70ec98\nBEQ.W           loc_70EE10                                             ; +0x26, 0x70ec9a\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2a, 0x70ec9e\nLDR             R3, [R0]                                               ; +0x2e, 0x70eca2\nLDR             R3, [R3,#0x60]                                         ; +0x30, 0x70eca4\nBLX             R3                                                     ; +0x32, 0x70eca6\nLDRB.W          R3, [R0,#0x5D]                                         ; +0x34, 0x70eca8\nCBNZ            R3, loc_70ECC2                                         ; +0x38, 0x70ecac\nLDR.W           R0, [R4,#0x3B0]                                        ; +0x3a, 0x70ecae\nADD.W           R0, R0, #0x2F40                                        ; +0x3e, 0x70ecb2\nADDS            R0, #8; this                                           ; +0x42, 0x70ecb6\nLDR             R3, [R0,#0xC]                                          ; +0x44, 0x70ecb8\nADDS            R3, #1                                                 ; +0x46, 0x70ecba\nSTR             R3, [R0,#0xC]                                          ; +0x48, 0x70ecbc\nBL              _ZN16EditorBuildStats10noteActionEv; EditorBuildStats::noteAction(void) ; +0x4a, 0x70ecbe\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x4e, 0x70ecc2\nMOVS            R1, #0x96; int                                         ; +0x52, 0x70ecc6\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x54, 0x70ecc8\nSUBS            R3, R6, #1; switch 36 cases                            ; +0x58, 0x70eccc\nCMP             R3, #0x23 ; '#'                                        ; +0x5a, 0x70ecce\nBHI             def_70ECD2; jumptable 0070ECD2 default case            ; +0x5c, 0x70ecd0\nTBB.W           [PC,R3]; switch jump                                   ; +0x5e, 0x70ecd2\nDCB 0x1E; jump table for switch statement                              ; +0x62, 0x70ecd6\nDCB 0x1E                                                               ; +0x63, 0x70ecd7\nDCB 0x1E                                                               ; +0x64, 0x70ecd8\nDCB 0x1E                                                               ; +0x65, 0x70ecd9\nDCB 0x16                                                               ; +0x66, 0x70ecda\nDCB 0x16                                                               ; +0x67, 0x70ecdb\nDCB 0x16                                                               ; +0x68, 0x70ecdc\nDCB 0x16                                                               ; +0x69, 0x70ecdd\nDCB 0x12                                                               ; +0x6a, 0x70ecde\nDCB 0x12                                                               ; +0x6b, 0x70ecdf\nDCB 0x12                                                               ; +0x6c, 0x70ece0\nDCB 0x12                                                               ; +0x6d, 0x70ece1\nDCB 0x1E                                                               ; +0x6e, 0x70ece2\nDCB 0x1E                                                               ; +0x6f, 0x70ece3\nDCB 0x1E                                                               ; +0x70, 0x70ece4\nDCB 0x1E                                                               ; +0x71, 0x70ece5\nDCB 0x1A                                                               ; +0x72, 0x70ece6\nDCB 0x1A                                                               ; +0x73, 0x70ece7\nDCB 0x1A                                                               ; +0x74, 0x70ece8\nDCB 0x1A                                                               ; +0x75, 0x70ece9\nDCB 0x1A                                                               ; +0x76, 0x70ecea\nDCB 0x1A                                                               ; +0x77, 0x70eceb\nDCB 0x1A                                                               ; +0x78, 0x70ecec\nDCB 0x1A                                                               ; +0x79, 0x70eced\nDCB 0x1E                                                               ; +0x7a, 0x70ecee\nDCB 0x1E                                                               ; +0x7b, 0x70ecef\nDCB 0x1E                                                               ; +0x7c, 0x70ecf0\nDCB 0x1E                                                               ; +0x7d, 0x70ecf1\nDCB 0x1A                                                               ; +0x7e, 0x70ecf2\nDCB 0x1A                                                               ; +0x7f, 0x70ecf3\nDCB 0x1A                                                               ; +0x80, 0x70ecf4\nDCB 0x1A                                                               ; +0x81, 0x70ecf5\nDCB 0x22                                                               ; +0x82, 0x70ecf6\nDCB 0x22                                                               ; +0x83, 0x70ecf7\nDCB 0x22                                                               ; +0x84, 0x70ecf8\nDCB 0x22                                                               ; +0x85, 0x70ecf9\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0070ECD2 cases 9-12 ; +0x86, 0x70ecfa\nMOVS            R1, #0x99                                              ; +0x8a, 0x70ecfe\nB               loc_70ED22                                             ; +0x8c, 0x70ed00\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0070ECD2 cases 5-8 ; +0x8e, 0x70ed02\nMOVS            R1, #0x98                                              ; +0x92, 0x70ed06\nB               loc_70ED22                                             ; +0x94, 0x70ed08\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0070ECD2 cases 17-24,29-32 ; +0x96, 0x70ed0a\nMOVS            R1, #0x9B                                              ; +0x9a, 0x70ed0e\nB               loc_70ED22                                             ; +0x9c, 0x70ed10\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0070ECD2 cases 1-4,13-16,25-28 ; +0x9e, 0x70ed12\nMOVS            R1, #0x97                                              ; +0xa2, 0x70ed16\nB               loc_70ED22                                             ; +0xa4, 0x70ed18\nBL              _ZN16EditorSFXManager11sharedStateEv; jumptable 0070ECD2 cases 33-36 ; +0xa6, 0x70ed1a\nMOV.W           R1, #0x114; int                                        ; +0xaa, 0x70ed1e\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0xae, 0x70ed22\nADD             R5, SP, #0x1C+var_18; jumptable 0070ECD2 default case  ; +0xb2, 0x70ed26\nMOV             R2, R6                                                 ; +0xb4, 0x70ed28\nMOV             R1, R4                                                 ; +0xb6, 0x70ed2a\nMOV             R0, R5                                                 ; +0xb8, 0x70ed2c\nBL              _ZN8EditorUI14moveForCommandE11EditCommand; EditorUI::moveForCommand(EditCommand) ; +0xba, 0x70ed2e\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0xbe, 0x70ed32\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc2, 0x70ed36\nMOV             R6, R0                                                 ; +0xc6, 0x70ed3a\nCBZ             R0, loc_70ED7C                                         ; +0xc8, 0x70ed3c\nMOV             R0, R4                                                 ; +0xca, 0x70ed3e\nMOVS            R1, #5                                                 ; +0xcc, 0x70ed40\nMOVS            R2, #0                                                 ; +0xce, 0x70ed42\nADD.W           R8, SP, #0x1C+var_10                                   ; +0xd0, 0x70ed44\nBL              _ZN8EditorUI16createUndoObjectE11UndoCommandb; EditorUI::createUndoObject(UndoCommand,bool) ; +0xd4, 0x70ed48\nMOVS            R6, #0                                                 ; +0xd8, 0x70ed4c\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0xda, 0x70ed4e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xde, 0x70ed52\nCMP             R6, R0                                                 ; +0xe2, 0x70ed56\nBCS             loc_70EDAA                                             ; +0xe4, 0x70ed58\nMOV             R1, R6; unsigned int                                   ; +0xe6, 0x70ed5a\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0xe8, 0x70ed5c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xec, 0x70ed60\nMOV             R1, R5; cocos2d::CCPoint *                             ; +0xf0, 0x70ed64\nADDS            R6, #1                                                 ; +0xf2, 0x70ed66\nMOV             R9, R0                                                 ; +0xf4, 0x70ed68\nMOV             R0, R8; this                                           ; +0xf6, 0x70ed6a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xf8, 0x70ed6c\nMOV             R0, R4                                                 ; +0xfc, 0x70ed70\nMOV             R1, R9                                                 ; +0xfe, 0x70ed72\nMOV             R2, R8                                                 ; +0x100, 0x70ed74\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x102, 0x70ed76\nB               loc_70ED4E                                             ; +0x106, 0x70ed7a\nMOVS            R1, #5                                                 ; +0x108, 0x70ed7c\nLDR.W           R0, [R4,#0x3E4]                                        ; +0x10a, 0x70ed7e\nBL              _ZN10UndoObject6createEP10GameObject11UndoCommand; UndoObject::create(GameObject *,UndoCommand) ; +0x10e, 0x70ed82\nMOV             R2, R6; bool                                           ; +0x112, 0x70ed86\nADD             R6, SP, #0x1C+var_10                                   ; +0x114, 0x70ed88\nMOV             R1, R0; UndoObject *                                   ; +0x116, 0x70ed8a\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x118, 0x70ed8c\nBL              _ZN16LevelEditorLayer13addToUndoListEP10UndoObjectb; LevelEditorLayer::addToUndoList(UndoObject *,bool) ; +0x11c, 0x70ed90\nLDR.W           R8, [R4,#0x3E4]                                        ; +0x120, 0x70ed94\nMOV             R1, R5; cocos2d::CCPoint *                             ; +0x124, 0x70ed98\nMOV             R0, R6; this                                           ; +0x126, 0x70ed9a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x128, 0x70ed9c\nMOV             R0, R4                                                 ; +0x12c, 0x70eda0\nMOV             R1, R8                                                 ; +0x12e, 0x70eda2\nMOV             R2, R6                                                 ; +0x130, 0x70eda4\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x132, 0x70eda6\nLDR.W           R0, [R4,#0x254]                                        ; +0x136, 0x70edaa\nLDR             R3, [R0]                                               ; +0x13a, 0x70edae\nLDR.W           R3, [R3,#0xB0]                                         ; +0x13c, 0x70edb0\nBLX             R3                                                     ; +0x140, 0x70edb4\nCBZ             R0, loc_70EDE4                                         ; +0x142, 0x70edb6\nLDR.W           R6, [R4,#0x254]                                        ; +0x144, 0x70edb8\nADD.W           R8, SP, #0x1C+var_10                                   ; +0x148, 0x70edbc\nLDR             R3, [R6]                                               ; +0x14c, 0x70edc0\nMOV             R0, R6                                                 ; +0x14e, 0x70edc2\nLDR.W           R9, [R3,#0x5C]                                         ; +0x150, 0x70edc4\nLDR             R3, [R3,#0x60]                                         ; +0x154, 0x70edc8\nBLX             R3                                                     ; +0x156, 0x70edca\nMOV             R2, R5                                                 ; +0x158, 0x70edcc\nMOV             R1, R0                                                 ; +0x15a, 0x70edce\nMOV             R0, R8                                                 ; +0x15c, 0x70edd0\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x15e, 0x70edd2\nMOV             R0, R6                                                 ; +0x162, 0x70edd6\nMOV             R1, R8                                                 ; +0x164, 0x70edd8\nBLX             R9                                                     ; +0x166, 0x70edda\nLDR.W           R0, [R4,#0x254]; this                                  ; +0x168, 0x70eddc\nBL              _ZN18GJTransformControl14refreshControlEv; GJTransformControl::refreshControl(void) ; +0x16c, 0x70ede0\nLDR.W           R0, [R4,#0x240]                                        ; +0x170, 0x70ede4\nLDR             R3, [R0]                                               ; +0x174, 0x70ede8\nLDR.W           R3, [R3,#0xB0]                                         ; +0x176, 0x70edea\nBLX             R3                                                     ; +0x17a, 0x70edee\nCBZ             R0, loc_70EE00                                         ; +0x17c, 0x70edf0\nMOVS            R3, #1                                                 ; +0x17e, 0x70edf2\nMOV             R0, R4; this                                           ; +0x180, 0x70edf4\nSTRB.W          R3, [R4,#0x24C]                                        ; +0x182, 0x70edf6\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x186, 0x70edfa\nBL              _ZN8EditorUI23activateRotationControlEPN7cocos2d8CCObjectE; EditorUI::activateRotationControl(cocos2d::CCObject *) ; +0x188, 0x70edfc\nLDR             R3, [R4]                                               ; +0x18c, 0x70ee00\nMOV             R0, R4                                                 ; +0x18e, 0x70ee02\nLDR.W           R3, [R3,#0x2A4]                                        ; +0x190, 0x70ee04\nBLX             R3                                                     ; +0x194, 0x70ee08\nMOV             R0, R4; this                                           ; +0x196, 0x70ee0a\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x198, 0x70ee0c\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x19c, 0x70ee10\nLDR             R3, [R7]                                               ; +0x19e, 0x70ee12\nCMP             R2, R3                                                 ; +0x1a0, 0x70ee14\nBEQ             loc_70EE1C                                             ; +0x1a2, 0x70ee16\nBLX             __stack_chk_fail                                       ; +0x1a4, 0x70ee18\nADD             SP, SP, #0x1C                                          ; +0x1a8, 0x70ee1c\nPOP.W           {R4-R9,PC}                                             ; +0x1aa, 0x70ee1e", "xrefs": ["EditorUI::handleEditorAction @ 0x6f1b4c", "EditorUI::handleEditorAction @ 0x6f1b6a", "EditorUI::moveObjectCall @ 0x70ee3c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}