//
// SetupStopTriggerPopup::init from 0x6b7078 to 0x6b7472 (1018 bytes)
//
// 1 xrefs:
// > SetupStopTriggerPopup::create @ 0x6b74ea
//
// 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:43 +0000
//
GameManager *__fastcall SetupStopTriggerPopup::init(
SetupStopTriggerPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
int v4; // r3
cocos2d::CCDirector *MultiTriggerItemsDefault; // r0
bool v6; // fzf
int v7; // r8
int v9; // [sp+24h] [bp-D0h]
GameManager *v10; // [sp+28h] [bp-CCh]
float v11; // [sp+34h] [bp-C0h] BYREF
float v12; // [sp+38h] [bp-BCh]
float v13[2]; // [sp+3Ch] [bp-B8h] BYREF
_BYTE v14[8]; // [sp+44h] [bp-B0h] BYREF
_BYTE v15[8]; // [sp+4Ch] [bp-A8h] BYREF
_BYTE v16[8]; // [sp+54h] [bp-A0h] BYREF
int v17[3]; // [sp+5Ch] [bp-98h] BYREF
_DWORD v18[3]; // [sp+68h] [bp-8Ch] BYREF
int v19[3]; // [sp+74h] [bp-80h] BYREF
int v20[3]; // [sp+80h] [bp-74h] BYREF
int v21[3]; // [sp+8Ch] [bp-68h] BYREF
int v22[3]; // [sp+98h] [bp-5Ch] BYREF
int v23[3]; // [sp+A4h] [bp-50h] BYREF
int v24[3]; // [sp+B0h] [bp-44h] BYREF
int v25[3]; // [sp+BCh] [bp-38h] BYREF
int v26[3]; // [sp+C8h] [bp-2Ch] BYREF
int v27[3]; // [sp+D4h] [bp-20h] BYREF
int v28[3]; // [sp+E0h] [bp-14h] BYREF
v10 = SetupTriggerPopup::init(this, a2, a3, 320.0, 240.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v10 )
{
memset(v17, 0, sizeof(v17));
std::string::__init(v17, "Stop Trigger", 0xCu);
v4 = *(_DWORD *)this;
memset(v18, 0, sizeof(v18));
(*(void (__fastcall **)(SetupStopTriggerPopup *, int))(v4 + 732))(this, 533);
SetupTriggerPopup::preSetup(this);
std::string::basic_string(v19, (int)v17);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)v19);
std::string::~string((int)v19);
memset(v20, 0, sizeof(v20));
std::string::__init(v20, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)v20);
std::string::~string((int)v20);
memset(v21, 0, sizeof(v21));
std::string::__init(
v21,
"Stops triggers from being active permanently.\n"
"TargetID must be a group on the trigger(s) that you want to stop. If you only want to stop certain trigger"
"s within a group, use Control ID.\n"
"Hint: Unlike Group ID, Control ID can be remapped.\n"
"Pause/Resume works on: Pulse, Col, Alpha, Move, Rotate, Scale, Spawn, Follow, FollowPY, ADVFollow",
0x166u);
memset(v22, 0, sizeof(v22));
std::string::__init(v22, "Help", 4u);
std::string::basic_string(v23, (int)v21);
SetupTriggerPopup::addHelpButton((int)this, (int)v22, (int)v23, 1065353216);
std::string::~string((int)v23);
std::string::~string((int)v22);
MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this);
cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v11 * 0.5, v12 * 0.5);
v6 = (*(float (__fastcall **)(SetupStopTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 535) == 0.0;
memset(v24, 0, sizeof(v24));
if ( v6 )
v7 = 1;
else
v7 = 6;
std::string::__init(v24, "TargetID", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, (float)(v11 * 0.5) - 70.0, (float)(v12 * 0.5) + 45.0);
IDNameInput::create((int)this, (int)this + 440, v7, 51, (int)v24, (int)v16, 0.8, 6, 0, 0, 0);
std::string::~string((int)v24);
memset(v25, 0, sizeof(v25));
std::string::__init(v25, "Use\nControl ID", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, (float)(v11 * 0.5) + 45.0, (float)(v12 * 0.5) + 45.0);
SetupTriggerPopup::createToggleValueControl((int)this, 535, (int)v25, (const cocos2d::CCPoint *)v16, 0, 0, 0, 1.0);
std::string::~string((int)v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v13[0], v13[1] - 20.0);
v9 = (int)(*(float (__fastcall **)(SetupStopTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 580);
memset(v26, 0, sizeof(v26));
std::string::__init(v26, "Stop", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -75.0, 0.0);
cocos2d::CCPoint::operator+(v16, v14, v15);
SetupTriggerPopup::createCustomToggleValueControl(
(int)this,
0,
v9 == 0,
1,
(int)v26,
(const cocos2d::CCPoint *)v16,
1,
0,
0);
std::string::~string((int)v26);
memset(v27, 0, sizeof(v27));
std::string::__init(v27, "Pause", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, 0.0);
cocos2d::CCPoint::operator+(v16, v14, v15);
SetupTriggerPopup::createCustomToggleValueControl(
(int)this,
1,
v9 == 1,
1,
(int)v27,
(const cocos2d::CCPoint *)v16,
1,
0,
0);
std::string::~string((int)v27);
memset(v28, 0, sizeof(v28));
std::string::__init(v28, "Resume", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 75.0, 0.0);
cocos2d::CCPoint::operator+(v16, v14, v15);
SetupTriggerPopup::createCustomToggleValueControl(
(int)this,
2,
v9 == 2,
1,
(int)v28,
(const cocos2d::CCPoint *)v16,
1,
0,
0);
std::string::~string((int)v28);
SetupTriggerPopup::postSetup(this);
std::string::~string((int)v21);
std::string::~string((int)v18);
std::string::~string((int)v17);
}
return v10;
}