//
// SetGroupIDLayer::onNextGroupID1 from 0x1003023c0 to 0x100302447 (135 bytes)
//
// 0 xrefs:
//
// 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:28:33 +0000
//
void __fastcall SetGroupIDLayer::onNextGroupID1(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rax
__int64 v5; // rdi
_QWORD *v6; // rdi
_QWORD *v7; // r14
void *v8; // rdi
void *v9[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p[2]; // [rsp+10h] [rbp-30h]
int v11; // [rsp+20h] [rbp-20h]
GameManager::sharedState(a1, a2, a3);
v5 = *(_QWORD *)(v4 + 552);
*(_OWORD *)__p = 0;
*(_OWORD *)v9 = 0;
v11 = 1065353216;
*(_DWORD *)(a1 + 764) = LevelEditorLayer::getNextFreeGroupID(v5, (__int64)v9);
v6 = __p[0];
if ( __p[0] )
{
do
{
v7 = (_QWORD *)*v6;
operator delete(v6);
v6 = v7;
}
while ( v7 );
}
v8 = v9[0];
v9[0] = nullptr;
if ( v8 )
operator delete(v8);
sub_1003005A0(a1);
}