//
// SetupShaderEffectPopup::setupSplitScreen from 0x1002cf3c0 to 0x1002cf7ce (1038 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x1002c6262
//
// 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
//
void __fastcall SetupShaderEffectPopup::setupSplitScreen(SetupShaderEffectPopup *a1)
{
char v1; // [rsp+8h] [rbp-F8h] BYREF
char v2[15]; // [rsp+9h] [rbp-F7h] BYREF
void *v3; // [rsp+18h] [rbp-E8h]
__int128 v4; // [rsp+20h] [rbp-E0h] BYREF
void *v5; // [rsp+30h] [rbp-D0h]
__int128 v6; // [rsp+38h] [rbp-C8h] BYREF
void *v7; // [rsp+48h] [rbp-B8h]
__int128 v8; // [rsp+50h] [rbp-B0h] BYREF
void *v9; // [rsp+60h] [rbp-A0h]
__int128 v10; // [rsp+68h] [rbp-98h] BYREF
void *v11; // [rsp+78h] [rbp-88h]
__int128 v12; // [rsp+80h] [rbp-80h] BYREF
void *v13; // [rsp+90h] [rbp-70h]
__int128 v14; // [rsp+98h] [rbp-68h] BYREF
void *v15; // [rsp+A8h] [rbp-58h]
float v16[2]; // [rsp+B0h] [rbp-50h] BYREF
void *v17[3]; // [rsp+B8h] [rbp-48h] BYREF
unsigned __int64 v18; // [rsp+D0h] [rbp-30h] BYREF
double v19; // [rsp+D8h] [rbp-28h] BYREF
unsigned __int64 v20[4]; // [rsp+E0h] [rbp-20h] BYREF
strcpy((char *)v17, "$Setup Split Screen");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v17);
if ( ((__int64)v17[0] & 1) != 0 )
operator delete(v17[2]);
v1 = 8;
strcpy(v2, "Help");
v5 = operator new(0xD8u);
*(_QWORD *)&v4 = 217;
*((_QWORD *)&v4 + 1) = 212;
strcpy(
(char *)v5,
"Splits the screen in several sections.\n"
"Use X and Y set which direction to split in.\n"
"TargetX and TargetY set how many sections to add.\n"
"FadeTime is time until final state is reached.");
SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v1, &v4, (__m128)0x3F800000u);
if ( (v4 & 1) != 0 )
operator delete(v5);
if ( (v1 & 1) != 0 )
operator delete(v3);
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v16);
sub_10028CBE0((float *)&v18, v16[0] * 0.5, (float)(0.5 * v16[1]) + 85.0);
LOBYTE(v6) = 16;
strcpy((char *)&v6 + 1, "TargetX:");
sub_10028CBE0((float *)v20, -100.0, 0.0);
sub_10028CCE0(&v19, &v18, v20);
SetupTriggerPopup::createValueControl((int)a1, 180, &v6, COERCE_DOUBLE(1060320051), -4.0, 3.0);
if ( (v6 & 1) != 0 )
operator delete(v7);
LOBYTE(v8) = 16;
strcpy((char *)&v8 + 1, "TargetY:");
sub_10028CBE0((float *)v20, 100.0, 0.0);
sub_10028CCE0(&v19, &v18, v20);
SetupTriggerPopup::createValueControl((int)a1, 189, &v8, COERCE_DOUBLE(1060320051), -4.0, 3.0);
if ( (v8 & 1) != 0 )
operator delete(v9);
LOBYTE(v10) = 18;
strcpy((char *)&v10 + 1, "FadeTime:");
sub_10028CBE0((float *)v20, -100.0, -50.0);
sub_10028CCE0(&v19, &v18, v20);
SetupTriggerPopup::createValueControl((int)a1, 10, &v10, COERCE_DOUBLE(1060320051), 0.0, 0.0);
if ( (v10 & 1) != 0 )
operator delete(v11);
strcpy((char *)&v12, "\nUse X");
sub_10028CBE0((float *)v20, 45.0, -55.0);
sub_10028CCE0(&v19, &v18, v20);
SetupTriggerPopup::createToggleValueControl((int)a1, 188, &v12, 1.0, (__int64)&v19, 0, 0, 0);
if ( (v12 & 1) != 0 )
operator delete(v13);
strcpy((char *)&v14, "\nUse Y");
sub_10028CBE0((float *)v20, 130.0, -55.0);
sub_10028CCE0(&v19, &v18, v20);
SetupTriggerPopup::createToggleValueControl((int)a1, 190, &v14, 1.0, (__int64)&v19, 0, 0, 0);
if ( (v14 & 1) != 0 )
operator delete(v15);
sub_10028CBE0((float *)v20, 0.0, -100.0);
sub_10028CCE0(&v19, &v18, v20);
SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)1065353216LL, -100.0, (int)&v19, 0);
}