//
// SetupShaderEffectPopup::setupSplitScreen from 0x68d6c8 to 0x68d950 (648 bytes)
//
// 1 xrefs:
// > SetupShaderEffectPopup::init @ 0x68deb4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:09 +0000
//
int __fastcall SetupShaderEffectPopup::setupSplitScreen(cocos2d::CCDictionary **this)
{
cocos2d::CCDirector *v2; // r0
float v4[2]; // [sp+14h] [bp-40h] BYREF
_BYTE v5[8]; // [sp+1Ch] [bp-38h] BYREF
_BYTE v6[8]; // [sp+24h] [bp-30h] BYREF
_BYTE v7[8]; // [sp+2Ch] [bp-28h] BYREF
int v8[3]; // [sp+34h] [bp-20h] BYREF
int v9; // [sp+40h] [bp-14h] BYREF
int v10; // [sp+44h] [bp-10h]
int v11; // [sp+48h] [bp-Ch]
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(&v9, "Setup Split Screen", 0x12u);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v9);
std::string::~string((int)&v9);
memset(v8, 0, sizeof(v8));
std::string::__init(v8, "Help", 4u);
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(
&v9,
"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.",
0xD4u);
SetupTriggerPopup::addHelpButton((int)this, (int)v8, (int)&v9, 1065353216);
std::string::~string((int)&v9);
v2 = (cocos2d::CCDirector *)std::string::~string((int)v8);
cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v5, v4[0] * 0.5, (float)(v4[1] * 0.5) + 85.0);
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(&v9, "TargetX:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, -100.0, 0.0);
cocos2d::CCPoint::operator+(v7, v5, v6);
SetupTriggerPopup::createValueControl(
this,
180,
(int)&v9,
(const cocos2d::CCPoint *)v7,
1060320051,
-1065353216,
1077936128);
std::string::~string((int)&v9);
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(&v9, "TargetY:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, 100.0, 0.0);
cocos2d::CCPoint::operator+(v7, v5, v6);
SetupTriggerPopup::createValueControl(
this,
189,
(int)&v9,
(const cocos2d::CCPoint *)v7,
1060320051,
-1065353216,
1077936128);
std::string::~string((int)&v9);
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(&v9, "FadeTime:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, -100.0, -50.0);
cocos2d::CCPoint::operator+(v7, v5, v6);
SetupTriggerPopup::createValueControl(this, 10, (int)&v9, (const cocos2d::CCPoint *)v7, 1060320051, 0, 0);
std::string::~string((int)&v9);
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(&v9, "Use X", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, 45.0, -55.0);
cocos2d::CCPoint::operator+(v7, v5, v6);
SetupTriggerPopup::createToggleValueControl((int)this, 188, (int)&v9, (const cocos2d::CCPoint *)v7, 0, 0, 0, 1.0);
std::string::~string((int)&v9);
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(&v9, "Use Y", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, 130.0, -55.0);
cocos2d::CCPoint::operator+(v7, v5, v6);
SetupTriggerPopup::createToggleValueControl((int)this, 190, (int)&v9, (const cocos2d::CCPoint *)v7, 0, 0, 0, 1.0);
std::string::~string((int)&v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, 0.0, -100.0);
cocos2d::CCPoint::operator+(v7, v5, v6);
return SetupTriggerPopup::createEasingControls((int)this, (int)v7, 1.0, 0, 0);
}