//
// MultiTriggerPopup::init from 0x1405ff990 to 0x1405ffc0c (636 bytes)
//
// 3 xrefs:
// > MultiTriggerPopup::create @ 0x1405ff94e
// > ??> @ 0x14092f840
// > ??> @ 0x14092f84c
//
// This function is hookable on this platform (idp: pc, 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 11:35:10 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall MultiTriggerPopup::init(_BYTE *a1, int a2, int a3, int a4)
{
char result; // al
__int64 v6; // rcx
__int64 v7; // rax
int v8; // eax
_BYTE v9[8]; // [rsp+48h] [rbp-19h] BYREF
__int128 *v10; // [rsp+50h] [rbp-11h]
_BYTE v11[8]; // [rsp+58h] [rbp-9h] BYREF
__int128 v12; // [rsp+60h] [rbp-1h] BYREF
__int64 v13; // [rsp+70h] [rbp+Fh]
__int64 v14; // [rsp+78h] [rbp+17h]
__int128 v15; // [rsp+80h] [rbp+1Fh] BYREF
__int64 v16; // [rsp+90h] [rbp+2Fh]
__int64 v17; // [rsp+98h] [rbp+37h]
float v18; // [rsp+E0h] [rbp+7Fh] BYREF
float v19; // [rsp+E4h] [rbp+83h]
result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1123024896, 1, 0);
if ( result )
{
a1[744] = 1;
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1096LL))(a1);
v12 = 0;
v13 = 5;
v14 = 15;
strcpy((char *)&v12, "Setup");
SetupTriggerPopup::addTitle(a1, &v12);
v12 = 0;
v13 = 2;
v14 = 15;
strcpy((char *)&v12, "OK");
SetupTriggerPopup::addCloseButton(a1, &v12);
v10 = &v12;
v12 = 0;
v13 = 0;
v14 = 0;
*(_QWORD *)&v12 = sub_14003D460(0x50u);
v13 = 74;
v14 = 79;
strcpy((char *)v12, "Allow Multi makes it so the object can be activated several times.");
v15 = 0;
v16 = 4;
v17 = 15;
strcpy((char *)&v15, "Help");
SetupTriggerPopup::addHelpButton(a1, &v15, &v12);
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7, &v18);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, (float)(v18 * 0.5) - 30.0, (float)(v19 * 0.5) + 10.0);
v10 = &v12;
v13 = 11;
v14 = 15;
*(_QWORD *)&v12 = 0x754D20776F6C6C41LL;
*((_QWORD *)&v12 + 1) = 6911084;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const struct cocos2d::CCPoint *)v9);
SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 87, (unsigned int)&v12, v8, 0, 0, 0, 1065353216);
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1136LL))(a1);
a1[744] = 0;
return 1;
}
return result;
}