//
// EditorUI::onLockLayer from 0x100472d24 to 0x100472d6c (72 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x100162aec
// > EditorUI::init @ 0x100470634
//
// This function is hookable on this platform (idp: arm, 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 11:05:39 +0000
//
__int64 __fastcall EditorUI::onLockLayer(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
v2 = GameManager::sharedState();
result = GameManager::getGameVariable(v2, "0103");
if ( (_DWORD)result )
{
LevelEditorLayer::toggleLockActiveLayer(*(_QWORD *)(a1 + 1440));
return EditorUI::updateGroupIDLabel(a1);
}
return result;
}