//
// SetupTriggerPopup::createMultiTriggerItems from 0x679780 to 0x679966 (486 bytes)
//
// 6 xrefs:
// > SetupRandTriggerPopup::init @ 0x6364a6
// > SetupRandAdvTriggerPopup::init @ 0x65c956
// > SetupTriggerPopup::createMultiTriggerItemsDefault @ 0x679a58
// > SetupTriggerPopup::createMultiTriggerItemsCorner @ 0x679b2e
// > SetupTriggerPopup::createMultiTriggerItemsDefaultVertical @ 0x679bfe
// > SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal @ 0x679cdc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:57 +0000
//
unsigned int __fastcall SetupTriggerPopup::createMultiTriggerItems(
unsigned int a1,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
const cocos2d::CCPoint *a4)
{
int v7; // r9
const cocos2d::CCPoint *v8; // r11
int v9; // r10
int v10; // r9
const cocos2d::CCPoint *v11; // r11
int v12; // r10
int v13; // r11
const cocos2d::CCPoint *v14; // r7
int v15; // r9
_BYTE v18[8]; // [sp+38h] [bp-3Ch] BYREF
_BYTE v19[8]; // [sp+40h] [bp-34h] BYREF
unsigned int (__fastcall *v20)(SetupTriggerPopup *, cocos2d::CCObject *); // [sp+48h] [bp-2Ch]
int v21; // [sp+4Ch] [bp-28h]
unsigned int (__fastcall *v22)(SetupTriggerPopup *, cocos2d::CCObject *); // [sp+50h] [bp-24h] BYREF
int v23; // [sp+54h] [bp-20h]
unsigned int (__fastcall *v24)(unsigned int, cocos2d::CCObject *); // [sp+58h] [bp-1Ch] BYREF
int v25; // [sp+5Ch] [bp-18h]
int v26; // [sp+60h] [bp-14h] BYREF
int v27; // [sp+64h] [bp-10h]
int v28; // [sp+68h] [bp-Ch]
v26 = 0;
v27 = 0;
v28 = 0;
std::string::__init(&v26, "Touch\nTrigger", 0xDu);
v21 = 0;
v7 = *(unsigned __int8 *)(a1 + 536);
v8 = *(const cocos2d::CCPoint **)(a1 + 444);
v20 = SetupTriggerPopup::onTouchTriggered;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, a2);
v9 = *(_DWORD *)(a1 + 460);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 8.0, 0.0);
*(_DWORD *)(a1 + 540) = GameToolbox::createToggleButton(
(int)&v26,
(int)SetupTriggerPopup::onTouchTriggered,
0,
v7,
v8,
(int)&v24,
a1,
v9,
0.7,
0.35,
110.0,
(int)&v22,
"bigFont.fnt",
0,
0,
nullptr);
std::string::~string((int)&v26);
v26 = 0;
v27 = 0;
v28 = 0;
std::string::__init(&v26, "Spawn\nTrigger", 0xDu);
v23 = 0;
v10 = *(unsigned __int8 *)(a1 + 537);
v22 = SetupTriggerPopup::onSpawnedByTrigger;
v11 = *(const cocos2d::CCPoint **)(a1 + 444);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, a3);
v12 = *(_DWORD *)(a1 + 460);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 8.0, 0.0);
*(_DWORD *)(a1 + 544) = GameToolbox::createToggleButton(
(int)&v26,
(int)v22,
v23,
v10,
v11,
(int)&v24,
a1,
v12,
0.7,
0.35,
110.0,
(int)v19,
"bigFont.fnt",
0,
0,
nullptr);
std::string::~string((int)&v26);
v26 = 0;
v27 = 0;
v28 = 0;
std::string::__init(&v26, "Multi\nTrigger", 0xDu);
v25 = 0;
v24 = SetupTriggerPopup::onMultiTrigger;
v13 = *(unsigned __int8 *)(a1 + 552);
v14 = *(const cocos2d::CCPoint **)(a1 + 444);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, a4);
v15 = *(_DWORD *)(a1 + 460);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 8.0, 0.0);
GameToolbox::createToggleButton(
(int)&v26,
(int)v24,
v25,
v13,
v14,
(int)v19,
a1,
v15,
0.7,
0.35,
110.0,
(int)v18,
"bigFont.fnt",
0,
0,
*(cocos2d::CCArray **)(a1 + 548));
std::string::~string((int)&v26);
return SetupTriggerPopup::updateMultiTriggerBtn(a1);
}