//
// SetupBGSpeedTrigger::init from 0x69b740 to 0x69b9e8 (680 bytes)
//
// 1 xrefs:
// > SetupBGSpeedTrigger::create @ 0x69ba9e
//
// 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:18 +0000
//
GameManager *__fastcall SetupBGSpeedTrigger::init(
SetupBGSpeedTrigger *this,
EffectGameObject *a2,
cocos2d::CCArray *a3,
int a4)
{
char *v4; // r9
cocos2d::CCDirector *v7; // r0
const char *v8; // r1
char *v9; // r1
size_t v10; // r0
GameManager *v12; // [sp+30h] [bp-94h]
float v13[2]; // [sp+3Ch] [bp-88h] BYREF
_BYTE v14[8]; // [sp+44h] [bp-80h] BYREF
_BYTE v15[8]; // [sp+4Ch] [bp-78h] BYREF
_BYTE v16[8]; // [sp+54h] [bp-70h] BYREF
int v17; // [sp+5Ch] [bp-68h] BYREF
size_t v18; // [sp+60h] [bp-64h]
const void *v19; // [sp+64h] [bp-60h]
int v20; // [sp+68h] [bp-5Ch] BYREF
size_t v21; // [sp+6Ch] [bp-58h]
const void *v22; // [sp+70h] [bp-54h]
int v23[3]; // [sp+74h] [bp-50h] BYREF
int v24[2]; // [sp+80h] [bp-44h] BYREF
char *v25; // [sp+88h] [bp-3Ch]
int v26[3]; // [sp+8Ch] [bp-38h] BYREF
int v27[3]; // [sp+98h] [bp-2Ch] BYREF
int v28[3]; // [sp+A4h] [bp-20h] BYREF
int v29[3]; // [sp+B0h] [bp-14h] BYREF
v12 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v12 )
{
v7 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this);
cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13);
if ( a4 == 3612 )
v8 = "Change MG Speed";
else
v8 = "Change BG Speed";
v17 = 0;
v18 = 0;
v19 = nullptr;
std::string::__init(&v17, v8, 0xFu);
v20 = 0;
v21 = 0;
v22 = nullptr;
if ( (v17 & 1) != 0 )
{
std::string::__init(&v20, v19, v18);
}
else
{
v20 = v17;
v21 = v18;
v22 = v19;
}
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v20);
std::string::~string((int)&v20);
memset(v23, 0, sizeof(v23));
std::string::__init(v23, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)v23);
std::string::~string((int)v23);
v24[0] = 0;
v24[1] = 0;
v25 = nullptr;
if ( a4 == 3612 )
v9 = "Lets you change the speed of the middle ground during gameplay movement. Default X: 0.3, Y: 0.5";
else
v9 = "Lets you change the speed of the background during gameplay movement. Default X: 0.1, Y: 0.1";
std::string::assign(v24, v9);
memset(v26, 0, sizeof(v26));
std::string::__init(v26, "Help", 4u);
if ( (v24[0] & 1) == 0 )
v4 = (char *)v24 + 1;
v27[0] = 0;
if ( (v24[0] & 1) != 0 )
v4 = v25;
v27[1] = 0;
v27[2] = 0;
v10 = strlen(v4);
std::string::__init(v27, v4, v10);
SetupTriggerPopup::addHelpButton((int)this, (int)v26, (int)v27, 1065353216);
std::string::~string((int)v27);
std::string::~string((int)v26);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v13[0] * 0.5, v13[1] * 0.5);
memset(v28, 0, sizeof(v28));
std::string::__init(v28, "Mod X:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, 60.0);
cocos2d::CCPoint::operator+(v16, v14, v15);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
143,
(unsigned __int8 *)v28,
(int)v16,
1061997773,
0,
1,
10,
0,
0,
1065353216,
0,
0,
0,
2,
0);
std::string::~string((int)v28);
memset(v29, 0, sizeof(v29));
std::string::__init(v29, "Mod Y:", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, -10.0);
cocos2d::CCPoint::operator+(v16, v14, v15);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
144,
(unsigned __int8 *)v29,
(int)v16,
1061997773,
0,
1,
10,
0,
0,
1065353216,
0,
0,
0,
2,
0);
std::string::~string((int)v29);
SetupTriggerPopup::createMultiTriggerItemsDefault(this);
SetupTriggerPopup::postSetup(this);
std::string::~string((int)v24);
std::string::~string((int)&v17);
}
return v12;
}