//
// SetupTriggerPopup::createMultiTriggerItems from 0xb1e348 to 0xb1e630 (744 bytes)
//
// 7 xrefs:
// > SetupRandTriggerPopup::init @ 0xab3d88
// > SetupRandAdvTriggerPopup::init @ 0xaf0c00
// > SetupTriggerPopup::createMultiTriggerItemsDefault @ 0xb1e738
// > SetupTriggerPopup::createMultiTriggerItemsCorner @ 0xb1e86c
// > SetupTriggerPopup::createMultiTriggerItemsDefaultVertical @ 0xb1e99c
// > SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal @ 0xb1eacc
// > ??> @ 0xc3d30
//
// 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:01:35 +0000
//
__int64 __fastcall SetupTriggerPopup::createMultiTriggerItems(
__int64 a1,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
const cocos2d::CCPoint *a4)
{
cocos2d::CCNode *v8; // x28
__int64 v9; // x27
CCMenuItemToggler *v10; // x0
char v11; // w1
unsigned __int8 v12; // w28
cocos2d::CCNode *v13; // x27
__int64 v14; // x26
CCMenuItemToggler *v15; // x0
char v16; // w1
unsigned __int8 v17; // w27
cocos2d::CCNode *v18; // x26
__int64 v19; // x25
unsigned __int8 v21; // [xsp+BCh] [xbp+8Ch]
float v22; // [xsp+C0h] [xbp+90h] BYREF
_BYTE v23[8]; // [xsp+C8h] [xbp+98h] BYREF
__int64 v24; // [xsp+D0h] [xbp+A0h] BYREF
__int64 v25; // [xsp+D8h] [xbp+A8h]
void *v26; // [xsp+E0h] [xbp+B0h]
v24 = 0;
v25 = 0;
v26 = nullptr;
std::string::__init(&v24, "Touch\nTrigger", 0xDu);
v21 = *(_BYTE *)(a1 + 696);
v8 = *(cocos2d::CCNode **)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, a2);
v9 = *(_QWORD *)(a1 + 584);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 8.0, 0.0);
v10 = GameToolbox::createToggleButton(
(__int64)&v24,
(const char *)SetupTriggerPopup::onTouchTriggered,
0,
v21,
v8,
(const cocos2d::CCPoint *)v23,
a1,
v9,
0.7,
0.35,
110.0,
&v22,
"bigFont.fnt",
0,
0,
nullptr);
v11 = v24;
*(_QWORD *)(a1 + 704) = v10;
if ( (v11 & 1) != 0 )
operator delete(v26);
v24 = 0;
v25 = 0;
v26 = nullptr;
std::string::__init(&v24, "Spawn\nTrigger", 0xDu);
v12 = *(_BYTE *)(a1 + 697);
v13 = *(cocos2d::CCNode **)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, a3);
v14 = *(_QWORD *)(a1 + 584);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 8.0, 0.0);
v15 = GameToolbox::createToggleButton(
(__int64)&v24,
(const char *)SetupTriggerPopup::onSpawnedByTrigger,
0,
v12,
v13,
(const cocos2d::CCPoint *)v23,
a1,
v14,
0.7,
0.35,
110.0,
&v22,
"bigFont.fnt",
0,
0,
nullptr);
v16 = v24;
*(_QWORD *)(a1 + 712) = v15;
if ( (v16 & 1) != 0 )
operator delete(v26);
v24 = 0;
v25 = 0;
v26 = nullptr;
std::string::__init(&v24, "Multi\nTrigger", 0xDu);
v17 = *(_BYTE *)(a1 + 728);
v18 = *(cocos2d::CCNode **)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, a4);
v19 = *(_QWORD *)(a1 + 584);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v24,
(const char *)SetupTriggerPopup::onMultiTrigger,
0,
v17,
v18,
(const cocos2d::CCPoint *)v23,
a1,
v19,
0.7,
0.35,
110.0,
&v22,
"bigFont.fnt",
0,
0,
*(cocos2d::CCArray **)(a1 + 720));
if ( (v24 & 1) != 0 )
operator delete(v26);
SetupTriggerPopup::updateMultiTriggerBtn((SetupTriggerPopup *)a1);
return _stack_chk_guard;
}