//
// SetupResetTriggerPopup::init from 0xb75b9c to 0xb75e40 (676 bytes)
//
// 2 xrefs:
// > SetupResetTriggerPopup::create @ 0xb76064
// > ??> @ 0xb48b0
//
// 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:02:22 +0000
//
__int64 __fastcall SetupResetTriggerPopup::init(
SetupResetTriggerPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w22
__int64 v7; // x2
__int64 v8; // x3
__int64 v9; // x4
__int64 v10; // x5
const char *v11; // x6
cocos2d::CCDirector *MultiTriggerItemsDefault; // x0
cocos2d::CCDirector *v13; // x0
__int64 v14; // [xsp+60h] [xbp+50h] BYREF
_BYTE v15[8]; // [xsp+68h] [xbp+58h] BYREF
_BYTE v16[8]; // [xsp+70h] [xbp+60h] BYREF
__int64 v17[2]; // [xsp+78h] [xbp+68h] BYREF
void *v18; // [xsp+88h] [xbp+78h]
__int64 v19; // [xsp+90h] [xbp+80h] BYREF
__int64 v20; // [xsp+98h] [xbp+88h]
void *v21; // [xsp+A0h] [xbp+90h]
v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 220.0, 1u, 0.0);
v5 = v4;
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Reset Trigger", 0xDu);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v19);
if ( (v19 & 1) != 0 )
operator delete(v21);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "OK", 2u);
SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v19, v7, v8, v9, v10, v11);
if ( (v19 & 1) != 0 )
operator delete(v21);
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
std::string::__init(v17, "Help", 4u);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(
&v19,
"Resets certain objects, such as collectables and checkpoints, given by Group ID. These will then r"
"eappear and can be collected again.",
0x95u);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)v17, (char *)&v19, 1.0);
if ( (v19 & 1) != 0 )
operator delete(v21);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this);
v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault);
cocos2d::CCDirector::getWinSize(&v14, v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *(float *)&v14 * 0.5, *((float *)&v14 + 1) * 0.5);
v19 = 0;
v20 = 0;
v21 = nullptr;
std::string::__init(&v19, "Group ID:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, (const cocos2d::CCPoint *)v15);
IDNameInput::create(this, (char *)this + 544, 1, 51, &v19, v16, 6, 0, 0.8, 0, 0);
if ( (v19 & 1) != 0 )
operator delete(v21);
SetupTriggerPopup::postSetup(this);
}
return v5;
}