{"type": "func", "start": 4299146748, "end": 4299146836, "name": "LevelEditorLayer::undoLastAction", "pseudocode": "// \n// LevelEditorLayer::undoLastAction from 0x1003fc5fc to 0x1003fc654 (88 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::handleAction @ 0x1003fbf78\n// > EditorUI::undoLastAction @ 0x100470f70\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 11:04:36 +0000\n// \n\n_DWORD *__fastcall LevelEditorLayer::undoLastAction(__int64 a1)\n{\n  __int64 v2; // x0\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  if ( (*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2) + 133) & 1) == 0 )\n  {\n    ++*(_DWORD *)(a1 + 14724);\n    EditorBuildStats::noteAction(a1 + 14704);\n  }\n  return LevelEditorLayer::handleAction(a1, 1, *(_QWORD *)(a1 + 14256));\n}", "assembly": "; \n; LevelEditorLayer::undoLastAction from 0x1003fc5fc to 0x1003fc654 (88 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::handleAction @ 0x1003fbf78\n; > EditorUI::undoLastAction @ 0x100470f70\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 11:04:36 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003fc5fc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003fc600\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003fc604\nMOV             X19, X0                                                ; +0xc, 0x1003fc608\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x10, 0x1003fc60c\nLDR             X8, [X0]                                               ; +0x14, 0x1003fc610\nLDR             X8, [X8,#0xC0]                                         ; +0x18, 0x1003fc614\nBLR             X8                                                     ; +0x1c, 0x1003fc618\nLDRB            W8, [X0,#0x85]                                         ; +0x20, 0x1003fc61c\nTBNZ            W8, #0, loc_1003FC63C                                  ; +0x24, 0x1003fc620\nMOV             W8, #0x3970                                            ; +0x28, 0x1003fc624\nLDR             W9, [X19,#0x3984]                                      ; +0x2c, 0x1003fc628\nADD             W9, W9, #1                                             ; +0x30, 0x1003fc62c\nSTR             W9, [X19,#0x3984]                                      ; +0x34, 0x1003fc630\nADD             X0, X19, X8                                            ; +0x38, 0x1003fc634\nBL              EditorBuildStats__noteAction                           ; +0x3c, 0x1003fc638\nLDR             X2, [X19,#0x37B0]                                      ; +0x40, 0x1003fc63c\nMOV             X0, X19                                                ; +0x44, 0x1003fc640\nMOV             W1, #1                                                 ; +0x48, 0x1003fc644\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x1003fc648\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x1003fc64c\nB               LevelEditorLayer__handleAction                         ; +0x54, 0x1003fc650", "xrefs": ["LevelEditorLayer::handleAction @ 0x1003fbf78", "EditorUI::undoLastAction @ 0x100470f70"], "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"}