//
// LevelEditorLayer::resetToggledGroupsAndObjects from 0x1000c3cb0 to 0x1000c3d67 (183 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::onClose @ 0x1002ff231
//
// 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:35 +0000
//
unsigned __int64 __fastcall LevelEditorLayer::resetToggledGroupsAndObjects(_QWORD *a1)
{
__int64 v1; // rax
unsigned int *v2; // rax
_QWORD *v3; // r14
unsigned __int64 v4; // r15
unsigned __int64 result; // rax
unsigned __int64 v6; // rsi
v1 = a1[410];
if ( v1 )
{
v2 = *(unsigned int **)(v1 + 56);
if ( *v2 )
{
v3 = *((_QWORD **)v2 + 2);
v4 = (unsigned __int64)&v3[*v2 - 1];
do
{
if ( !*v3 )
break;
GameObject::resetGroupDisabled(*v3++);
}
while ( (unsigned __int64)v3 <= v4 );
}
}
for ( result = 0; result != 10000; result += 2LL )
{
*(_BYTE *)(a1[1830] + result) = 0;
v6 = result >> 6;
*(_QWORD *)(a1[1813] + 8 * v6) &= __ROL8__(-2, result & 0x3E);
*(_BYTE *)(a1[1830] + result + 1) = 0;
*(_QWORD *)(a1[1813] + 8 * v6) &= __ROL8__(-2, (unsigned __int8)result + 1);
}
return result;
}