//
// SetGroupIDLayer::onGroupIDOptions from 0x10003ce84 to 0x10003cf94 (272 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::init @ 0x10003b64c
//
// 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
//
void __fastcall SetGroupIDLayer::onGroupIDOptions(SetGroupIDLayer *a1, cocos2d::CCObject *a2)
{
int m_nextFreeID; // w20
__int64 v4; // x19
void *v5[2]; // [xsp+0h] [xbp-70h] BYREF
char v6; // [xsp+17h] [xbp-59h]
void *v7[2]; // [xsp+18h] [xbp-58h] BYREF
char v8; // [xsp+2Fh] [xbp-41h]
void *__p[2]; // [xsp+30h] [xbp-40h] BYREF
char v10; // [xsp+47h] [xbp-29h]
void *v11[2]; // [xsp+48h] [xbp-28h] BYREF
char v12; // [xsp+5Fh] [xbp-11h]
m_nextFreeID = GameManager::sharedState()->m_levelEditorLayer->m_levelSettings->m_nextFreeID;
sub_100009900(v11, "GroupID Offset");
sub_100009900(__p, "");
v4 = ConfigureValuePopup::create(&a1->ConfigureValuePopupDelegate, v11, __p, 1, (float)m_nextFreeID, 0.0, 9999.0);
if ( v10 < 0 )
operator delete(__p[0]);
if ( v12 < 0 )
operator delete(v11[0]);
sub_100009900(v7, "Help");
sub_100009900(
v5,
"This lets you set a Group ID offset that Next Free will take into account and start from. Useful for collaborations.");
ConfigureValuePopup::addInfoAlertButton(v4, v7, v5);
if ( v6 < 0 )
operator delete(v5[0]);
if ( v8 < 0 )
operator delete(v7[0]);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 72LL))(v4, 26);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1288LL))(v4);
}