//
// SetGroupIDLayer::onGroupIDOptions from 0x140593a20 to 0x140593d12 (754 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::init @ 0x14058ee96
// > ??> @ 0x14092cef4
//
// 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 11:34:33 +0000
//
// Hidden C++ exception states: #wind=6
__int64 __fastcall SetGroupIDLayer::onGroupIDOptions(__int64 a1, __int64 a2, __int64 a3)
{
int v3; // ebx
__int64 v4; // rax
_QWORD *v5; // r14
char *v6; // rax
__int64 v7; // rax
__int64 v8; // rbx
__int64 v9; // rax
char *v10; // rsi
__int64 v11; // rdi
__int64 v12; // rbx
__int64 v13; // rax
__int64 v14; // rax
__int128 v16; // [rsp+40h] [rbp-C0h] BYREF
__int64 v17; // [rsp+50h] [rbp-B0h]
__int64 v18; // [rsp+58h] [rbp-A8h]
char v19[16]; // [rsp+60h] [rbp-A0h] BYREF
__int64 v20; // [rsp+70h] [rbp-90h]
__int64 v21; // [rsp+78h] [rbp-88h]
__int128 v22; // [rsp+80h] [rbp-80h] BYREF
__int64 v23; // [rsp+90h] [rbp-70h]
__int64 v24; // [rsp+98h] [rbp-68h]
_BYTE *v25; // [rsp+A0h] [rbp-60h] BYREF
_BYTE v26[8]; // [rsp+A8h] [rbp-58h] BYREF
__int64 v27[2]; // [rsp+B0h] [rbp-50h] BYREF
__int64 v28; // [rsp+C0h] [rbp-40h]
__int64 v29; // [rsp+C8h] [rbp-38h]
_BYTE v30[32]; // [rsp+D0h] [rbp-30h] BYREF
_BYTE v31[64]; // [rsp+F0h] [rbp-10h] BYREF
__int64 *v32; // [rsp+140h] [rbp+40h] BYREF
char *v33; // [rsp+150h] [rbp+50h]
__int128 *v34; // [rsp+158h] [rbp+58h]
v32 = v27;
v33 = v19;
v3 = a1 + 664;
if ( !a1 )
v3 = 0;
*(_OWORD *)v27 = 0;
v28 = 0;
v29 = 15;
LOBYTE(v27[0]) = 0;
v19[15] = 0;
v20 = 14;
v21 = 15;
strcpy(v19, "GroupID Offset");
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v34 = (__int128 *)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v34);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
v5 = ConfigureValuePopup::create(
v3,
*(_QWORD *)(*(_QWORD *)(v4 + 568) + 3528LL),
a3,
9999.0,
(__int64)v19,
(__int64)v27,
1);
v32 = (__int64 *)&v16;
v16 = 0;
v17 = 0;
v18 = 0;
v6 = (char *)sub_14003D460(0x80u);
*(_QWORD *)&v16 = v6;
v17 = 116;
v18 = 127;
strcpy(
v6,
"This lets you set a Group ID offset that Next Free will take into account and start from. Useful for collaborations.");
v33 = (char *)&v16;
v22 = 0;
v23 = 4;
v24 = 15;
strcpy((char *)&v22, "Help");
v34 = &v22;
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7, &v32);
v25 = v30;
v8 = sub_14003F4F0((__int64)v30, (__int64)&v16);
v9 = sub_14003F4F0((__int64)v31, (__int64)&v22);
v10 = InfoAlertButton::create(v9, v8);
*((_DWORD *)v10 + 146) = 1063675494;
(*(void (__fastcall **)(_QWORD, char *))(*(_QWORD *)v5[69] + 464LL))(v5[69], v10);
v11 = *(_QWORD *)v10;
v12 = v5[69];
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v26,
(float)((float)(*(float *)&v32 * 0.5) + 130.0) - 17.0,
(float)((float)(*((float *)&v32 + 1) * 0.5) + 100.0) - 17.0);
cocos2d::CCNode::convertToNodeSpace(v12, &v25, v13);
(*(void (__fastcall **)(char *, __int64))(v11 + 184))(v10, v14);
sub_14003D310((__int64)&v22);
sub_14003D310((__int64)&v16);
(*(void (__fastcall **)(_QWORD *, __int64))(*v5 + 64LL))(v5, 26);
return (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 1064LL))(v5);
}