//
// SetGroupIDLayer::onGroupIDOptions from 0x1002ff510 to 0x1002ff684 (372 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::init @ 0x1002fd690
//
// 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:32 +0000
//
__int64 __fastcall SetGroupIDLayer::onGroupIDOptions(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
float v4; // xmm0_4
__int64 v5; // rbx
_WORD v7[8]; // [rsp+0h] [rbp-70h] BYREF
void *__p; // [rsp+10h] [rbp-60h]
char v9; // [rsp+18h] [rbp-58h] BYREF
char v10[15]; // [rsp+19h] [rbp-57h] BYREF
void *v11; // [rsp+28h] [rbp-48h]
_QWORD v12[2]; // [rsp+30h] [rbp-40h] BYREF
void *v13; // [rsp+40h] [rbp-30h]
char v14; // [rsp+48h] [rbp-28h] BYREF
char v15[15]; // [rsp+49h] [rbp-27h] BYREF
void *v16; // [rsp+58h] [rbp-18h]
GameManager::sharedState(a1, a2, a3);
v4 = (float)*(int *)(*(_QWORD *)(*(_QWORD *)(v3 + 552) + 3272LL) + 436LL);
v14 = 28;
strcpy(v15, "GroupID Offset");
v7[0] = 0;
v5 = ConfigureValuePopup::create(a1 + 664, &v14, v7, 1, v4, 0.0, 9999.0);
if ( (v7[0] & 1) != 0 )
operator delete(__p);
if ( (v14 & 1) != 0 )
operator delete(v16);
v9 = 8;
strcpy(v10, "Help");
v13 = operator new(0x78u);
v12[0] = 121;
v12[1] = 116;
strcpy(
(char *)v13,
"This lets you set a Group ID offset that Next Free will take into account and start from. Useful for collaborations.");
sub_100701E20(v5, &v9, v12);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
if ( (v9 & 1) != 0 )
operator delete(v11);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 72LL))(v5, 26);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}