//
// SetupInstantCollisionTriggerPopup::init from 0xa9be88 to 0xa9c420 (1432 bytes)
//
// 2 xrefs:
// > SetupInstantCollisionTriggerPopup::create @ 0xa9c65c
// > ??> @ 0xaef70
//
// 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:46 +0000
//
__int64 __fastcall SetupInstantCollisionTriggerPopup::init(
SetupInstantCollisionTriggerPopup *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; // s11
float v11; // s9
float v12; // s8
int v13; // [xsp+8h] [xbp-8h]
int v14; // [xsp+8h] [xbp-8h]
int v15; // [xsp+8h] [xbp-8h]
__int64 v16; // [xsp+78h] [xbp+68h] BYREF
_BYTE v17[8]; // [xsp+80h] [xbp+70h] BYREF
cocos2d::CCDirector *v18[2]; // [xsp+88h] [xbp+78h] BYREF
void *v19; // [xsp+98h] [xbp+88h]
__int64 v20; // [xsp+A0h] [xbp+90h] BYREF
__int64 v21; // [xsp+A8h] [xbp+98h]
void *v22; // [xsp+B0h] [xbp+A0h]
v4 = SetupTriggerPopup::init(this, a2, a3, 340.0, 280.0, 1, 0.0);
v5 = v4;
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Instant Collision", 0x11u);
SetupTriggerPopup::addTitle(this, &v20);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "OK", 2u);
SetupTriggerPopup::addCloseButton(this, &v20);
if ( (v20 & 1) != 0 )
operator delete(v22);
v18[0] = nullptr;
v18[1] = nullptr;
v19 = nullptr;
std::string::__init((__int64 *)v18, "Help", 4u);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(
&v20,
"Activates a group when Collision Blocks using BlockA ID and BlockB ID collide or do not collide. The condi"
"tion is only checked when it is hit and never again. Make sure that one of the blocks have Dynamic Block enabled.\n"
"True ID is activated if they collide. False ID is activated if they do not collide.\n"
"P1 and P2 makes collision trigger upon the respective player touching BlockB ID.\n"
"PP triggers when both players collide.",
0x1CFu);
SetupTriggerPopup::addHelpButton(this, v18, &v20, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v7 = (cocos2d::CCDirector *)LOBYTE(v18[0]);
if ( ((__int64)v18[0] & 1) != 0 )
operator delete(v19);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v16, v8);
v20 = 0;
v21 = 0;
v9 = (float)(*((float *)&v16 + 1) * 0.5) + 70.0;
v22 = nullptr;
v10 = (float)(*(float *)&v16 * 0.5) + -70.0;
v11 = (float)(*(float *)&v16 * 0.5) + 70.0;
std::string::__init(&v20, "BlockA ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v10, v9);
IDNameInput::create(this, (char *)this + 544, 3, 80, &v20, v17, 6, 0, 0.7, 0, 0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "BlockB ID", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v11, v9);
LOBYTE(v13) = 0;
IDNameInput::create(this, (char *)this + 544, 3, 95, &v20, v17, 6, 0, 0.7, 0, v13);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "True ID", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v10, v9 - 60.0);
LOBYTE(v14) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 51, &v20, v17, 6, 0, 0.7, 0, v14);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "False ID", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v11, v9 - 60.0);
LOBYTE(v15) = 0;
IDNameInput::create(this, (char *)this + 544, 1, 71, &v20, v17, 6, 0, 0.7, 0, v15);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "P1", 2u);
v12 = (float)(v9 - 120.0) + 10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (float)(*(float *)&v16 * 0.5) + -75.0, v12);
SetupTriggerPopup::createToggleValueControl(this, 138, &v20, v17, 0, 0, 0, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "P2", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, *(float *)&v16 * 0.5, v12);
SetupTriggerPopup::createToggleValueControl(this, 200, &v20, v17, 0, 0, 0, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "PP", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (float)(*(float *)&v16 * 0.5) + 75.0, v12);
SetupTriggerPopup::createToggleValueControl(this, 201, &v20, v17, 0, 0, 0, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
SetupTriggerPopup::createMultiTriggerItemsDefault(this);
SetupTriggerPopup::postSetup(this);
}
return v5;
}