//
// LevelEditorLayer::isLayerLocked from 0x65ee14 to 0x65ee5c (72 bytes)
//
// 2 xrefs:
// > EditorUI::updateGroupIDLabel @ 0x68e6d8
// > ??> @ 0x7ea80
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool LevelEditorLayer::isLayerLocked(LevelEditorLayer *a1, int a2)
{
bool m_layerLockingEnabled; // w2
m_layerLockingEnabled = 0;
if ( (unsigned int)a2 <= 0x270F )
{
m_layerLockingEnabled = a1->m_layerLockingEnabled;
if ( m_layerLockingEnabled )
return ((1LL << (a2 & 0x3F)) & a1->m_lockedLayers.m_start.m_bitptr[(unsigned __int64)a2 >> 6]) != 0;
}
return m_layerLockingEnabled;
}