//
// SetGroupIDLayer::onGroupIDOptions from 0x1403fd0d0 to 0x1403fd3c3 (755 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::init @ 0x1403f8e2b
// > ??> @ 0x1406d8570
//
// 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
//
// Hidden C++ exception states: #wind=6
void SetGroupIDLayer::onGroupIDOptions(SetGroupIDLayer *a1, cocos2d::CCObject *a2)
{
__int64 v2; // r8
int v3; // ebx
__int64 v4; // rax
FLAlertLayer *v5; // rsi
char *v6; // rax
cocos2d::CCDirector *v7; // rax
__int64 v8; // rbx
__int64 v9; // rax
char *v10; // rdi
float v11; // xmm0_4
__int64 v12; // rbx
struct cocos2d::CCPoint v13; // rax
__int128 v14; // [rsp+40h] [rbp-C0h] BYREF
__int64 v15; // [rsp+50h] [rbp-B0h]
__int64 v16; // [rsp+58h] [rbp-A8h]
char v17[16]; // [rsp+60h] [rbp-A0h] BYREF
__int64 v18; // [rsp+70h] [rbp-90h]
__int64 v19; // [rsp+78h] [rbp-88h]
__int128 v20; // [rsp+80h] [rbp-80h] BYREF
__int64 v21; // [rsp+90h] [rbp-70h]
__int64 v22; // [rsp+98h] [rbp-68h]
_BYTE *v23; // [rsp+A0h] [rbp-60h] BYREF
__int64 v24[2]; // [rsp+B0h] [rbp-50h] BYREF
__int64 v25; // [rsp+C0h] [rbp-40h]
__int64 v26; // [rsp+C8h] [rbp-38h]
_BYTE v27[32]; // [rsp+D0h] [rbp-30h] BYREF
_BYTE v28[48]; // [rsp+F0h] [rbp-10h] BYREF
void *v29; // [rsp+148h] [rbp+48h]
v3 = (_DWORD)a1 + 640;
if ( !a1 )
v3 = 0;
*(_OWORD *)v24 = 0;
v25 = 0;
v26 = 15;
LOBYTE(v24[0]) = 0;
v17[15] = 0;
v18 = 14;
v19 = 15;
strcpy(v17, "GroupID Offset");
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v29 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v29);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
v5 = ConfigureValuePopup::create(
v3,
*(_QWORD *)(*(_QWORD *)(v4 + 528) + 3504LL),
v2,
9999.0,
(__int64)v17,
(__int64)v24,
1);
v14 = 0;
v15 = 0;
v16 = 15;
v6 = (char *)sub_14003AA10(0x80u);
*(_QWORD *)&v14 = v6;
v15 = 116;
v16 = 127;
strcpy(
v6,
"This lets you set a Group ID offset that Next Free will take into account and start from. Useful for collaborations.");
v20 = 0;
v21 = 4;
v22 = 15;
strcpy((char *)&v20, "Help");
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7);
v23 = v27;
v8 = sub_14003BDB0((__int64)v27, (__int64)&v14);
v9 = sub_14003BDB0((__int64)v28, (__int64)&v20);
v10 = InfoAlertButton::create(v9, v8);
*((_DWORD *)v10 + 146) = 1063675494;
v11 = ((float (__fastcall *)(cocos2d::CCMenu *, char *))v5->m_buttonMenu->addChild_1)(v5->m_buttonMenu, v10);
v12 = *(_QWORD *)v10;
cocos2d::CCPoint::CCPoint(v11, (float)((float)(COERCE_FLOAT(&v14) * 0.5) + 130.0) - 17.0);
v13 = cocos2d::CCNode::convertToNodeSpace(v5->m_buttonMenu, (const struct cocos2d::CCPoint *)&v23);
(*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v12 + 184))(v10, v13);
sub_14003A830((__int64)&v20);
sub_14003A830((__int64)&v14);
v5->setTag(v5, 26);
v5->show(v5);
}