//
// SetupCollisionTriggerPopup::init from 0xa9b264 to 0xa9b874 (1552 bytes)
//
// 2 xrefs:
// > SetupCollisionTriggerPopup::create @ 0xa9baa4
// > ??> @ 0x6fe68
//
// 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:45 +0000
//
__int64 __fastcall SetupCollisionTriggerPopup::init(
SetupCollisionTriggerPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w23
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
float v9; // s11
float v10; // s9
float v11; // s8
int v12; // [xsp+8h] [xbp-8h]
int v13; // [xsp+8h] [xbp-8h]
__int64 v14; // [xsp+88h] [xbp+78h] BYREF
_BYTE v15[8]; // [xsp+90h] [xbp+80h] BYREF
cocos2d::CCDirector *v16[2]; // [xsp+98h] [xbp+88h] BYREF
void *v17; // [xsp+A8h] [xbp+98h]
__int64 v18; // [xsp+B0h] [xbp+A0h] BYREF
__int64 v19; // [xsp+B8h] [xbp+A8h]
void *v20; // [xsp+C0h] [xbp+B0h]
v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 280.0, 1, 0.0);
v5 = v4;
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "Collision Trigger", 0x11u);
SetupTriggerPopup::addTitle(this, &v18);
if ( (v18 & 1) != 0 )
operator delete(v20);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v18);
if ( (v18 & 1) != 0 )
operator delete(v20);
v16[0] = nullptr;
v16[1] = nullptr;
v17 = nullptr;
std::string::__init((__int64 *)v16, "Help", 4u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(
&v18,
"Disables Target ID when Collision Blocks using BlockA ID and BlockB ID collide. This condition is "
"checked constantly. Make sure that one of the blocks have Dynamic Block enabled.\n"
"Use Activate Group to activate and spawn instead.\n"
"P1 and P2 makes collision trigger upon the respective player touching BlockB ID.\n"
"PP triggers when both players collide.\n"
"Trigger On Exit makes it activate after collision between the blocks ends and not when it starts. ",
0x1EFu);
SetupTriggerPopup::addHelpButton(this, v16, &v18, 1.0);
if ( (v18 & 1) != 0 )
operator delete(v20);
v7 = (cocos2d::CCDirector *)LOBYTE(v16[0]);
if ( ((__int64)v16[0] & 1) != 0 )
operator delete(v17);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v14, v8);
v18 = 0;
v9 = (float)(*((float *)&v14 + 1) * 0.5) + 70.0;
v19 = 0;
v10 = (float)(*((float *)&v14 + 1) * 0.5) + 10.0;
v20 = nullptr;
v11 = (float)(*((float *)&v14 + 1) * 0.5) + -55.0;
std::string::__init(&v18, "BlockA ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v14 * 0.5) + -70.0, v10);
IDNameInput::create(this, (char *)this + 544, 3, 80, &v18, v15, 6, 0, 0.7, 0, 0);
if ( (v18 & 1) != 0 )
operator delete(v20);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "BlockB ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v14 * 0.5) + 70.0, v10);
LOBYTE(v12) = 0;
IDNameInput::create(this, (char *)this + 544, 3, 95, &v18, v15, 6, 0, 0.7, 0, v12);
if ( (v18 & 1) != 0 )
operator delete(v20);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "Target ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v14 * 0.5) + -70.0, v11);
LOBYTE(v13) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 51, &v18, v15, 6, 0, 0.7, 0, v13);
if ( (v18 & 1) != 0 )
operator delete(v20);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "P1", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v14 * 0.5) + -70.0, v9);
SetupTriggerPopup::createToggleValueControl(this, 138, &v18, v15, 0, 0, 0, 1.0);
if ( (v18 & 1) != 0 )
operator delete(v20);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *(float *)&v14 * 0.5, v9);
SetupTriggerPopup::createToggleValueControl(this, 200, &v18, v15, 0, 0, 0, 1.0);
if ( (v18 & 1) != 0 )
operator delete(v20);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "PP", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v14 * 0.5) + 70.0, v9);
SetupTriggerPopup::createToggleValueControl(this, 201, &v18, v15, 0, 0, 0, 1.0);
if ( (v18 & 1) != 0 )
operator delete(v20);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "Activate\nGroup", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v14 * 0.5) + 70.0, v11 + 15.0);
SetupTriggerPopup::createToggleValueControl(this, 56, &v18, v15, 0, 0, 0, 1.0);
if ( (v18 & 1) != 0 )
operator delete(v20);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "Trigger\nOn Exit", 0xFu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)(*(float *)&v14 * 0.5) + 70.0, v11 - 30.0);
SetupTriggerPopup::createToggleValueControl(this, 93, &v18, v15, 0, 0, 0, 1.0);
if ( (v18 & 1) != 0 )
operator delete(v20);
SetupTriggerPopup::createMultiTriggerItemsDefault(this);
SetupTriggerPopup::postSetup(this);
}
return v5;
}