//
// EditGameObjectPopup::init from 0xa24918 to 0xa24b48 (560 bytes)
//
// 2 xrefs:
// > EditGameObjectPopup::create @ 0xa24d74
// > ??> @ 0x83968
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:41 +0000
//
__int64 __fastcall EditGameObjectPopup::init(
EditGameObjectPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3,
unsigned __int8 a4)
{
int v4; // w23
unsigned __int8 v6; // w0
unsigned int v7; // w20
cocos2d::CCDirector *v9; // x0
cocos2d::CCDirector *v10; // x0
__int64 v11; // [xsp+48h] [xbp+48h] BYREF
_BYTE v12[8]; // [xsp+50h] [xbp+50h] BYREF
_BYTE v13[8]; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCDirector *v14; // [xsp+60h] [xbp+60h] BYREF
__int64 v15; // [xsp+68h] [xbp+68h]
void *v16; // [xsp+70h] [xbp+70h]
v4 = a4;
v6 = SetupTriggerPopup::init(this, a2, a3, 200.0, 140.0, 1, 0.0);
v7 = v6;
if ( v6 )
{
SetupTriggerPopup::preSetup(this);
v14 = nullptr;
v15 = 0;
v16 = nullptr;
std::string::__init((__int64 *)&v14, "Setup Object", 0xCu);
SetupTriggerPopup::addTitle(this, &v14);
if ( ((unsigned __int8)v14 & 1) != 0 )
operator delete(v16);
v14 = nullptr;
v15 = 0;
v16 = nullptr;
std::string::__init((__int64 *)&v14, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v14);
v9 = (cocos2d::CCDirector *)(unsigned __int8)v14;
if ( ((unsigned __int8)v14 & 1) != 0 )
operator delete(v16);
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::getWinSize(&v11, v10);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v12,
(float)(*(float *)&v11 * 0.5) + -50.0,
*((float *)&v11 + 1) * 0.5);
if ( v4 )
{
v14 = nullptr;
v15 = 0;
v16 = nullptr;
std::string::__init((__int64 *)&v14, "NO Multi\nActivate", 0x11u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);
SetupTriggerPopup::createToggleValueControl(this, 444, &v14, v13, 0, 0, 0, 1.0);
if ( ((unsigned __int8)v14 & 1) == 0 )
goto LABEL_9;
}
else
{
v14 = nullptr;
v15 = 0;
v16 = nullptr;
std::string::__init((__int64 *)&v14, "Multi\nActivate", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);
SetupTriggerPopup::createToggleValueControl(this, 99, &v14, v13, 0, 0, 0, 1.0);
if ( ((unsigned __int8)v14 & 1) == 0 )
{
LABEL_9:
SetupTriggerPopup::postSetup(this);
return v7;
}
}
operator delete(v16);
goto LABEL_9;
}
return v7;
}