//
// sub_1002C1E30 from 0x1002c1e30 to 0x1002c2383 (1363 bytes)
//
// 1 xrefs:
// > sub_1002C1D20 @ 0x1002c1de4
//
// 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:06 +0000
//
__int64 __fastcall sub_1002C1E30(float *a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
unsigned int v4; // r15d
__int64 v5; // rax
char v6; // [rsp+40h] [rbp-100h] BYREF
char v7[15]; // [rsp+41h] [rbp-FFh] BYREF
void *v8; // [rsp+50h] [rbp-F0h]
__int128 v9; // [rsp+58h] [rbp-E8h] BYREF
void *v10; // [rsp+68h] [rbp-D8h]
__int128 v11; // [rsp+70h] [rbp-D0h] BYREF
void *v12; // [rsp+80h] [rbp-C0h]
float v13[2]; // [rsp+88h] [rbp-B8h] BYREF
void *v14[3]; // [rsp+90h] [rbp-B0h] BYREF
std::string v15; // [rsp+A8h] [rbp-98h] BYREF
std::string v16; // [rsp+C0h] [rbp-80h] BYREF
std::string v17; // [rsp+D8h] [rbp-68h] BYREF
unsigned __int64 v18; // [rsp+F0h] [rbp-50h] BYREF
unsigned __int64 v19; // [rsp+F8h] [rbp-48h] BYREF
char v20; // [rsp+100h] [rbp-40h] BYREF
_BYTE v21[23]; // [rsp+101h] [rbp-3Fh] BYREF
unsigned __int64 v22[5]; // [rsp+118h] [rbp-28h] BYREF
result = SetupTriggerPopup::init((__int64)a1, a2, a3, 1, 430.0, 310.0, 0.0);
if ( (_BYTE)result )
{
v4 = result;
SetupTriggerPopup::preSetup(a1);
strcpy((char *)v14, "(Setup Follow Command");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v14);
if ( ((__int64)v14[0] & 1) != 0 )
operator delete(v14[2]);
v6 = 4;
strcpy(v7, "OK");
SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v6);
if ( (v6 & 1) != 0 )
operator delete(v8);
LOBYTE(v9) = 8;
strcpy((char *)&v9 + 1, "Help");
v12 = operator new(0xF0u);
*(_QWORD *)&v11 = 241;
*((_QWORD *)&v11 + 1) = 234;
strcpy(
(char *)v12,
"Make a group of objects follow a target object.\n"
"Target Group ID is the group of objects that follow the object using Follow Group ID. Make sure th"
"at this group only contains one object or has a group ID parent.");
SetupTriggerPopup::addHelpButton((__int64)a1, &v9, &v11, 1.0);
if ( (v11 & 1) != 0 )
operator delete(v12);
if ( (v9 & 1) != 0 )
operator delete(v10);
sub_10021AFF0(a1, (__int64)&v9);
v5 = cocos2d::CCDirector::sharedDirector(a1, &v9);
cocos2d::CCDirector::getWinSize(v13, v5);
sub_100278250((float *)&v19, v13[0] * 0.5, 0.5 * v13[1]);
v15.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20;
strcpy(v15.__r_.__value_.__s.__data_, "Move Time:");
sub_100278250((float *)v22, -110.0, 90.0);
sub_100278350((double *)&v20, &v19, v22);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
10,
&v15,
(__int64)&v20,
0,
1u,
0.80000001,
0.0,
10.0,
0xAu,
0,
0,
0,
0,
2u,
0);
if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v15.__r_.__value_.__l.__data_);
v16.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12;
strcpy(v16.__r_.__value_.__s.__data_, "X Mod:");
sub_100278250((float *)v22, -110.0, 30.0);
sub_100278350((double *)&v20, &v19, v22);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
72,
&v16,
(__int64)&v20,
0,
1u,
0.80000001,
-1.0,
1.0,
0xAu,
0,
0,
0,
0,
2u,
0);
if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v16.__r_.__value_.__l.__data_);
v17.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12;
strcpy(v17.__r_.__value_.__s.__data_, "Y Mod:");
sub_100278250((float *)v22, -110.0, -30.0);
sub_100278350((double *)&v20, &v19, v22);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
73,
&v17,
(__int64)&v20,
0,
1u,
0.80000001,
-1.0,
1.0,
0xAu,
0,
0,
0,
0,
2u,
0);
if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v17.__r_.__value_.__l.__data_);
v20 = 30;
strcpy(v21, "Target Group ID");
sub_100278250((float *)&v18, 100.0, 60.0);
sub_100278350((double *)v22, &v19, &v18);
IDNameInput::create((_DWORD)a1, (_DWORD)a1 + 544, 1, 51, (unsigned int)&v20, (unsigned int)v22, 6, 0, 0, 0);
if ( (v20 & 1) != 0 )
operator delete(*(void **)&v21[15]);
v20 = 30;
strcpy(v21, "Follow Group ID");
sub_100278250((float *)&v18, 100.0, -10.0);
sub_100278350((double *)v22, &v19, &v18);
IDNameInput::create((_DWORD)a1, (_DWORD)a1 + 544, 1, 71, (unsigned int)&v20, (unsigned int)v22, 6, 0, 0, 0);
if ( (v20 & 1) != 0 )
operator delete(*(void **)&v21[15]);
SetupTriggerPopup::postSetup(a1);
return v4;
}
return result;
}