{"type": "func", "start": 5372850080, "end": 5372850205, "name": "LevelEditorLayer::redoLastAction", "pseudocode": "// \n// LevelEditorLayer::redoLastAction from 0x1403f2fa0 to 0x1403f301d (125 bytes)\n// \n// 5 xrefs:\n// > EditorUI::redoLastAction @ 0x1401b3c52\n// > EditorUI::handleEditorAction @ 0x1401c233b\n// > LevelEditorLayer::handleAction @ 0x1403f2f3b\n// > <???> @ 0x140925430\n// > <???> @ 0x14092543c\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 11:31:48 +0000\n// \n\nvoid __fastcall LevelEditorLayer::redoLastAction(__int64 a1)\n{\n  __int64 v2; // rax\n  int v3; // ecx\n  int v4; // eax\n  int v5; // ecx\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 176LL))(v2) + 157) )\n  {\n    ++*(_DWORD *)(a1 + 15428);\n    v3 = *(_DWORD *)(a1 + 15504);\n    if ( v3 >= 0 )\n    {\n      v4 = *(_DWORD *)(a1 + 15440) - v3;\n      v5 = 0;\n      if ( v4 > 1 )\n      {\n        do\n        {\n          if ( v5 >= 7 )\n            break;\n          v4 = (unsigned int)v4 >> 1;\n          ++v5;\n        }\n        while ( (unsigned int)v4 > 1 );\n      }\n      ++*(_DWORD *)(a1 + 4LL * v5 + 15472);\n    }\n    *(_DWORD *)(a1 + 15504) = *(_DWORD *)(a1 + 15440);\n  }\n  LevelEditorLayer::handleAction(a1, 0, *(cocos2d::CCArray **)(a1 + 14920));\n}", "assembly": "; \n; LevelEditorLayer::redoLastAction from 0x1403f2fa0 to 0x1403f301d (125 bytes)\n; \n; 5 xrefs:\n; > EditorUI::redoLastAction @ 0x1401b3c52\n; > EditorUI::handleEditorAction @ 0x1401c233b\n; > LevelEditorLayer::handleAction @ 0x1403f2f3b\n; > <???> @ 0x140925430\n; > <???> @ 0x14092543c\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 11:31:48 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403f2fa0\nsub     rsp, 20h                                                       ; +0x2, 0x1403f2fa2\nmov     rbx, rcx                                                       ; +0x6, 0x1403f2fa6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x1403f2fa9\nmov     rcx, rax                                                       ; +0xf, 0x1403f2faf\nmov     rdx, [rax]                                                     ; +0x12, 0x1403f2fb2\ncall    qword ptr [rdx+0B0h]                                           ; +0x15, 0x1403f2fb5\ncmp     byte ptr [rax+9Dh], 0                                          ; +0x1b, 0x1403f2fbb\njnz     short loc_1403F3007                                            ; +0x22, 0x1403f2fc2\ninc     dword ptr [rbx+3C44h]                                          ; +0x24, 0x1403f2fc4\nmov     ecx, [rbx+3C90h]                                               ; +0x2a, 0x1403f2fca\ntest    ecx, ecx                                                       ; +0x30, 0x1403f2fd0\njs      short loc_1403F2FFB                                            ; +0x32, 0x1403f2fd2\nmov     eax, [rbx+3C50h]                                               ; +0x34, 0x1403f2fd4\nsub     eax, ecx                                                       ; +0x3a, 0x1403f2fda\nxor     ecx, ecx                                                       ; +0x3c, 0x1403f2fdc\ncmp     eax, 1                                                         ; +0x3e, 0x1403f2fde\njle     short loc_1403F2FF1                                            ; +0x41, 0x1403f2fe1\ncmp     ecx, 7                                                         ; +0x43, 0x1403f2fe3\njge     short loc_1403F2FF1                                            ; +0x46, 0x1403f2fe6\nshr     eax, 1                                                         ; +0x48, 0x1403f2fe8\ninc     ecx                                                            ; +0x4a, 0x1403f2fea\ncmp     eax, 1                                                         ; +0x4c, 0x1403f2fec\nja      short loc_1403F2FE3                                            ; +0x4f, 0x1403f2fef\nmovsxd  rax, ecx                                                       ; +0x51, 0x1403f2ff1\ninc     dword ptr [rbx+rax*4+3C70h]                                    ; +0x54, 0x1403f2ff4\nmov     eax, [rbx+3C50h]                                               ; +0x5b, 0x1403f2ffb\nmov     [rbx+3C90h], eax                                               ; +0x61, 0x1403f3001\nmov     r8, [rbx+3A48h]                                                ; +0x67, 0x1403f3007\nxor     edx, edx                                                       ; +0x6e, 0x1403f300e\nmov     rcx, rbx                                                       ; +0x70, 0x1403f3010\nadd     rsp, 20h                                                       ; +0x73, 0x1403f3013\npop     rbx                                                            ; +0x77, 0x1403f3017\njmp     LevelEditorLayer__handleAction                                 ; +0x78, 0x1403f3018", "xrefs": ["EditorUI::redoLastAction @ 0x1401b3c52", "EditorUI::handleEditorAction @ 0x1401c233b", "LevelEditorLayer::handleAction @ 0x1403f2f3b", "<???> @ 0x140925430", "<???> @ 0x14092543c"], "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"}