//
// sub_1003566CC from 0x1003566cc to 0x10035674c (128 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::getNextFreeGroupID @ 0x10035f86c
//
// 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
//
__int64 __fastcall sub_1003566CC(int a1, int a2, _QWORD *a3)
{
__int64 v3; // x21
int v6; // w8
__int64 v7; // x22
int v9; // [xsp+Ch] [xbp-24h] BYREF
if ( a1 <= 1 )
v3 = 1;
else
v3 = (unsigned int)a1;
v9 = v3;
if ( (int)v3 <= a2 && sub_100018814(a3, &v9) )
{
do
{
v6 = v9;
v7 = (unsigned int)++v9;
if ( v6 >= a2 )
break;
v3 = v7;
}
while ( sub_100018814(a3, &v9) );
}
return v3;
}