//
// LevelEditorLayer::isLayerLocked from 0x3671a4 to 0x3671ee (74 bytes)
//
// 1 xrefs:
// > EditorUI::updateGroupIDLabel @ 0x380b36
//
// 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)
{
_BOOL4 m_layerLockingEnabled; // r0
_DWORD v5[2]; // [sp+4h] [bp-Ch] BYREF
v5[0] = a2;
if ( (unsigned int)a2 > 0x270F )
{
LOBYTE(m_layerLockingEnabled) = 0;
}
else
{
m_layerLockingEnabled = a1->m_layerLockingEnabled;
if ( m_layerLockingEnabled )
{
sub_365110(v5, (int)a1->m_lockedLayers.m_start.m_bitptr, a2);
LOBYTE(m_layerLockingEnabled) = std::_Bit_reference::operator bool((int)v5);
}
}
return m_layerLockingEnabled;
}