//
// EditGameObjectPopup::init from 0x5d7860 to 0x5d79c0 (352 bytes)
//
// 1 xrefs:
// > EditGameObjectPopup::create @ 0x5d7a5a
//
// 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:54:09 +0000
//
int __fastcall EditGameObjectPopup::init(EditGameObjectPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3, int a4)
{
int v6; // r9
cocos2d::CCDirector *v7; // r0
float v9[2]; // [sp+10h] [bp-2Ch] BYREF
_BYTE v10[8]; // [sp+18h] [bp-24h] BYREF
_BYTE v11[8]; // [sp+20h] [bp-1Ch] BYREF
int v12; // [sp+28h] [bp-14h] BYREF
int v13; // [sp+2Ch] [bp-10h]
int v14; // [sp+30h] [bp-Ch]
v6 = SetupTriggerPopup::init(this, a2, a3, 200.0, 140.0, 1, 0.0);
if ( v6 )
{
SetupTriggerPopup::preSetup(this);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Setup Object", 0xCu);
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);
v7 = (cocos2d::CCDirector *)std::string::~string((int)&v12);
cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)(v9[0] * 0.5) - 50.0, v9[1] * 0.5);
v12 = 0;
v13 = 0;
v14 = 0;
if ( a4 )
{
std::string::__init(&v12, "NO Multi\nActivate", 0x11u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)v10);
SetupTriggerPopup::createToggleValueControl((int)this, 444, (int)&v12, (int)v11, 0, 0, 0, 1.0);
}
else
{
std::string::__init(&v12, "Multi\nActivate", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)v10);
SetupTriggerPopup::createToggleValueControl((int)this, 99, (int)&v12, (int)v11, 0, 0, 0, 1.0);
}
std::string::~string((int)&v12);
SetupTriggerPopup::postSetup(this);
}
return v6;
}