{"type": "func", "start": 4770084, "end": 4770150, "name": "EditorUI::undoLastAction", "pseudocode": "// \n// EditorUI::undoLastAction from 0x48c924 to 0x48c966 (66 bytes)\n// \n// 1 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f19a4\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:49:31 +0000\n// \n\nint __fastcall EditorUI::undoLastAction(cocos2d::CCArray ***this, cocos2d::CCObject *a2)\n{\n  EditorSFXManager *v3; // r0\n\n  v3 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)this);\n  EditorSFXManager::playAction(v3, 180);\n  LevelEditorLayer::undoLastAction(*(this + 236));\n  EditorUI::updateButtons((cocos2d::CCArray **)this);\n  if ( (*((int (__fastcall **)(_DWORD))**(this + 144) + 44))(*(this + 144)) )\n  {\n    *((_BYTE *)this + 588) = 1;\n    EditorUI::activateRotationControl((EditorUI *)this, nullptr);\n  }\n  return EditorUI::updateSpecialUIElements((cocos2d::CCArray **)this);\n}", "assembly": "; \n; EditorUI::undoLastAction from 0x48c924 to 0x48c966 (66 bytes)\n; \n; 1 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f19a4\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:49:31 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x48c924\nMOV             R4, R0                                                 ; +0x2, 0x48c926\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x4, 0x48c928\nMOVS            R1, #0xB4; int                                         ; +0x8, 0x48c92c\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0xa, 0x48c92e\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0xe, 0x48c932\nBL              _ZN16LevelEditorLayer14undoLastActionEv; LevelEditorLayer::undoLastAction(void) ; +0x12, 0x48c936\nMOV             R0, R4; this                                           ; +0x16, 0x48c93a\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x18, 0x48c93c\nLDR.W           R0, [R4,#0x240]                                        ; +0x1c, 0x48c940\nLDR             R3, [R0]                                               ; +0x20, 0x48c944\nLDR.W           R3, [R3,#0xB0]                                         ; +0x22, 0x48c946\nBLX             R3                                                     ; +0x26, 0x48c94a\nCBZ             R0, loc_48C95C                                         ; +0x28, 0x48c94c\nMOVS            R3, #1                                                 ; +0x2a, 0x48c94e\nMOV             R0, R4; this                                           ; +0x2c, 0x48c950\nSTRB.W          R3, [R4,#0x24C]                                        ; +0x2e, 0x48c952\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x32, 0x48c956\nBL              _ZN8EditorUI23activateRotationControlEPN7cocos2d8CCObjectE; EditorUI::activateRotationControl(cocos2d::CCObject *) ; +0x34, 0x48c958\nMOV             R0, R4; this                                           ; +0x38, 0x48c95c\nPOP.W           {R4,LR}                                                ; +0x3a, 0x48c95e\nB.W             _ZN8EditorUI23updateSpecialUIElementsEv; EditorUI::updateSpecialUIElements(void) ; +0x3e, 0x48c962", "xrefs": ["EditorUI::handleEditorAction @ 0x6f19a4"], "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"}