//
// LevelEditorLayer::unlockAllLayers from 0x1003fee78 to 0x1003feeb4 (60 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x1001632c4
// > EditorCommandsPopup::onCommand @ 0x1004c5b14
//
// 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:04:37 +0000
//
__int64 __fastcall LevelEditorLayer::unlockAllLayers(__int64 result)
{
unsigned __int64 v1; // x8
__int64 v2; // x9
v1 = 0;
v2 = *(_QWORD *)(result + 14528);
do
{
*(_QWORD *)(v2 + ((v1 >> 3) & 0x1FFFFFFFFFFFFFF8LL)) &= ~(1LL << v1);
++v1;
}
while ( v1 != 10000 );
*(_DWORD *)(result + 14552) = 0;
return result;
}