{"type": "func", "start": 4295149104, "end": 4295149170, "name": "EditorUI::onLockLayer", "pseudocode": "// \n// EditorUI::onLockLayer from 0x10002c630 to 0x10002c672 (66 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x10000b2a3\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::onLockLayer(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // rax\n\n  v2 = GameManager::sharedState();\n  if ( GameManager::getGameVariable(v2, \"0103\") )\n  {\n    LevelEditorLayer::toggleLockActiveLayer(a1->m_editorLayer);\n    EditorUI::updateGroupIDLabel(a1);\n  }\n}", "assembly": "; \n; EditorUI::onLockLayer from 0x10002c630 to 0x10002c672 (66 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x10000b2a3\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10002c630\nmov     rbp, rsp                                                       ; +0x1, 0x10002c631\npush    rbx                                                            ; +0x4, 0x10002c634\npush    rax                                                            ; +0x5, 0x10002c635\nmov     rbx, rdi                                                       ; +0x6, 0x10002c636\ncall    GameManager__sharedState                                       ; +0x9, 0x10002c639\nlea     rsi, a0103; \"0103\"                                             ; +0xe, 0x10002c63e\nmov     rdi, rax                                                       ; +0x15, 0x10002c645\ncall    GameManager__getGameVariable                                   ; +0x18, 0x10002c648\ntest    al, al                                                         ; +0x1d, 0x10002c64d\njz      short loc_10002C66B                                            ; +0x1f, 0x10002c64f\nmov     rdi, [rbx+4E8h]                                                ; +0x21, 0x10002c651\ncall    LevelEditorLayer__toggleLockActiveLayer                        ; +0x28, 0x10002c658\nmov     rdi, rbx                                                       ; +0x2d, 0x10002c65d\nadd     rsp, 8                                                         ; +0x30, 0x10002c660\npop     rbx                                                            ; +0x34, 0x10002c664\npop     rbp                                                            ; +0x35, 0x10002c665\njmp     EditorUI__updateGroupIDLabel                                   ; +0x36, 0x10002c666\nadd     rsp, 8                                                         ; +0x3b, 0x10002c66b\npop     rbx                                                            ; +0x3f, 0x10002c66f\npop     rbp                                                            ; +0x40, 0x10002c670\nretn                                                                   ; +0x41, 0x10002c671", "xrefs": ["EditorUI::init @ 0x10000b2a3"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}