{"type": "func", "start": 4299631908, "end": 4299631980, "name": "EditorUI::onLockLayer", "pseudocode": "// \n// EditorUI::onLockLayer from 0x100472d24 to 0x100472d6c (72 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x100162aec\n// > EditorUI::init @ 0x100470634\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:05:39 +0000\n// \n\n__int64 __fastcall EditorUI::onLockLayer(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 result; // x0\n\n  v2 = GameManager::sharedState();\n  result = GameManager::getGameVariable(v2, \"0103\");\n  if ( (_DWORD)result )\n  {\n    LevelEditorLayer::toggleLockActiveLayer(*(_QWORD *)(a1 + 1440));\n    return EditorUI::updateGroupIDLabel(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onLockLayer from 0x100472d24 to 0x100472d6c (72 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x100162aec\n; > EditorUI::init @ 0x100470634\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:05:39 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100472d24\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100472d28\nADD             X29, SP, #0x10                                         ; +0x8, 0x100472d2c\nMOV             X19, X0                                                ; +0xc, 0x100472d30\nBL              GameManager__sharedState                               ; +0x10, 0x100472d34\nADRL            X1, a0103; \"0103\"                                      ; +0x14, 0x100472d38\nBL              GameManager__getGameVariable                           ; +0x1c, 0x100472d40\nCBZ             W0, loc_100472D60                                      ; +0x20, 0x100472d44\nLDR             X0, [X19,#0x5A0]                                       ; +0x24, 0x100472d48\nBL              LevelEditorLayer__toggleLockActiveLayer                ; +0x28, 0x100472d4c\nMOV             X0, X19                                                ; +0x2c, 0x100472d50\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x30, 0x100472d54\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x34, 0x100472d58\nB               EditorUI__updateGroupIDLabel                           ; +0x38, 0x100472d5c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x100472d60\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x40, 0x100472d64\nRET                                                                    ; +0x44, 0x100472d68", "xrefs": ["EditorUI::handleEditorAction @ 0x100162aec", "EditorUI::init @ 0x100470634"], "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"}