//
// SetupInteractObjectPopup::init from 0xa9d950 to 0xa9dff8 (1704 bytes)
//
// 2 xrefs:
// > SetupInteractObjectPopup::create @ 0xa9e23c
// > ??> @ 0x63ce8
//
// 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 13:00:47 +0000
//
__int64 __fastcall SetupInteractObjectPopup::init(
SetupInteractObjectPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w23
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
float v9; // s8
float v10; // s9
float v11; // s10
float v12; // s13
int v13; // [xsp+8h] [xbp-28h]
int v14; // [xsp+20h] [xbp-10h]
__int64 v15; // [xsp+A8h] [xbp+78h] BYREF
_BYTE v16[8]; // [xsp+B0h] [xbp+80h] BYREF
cocos2d::CCDirector *v17[2]; // [xsp+B8h] [xbp+88h] BYREF
void *v18; // [xsp+C8h] [xbp+98h]
__int64 v19; // [xsp+D0h] [xbp+A0h] BYREF
__int64 v20; // [xsp+D8h] [xbp+A8h]
void *v21; // [xsp+E0h] [xbp+B0h]
v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 280.0, 1, 0.0);
v5 = v4;
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Edit Pickup", 0xBu);
SetupTriggerPopup::addTitle(this, &v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
v17[0] = nullptr;
v17[1] = nullptr;
v18 = nullptr;
std::string::__init((__int64 *)v17, "Help", 4u);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(
&v19,
"Sets the object to be a pickup collectable for ItemID.\n"
"Points is how much it increases the count of that ItemID.\n"
"Toggle Trigger lets you toggle or spawn a specific group when collected.\n"
"Particle lets you refer to a custom particles to spawn when collected.\n"
"No Anim disables the animation upon collection.",
0x160u);
SetupTriggerPopup::addHelpButton(this, v17, &v19, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v7 = (cocos2d::CCDirector *)LOBYTE(v17[0]);
if ( ((__int64)v17[0] & 1) != 0 )
operator delete(v18);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v15, v8);
v19 = 0;
v9 = (float)(*((float *)&v15 + 1) * 0.5) + 70.0;
v20 = 0;
v21 = nullptr;
v10 = *(float *)&v15 * 0.5;
v11 = (float)(*(float *)&v15 * 0.5) - 130.0;
v12 = (float)(*(float *)&v15 * 0.5) + 85.0;
std::string::__init(&v19, "Pickup\nItem", 0xBu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v11, v9);
SetupTriggerPopup::createToggleValueControl(this, 381, &v19, v16, 0, 0, 0, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "ItemID", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v10, v9);
IDNameInput::create(this, (char *)this + 544, 2, 80, &v19, v16, 6, 1, 0.7, 0, 0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Sub\nCount", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v12, v9);
SetupTriggerPopup::createToggleValueControl(this, 78, &v19, v16, 0, 0, 1, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Toggle\nTrigger", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v11, v9 - 60.0);
SetupTriggerPopup::createToggleValueControl(this, 382, &v19, v16, 0, 0, 0, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Group ID", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v10, v9 - 60.0);
LOBYTE(v13) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 51, &v19, v16, 6, 2, 0.7, 0, v13);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Enable\nGroup", 0xCu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v12, v9 - 60.0);
SetupTriggerPopup::createToggleValueControl(this, 56, &v19, v16, 0, 0, 2, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Particle", 8u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v16,
(float)(*(float *)&v15 * 0.5) + -100.0,
(float)(v9 - 120.0) - 5.0);
SetupTriggerPopup::createValueControlAdvanced(this, 440, &v19, v16, 1, 3, 6, 1, 0.7, 0.0, 100.0, 0, 0, 0, 2, 0);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Points", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, (float)(*(float *)&v15 * 0.5) + 100.0, (float)(v9 - 120.0) - 5.0);
LOBYTE(v14) = 0;
SetupTriggerPopup::createValueControlAdvanced(this, 383, &v19, v16, 1, 2, 8, 1, 0.7, 0.0, 100.0, 0, 0, 0, 2, v14);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "No\nAnim", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v11, v9 - 180.0);
SetupTriggerPopup::createToggleValueControl(this, 463, &v19, v16, 0, 0, 0, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
SetupTriggerPopup::postSetup(this);
SetupInteractObjectPopup::updateItems(this);
}
return v5;
}