//
// SetGroupIDLayer::onGroupIDOptions from 0x5087cc to 0x5088ae (226 bytes)
//
// 0 xrefs:
//
// 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 SetGroupIDLayer::onGroupIDOptions(SetGroupIDLayer *a1, cocos2d::CCObject *a2)
{
ConfigureValuePopupDelegate *v2; // r6
int m_nextFreeID; // s16
unsigned int v4; // r6
_BYTE v5[4]; // [sp+1Ch] [bp-10h] BYREF
_BYTE v6[4]; // [sp+20h] [bp-Ch] BYREF
v2 = &a1->ConfigureValuePopupDelegate;
m_nextFreeID = GameManager::sharedState()->m_levelEditorLayer->m_levelSettings->m_nextFreeID;
sub_776584((int)v5, "GroupID Offset");
sub_776584((int)v6, (char *)&unk_939830);
v4 = ConfigureValuePopup::create((int)v2, COERCE_INT((float)m_nextFreeID), 0, 1176255488, (int)v5, (int)v6, 1);
sub_774008(v6);
sub_774008(v5);
sub_776584((int)v5, "Help");
sub_776584(
(int)v6,
"This lets you set a Group ID offset that Next Free will take into account and start from. Useful for collaborations.");
ConfigureValuePopup::addInfoAlertButton(v4);
sub_774008(v6);
sub_774008(v5);
(*(void (__fastcall **)(unsigned int, int))(*(_DWORD *)v4 + 36))(v4, 26);
(*(void (__fastcall **)(unsigned int))(*(_DWORD *)v4 + 644))(v4);
}