//
// SetupTriggerPopup::createMultiTriggerItems from 0x14060c530 to 0x14060c855 (805 bytes)
//
// 8 xrefs:
// > SetupRandAdvTriggerPopup::init @ 0x1405d370a
// > SetupRandTriggerPopup::init @ 0x1405d596b
// > SetupTriggerPopup::createMultiTriggerItemsDefault @ 0x14060c20f
// > SetupTriggerPopup::createMultiTriggerItemsCorner @ 0x14060c30e
// > SetupTriggerPopup::createMultiTriggerItemsDefaultVertical @ 0x14060c40e
// > SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal @ 0x14060c51f
// > ??> @ 0x14092fc84
// > ??> @ 0x14092fc90
//
// 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:14 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall SetupTriggerPopup::createMultiTriggerItems(
__int64 a1,
const struct cocos2d::CCPoint *a2,
const struct cocos2d::CCPoint *a3,
const struct cocos2d::CCPoint *a4)
{
float *v8; // rax
float *v9; // rbx
__int64 v10; // rdi
__int64 v11; // rax
__int64 v12; // rdi
__int64 v13; // rsi
unsigned __int8 v14; // r14
float *v15; // rax
float *v16; // rbx
__int64 v17; // rax
cocos2d::CCArray *v18; // rdi
__int64 v19; // rsi
__int64 v20; // r14
float *v21; // rax
float *v22; // rbx
__int64 v23; // rax
_WORD *v25; // [rsp+88h] [rbp-39h] BYREF
_BYTE v26[8]; // [rsp+90h] [rbp-31h] BYREF
_WORD *v27; // [rsp+98h] [rbp-29h] BYREF
_WORD v28[8]; // [rsp+A0h] [rbp-21h] BYREF
__int64 v29; // [rsp+B0h] [rbp-11h]
__int64 v30; // [rsp+B8h] [rbp-9h]
v25 = v28;
v28[7] = 0;
v29 = 13;
v30 = 15;
strcpy((char *)v28, "Touch\nTrigger");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 8.0, 0.0);
v9 = v8;
v10 = *(_QWORD *)(a1 + 584);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, a2);
*(_QWORD *)(a1 + 704) = GameToolbox::createToggleButton(
(const char *)v28,
(__int64)SetupTriggerPopup::onTouchTriggered,
*(_BYTE *)(a1 + 696),
*(_QWORD *)(a1 + 552),
v11,
a1,
v10,
0.69999999,
0.34999999,
110.0,
v9,
(const char *)&qword_140704F78,
0,
0,
nullptr);
v27 = v28;
v28[7] = 0;
v29 = 13;
v30 = 15;
strcpy((char *)v28, "Spawn\nTrigger");
v12 = *(_QWORD *)(a1 + 584);
v13 = *(_QWORD *)(a1 + 552);
v14 = *(_BYTE *)(a1 + 697);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 8.0, 0.0);
v16 = v15;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, a3);
*(_QWORD *)(a1 + 712) = GameToolbox::createToggleButton(
(const char *)v28,
(__int64)SetupTriggerPopup::onSpawnedByTrigger,
v14,
v13,
v17,
a1,
v12,
0.69999999,
0.34999999,
110.0,
v16,
(const char *)&qword_140704F78,
0,
0,
nullptr);
v27 = v28;
v28[7] = 0;
v29 = 13;
v30 = 15;
strcpy((char *)v28, "Multi\nTrigger");
v18 = *(cocos2d::CCArray **)(a1 + 720);
v19 = *(_QWORD *)(a1 + 584);
v20 = *(_QWORD *)(a1 + 552);
LOBYTE(a3) = *(_BYTE *)(a1 + 728);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 8.0, 0.0);
v22 = v21;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, a4);
GameToolbox::createToggleButton(
(const char *)v28,
(__int64)SetupTriggerPopup::onMultiTrigger,
(unsigned __int8)a3,
v20,
v23,
a1,
v19,
0.69999999,
0.34999999,
110.0,
v22,
(const char *)&qword_140704F78,
0,
0,
v18);
return SetupTriggerPopup::updateMultiTriggerBtn(a1);
}