//
// LevelEditorLayer::getLockedLayers from 0x470400 to 0x4704b6 (182 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateLevelSaveInfo @ 0x4709b8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:04 +0000
//
LevelEditorLayer *__fastcall LevelEditorLayer::getLockedLayers(LevelEditorLayer *this, int a2)
{
_DWORD *v2; // r8
unsigned int v4; // r4
int v5; // r3
const char *v6; // r0
const char *v7; // r4
size_t v8; // r0
unsigned int v10[3]; // [sp+Ch] [bp-204h] BYREF
char v11; // [sp+18h] [bp-1F8h] BYREF
v2 = (_DWORD *)(a2 + 12000);
v4 = 0;
v10[0] = 0;
v10[1] = 500;
v10[2] = (unsigned int)&v11;
v5 = 1;
do
{
if ( ((1 << (v4 & 0x1F)) & *(_DWORD *)(*v2 + 4 * (v4 >> 5))) != 0 )
{
if ( !v5 )
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, v4);
v5 = 0;
}
++v4;
}
while ( v4 != 10000 );
v6 = (const char *)fmt::BasicWriter::c_str((int *)v10);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v7 = v6;
*((_DWORD *)this + 2) = 0;
v8 = strlen(v6);
std::string::__init((int *)this, v7, v8);
fmt::internal::Array::free((int)v10);
return this;
}