//
// LevelEditorLayer::unlockAllLayers from 0x1000bc440 to 0x1000bc490 (80 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060c864
// > EditorCommandsPopup::onCommand @ 0x1008dede7
//
// 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:20:32 +0000
//
__int64 __fastcall LevelEditorLayer::unlockAllLayers(__int64 a1)
{
__int64 result; // rax
unsigned __int64 i; // rdx
result = *(_QWORD *)(a1 + 14528);
for ( i = 0; i != 10000; i += 2LL )
*(_QWORD *)(result + 8 * (i >> 6)) &= ~(1LL << (i & 0x3E)) & ~(2LL << (i & 0x3E));
*(_DWORD *)(a1 + 14552) = 0;
return result;
}