//
// EditorUI::onLockLayer from 0x10000abf0 to 0x10000ac32 (66 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060be63
// > EditorUI::init @ 0x100007591
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:18:49 +0000
//
__int64 __fastcall EditorUI::onLockLayer(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
__int64 result; // rax
v3 = GameManager::sharedState(a1, a2, a3);
result = GameManager::getGameVariable(v3, "0103");
if ( (_BYTE)result )
{
LevelEditorLayer::toggleLockActiveLayer(*(_QWORD *)(a1 + 1440));
return EditorUI::updateGroupIDLabel(a1);
}
return result;
}