//
// SetupPlatformerEndPopup::init from 0x637050 to 0x63732c (732 bytes)
//
// 1 xrefs:
// > SetupPlatformerEndPopup::create @ 0x6373ee
//
// 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:55:20 +0000
//
int __fastcall SetupPlatformerEndPopup::init(
SetupPlatformerEndPopup *this,
EndTriggerGameObject *a2,
cocos2d::CCArray *a3)
{
int v4; // r10
cocos2d::CCDirector *MultiTriggerItemsDefault; // r0
float v7[2]; // [sp+2Ch] [bp-40h] BYREF
_BYTE v8[8]; // [sp+34h] [bp-38h] BYREF
_BYTE v9[8]; // [sp+3Ch] [bp-30h] BYREF
_BYTE v10[8]; // [sp+44h] [bp-28h] BYREF
int v11[3]; // [sp+4Ch] [bp-20h] BYREF
int v12; // [sp+58h] [bp-14h] BYREF
int v13; // [sp+5Ch] [bp-10h]
int v14; // [sp+60h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Setup End", 9u);
SetupTriggerPopup::addTitle(this, &v12);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v12);
std::string::~string((int)&v12);
memset(v11, 0, sizeof(v11));
std::string::__init(v11, "Help", 4u);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(
&v12,
"Sets a specific object given by TargetPos to be the end of the level. The player is pulled into th"
"e end instantly.\n"
"SpawnID lets you spawn a group at the end.\n"
"Instant teleports the player to the end instantly instead of the default gradual pull.\n"
"No Effects disables visual end effects.\n"
"No SFX disables end sound effects.",
0x16Fu);
SetupTriggerPopup::addHelpButton(this, v11, &v12, 1065353216);
std::string::~string((int)&v12);
std::string::~string((int)v11);
MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this);
cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7[0] * 0.5, v7[1] * 0.5);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "SpawnID:", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -75.0, 50.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
IDNameInput::create((int)this, (int)this + 440, 1, 51, (int)&v12, (int)v10, 0.8, 6, 0, 0, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "TargetPos:", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 75.0, 50.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
IDNameInput::create((int)this, (int)this + 440, 1, 71, (int)&v12, (int)v10, 0.8, 6, 0, 0, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "No Effects", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -90.0, 0.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 460, (int)&v12, (int)v10, 0, 0, 0, 1.0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "No SFX", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -90.0, -30.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 461, (int)&v12, (int)v10, 0, 0, 0, 1.0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Instant", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 40.0, 0.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createToggleValueControl((int)this, 487, (int)&v12, (int)v10, 0, 0, 0, 1.0);
std::string::~string((int)&v12);
SetupTriggerPopup::postSetup(this);
}
return v4;
}