//
// SetupObjectOptions2Popup::init from 0x63c940 to 0x63cb86 (582 bytes)
//
// 1 xrefs:
// > SetupObjectOptions2Popup::create @ 0x63cd0c
//
// 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:25 +0000
//
int __fastcall SetupObjectOptions2Popup::init(SetupObjectOptions2Popup *this, GameObject *a2, cocos2d::CCArray *a3)
{
int v4; // r10
cocos2d::CCDirector *v5; // r0
float v7[2]; // [sp+3Ch] [bp-40h] BYREF
_BYTE v8[8]; // [sp+44h] [bp-38h] BYREF
_BYTE v9[8]; // [sp+4Ch] [bp-30h] BYREF
_BYTE v10[8]; // [sp+54h] [bp-28h] BYREF
int v11[3]; // [sp+5Ch] [bp-20h] BYREF
int v12; // [sp+68h] [bp-14h] BYREF
int v13; // [sp+6Ch] [bp-10h]
int v14; // [sp+70h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 320.0, 200.0, 1, 0.0);
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
*((_BYTE *)this + 568) = 1;
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Config 2", 8u);
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,
"Enter Channel is used to set a specific enter effect.\n"
"Material is used to link with specific events.\n"
"ControlID allows you to reference specific objects when using remapping.",
0xC5u);
SetupTriggerPopup::addHelpButton(this, v11, &v12, 1065353216);
std::string::~string((int)&v12);
v5 = (cocos2d::CCDirector *)std::string::~string((int)v11);
cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7[0] * 0.5, (float)(v7[1] * 0.5) + 30.0);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Enter Channel:", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -80.0, 0.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
IDNameInput::create((int)this, (int)this + 440, 8, 343, (int)&v12, (int)v10, 0.7, 6, 0, 0, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Material:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 80.0, 0.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createValueControlAdvanced(this, 446, &v12, v10, 1060320051, 1, 3, 6, 1, 0, 0, 0, 0, 0, 2, 0);
std::string::~string((int)&v12);
if ( *((_BYTE *)this + 653) )
{
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "ControlID:", 0xAu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 80.0, -55.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
IDNameInput::create((int)this, (int)this + 440, 6, 534, (int)&v12, (int)v10, 0.7, 6, 0, 0, 0);
std::string::~string((int)&v12);
}
SetupTriggerPopup::postSetup(this);
}
return v4;
}