//
// SetGroupIDLayer::onGroupIDOptions from 0xabbef8 to 0xabc0c8 (464 bytes)
//
// 3 xrefs:
// > ??> @ 0xab880
// > SetGroupIDLayer::init @ 0xabf524
// > ??> @ 0x1544da0
//
// This function is hookable on this platform (idp: arm, 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 13:01:02 +0000
//
__int64 __fastcall SetGroupIDLayer::onGroupIDOptions(SetGroupIDLayer *this, cocos2d::CCObject *a2)
{
char *v2; // x19
int v3; // w3
float v4; // s8
__int64 v5; // x19
__int64 v7; // [xsp+48h] [xbp+48h] BYREF
__int64 v8; // [xsp+50h] [xbp+50h]
void *v9; // [xsp+58h] [xbp+58h]
__int64 v10; // [xsp+60h] [xbp+60h] BYREF
__int64 v11; // [xsp+68h] [xbp+68h]
void *v12; // [xsp+70h] [xbp+70h]
v2 = (char *)this + 664;
v3 = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(_stack_chk_guard) + 552) + 3272LL) + 436LL);
v7 = 0;
v8 = 0;
v4 = (float)v3;
v9 = nullptr;
std::string::__init(&v7, "GroupID Offset", 0xEu);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, &byte_11B8890, 0);
v5 = ConfigureValuePopup::create((__int64)v2, (char *)&v7, (char *)&v10, 1, v4, 0.0, 9999.0);
if ( (v10 & 1) != 0 )
operator delete(v12);
if ( (v7 & 1) != 0 )
operator delete(v9);
v7 = 0;
v8 = 0;
v9 = nullptr;
std::string::__init(&v7, "Help", 4u);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(
&v10,
"This lets you set a Group ID offset that Next Free will take into account and start from. Useful for collaborations.",
0x74u);
ConfigureValuePopup::addInfoAlertButton(v5, (char *)&v7, (char *)&v10);
if ( (v10 & 1) != 0 )
operator delete(v12);
if ( (v7 & 1) != 0 )
operator delete(v9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 72LL))(v5, 26);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
return _stack_chk_guard;
}