//
// SetupTriggerPopup::createCustomToggleValueControl from 0x14060e7e0 to 0x14060ea36 (598 bytes)
//
// 69 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x140144503
// > CustomizeObjectSettingsPopup::init @ 0x140144581
// > CustomizeObjectSettingsPopup::init @ 0x140144611
// > SetupMoveCommandPopup::init @ 0x14038f1f9
// > SetupMoveCommandPopup::init @ 0x14038f28e
// > SetItemIDLayer::init @ 0x1405984d0
// > SetItemIDLayer::init @ 0x14059856a
// > SetItemIDLayer::init @ 0x140598609
// > SetItemIDLayer::init @ 0x140598699
// > SetItemIDLayer::init @ 0x14059871e
// > SetupAdvFollowPopup::init @ 0x140599e30
// > SetupAdvFollowPopup::init @ 0x140599e9f
// > SetupAdvFollowPopup::init @ 0x140599f0e
// > SetupKeyframePopup::init @ 0x1405bafe5
// > SetupKeyframePopup::init @ 0x1405bb06f
// > SetupOptionsTriggerPopup::addOption @ 0x1405cc14a
// > SetupOptionsTriggerPopup::addOption @ 0x1405cc1e6
// > SetupPickupTriggerPopup::init @ 0x1405cc7f7
// > SetupPickupTriggerPopup::init @ 0x1405cc888
// > SetupGameplayOffsetPopup::init @ 0x1405d75c5
// > SetupGameplayOffsetPopup::init @ 0x1405d7658
// > SetupRotatePopup::init @ 0x1405d7ea2
// > SetupRotatePopup::init @ 0x1405d7f40
// > SetupRotatePopup::init @ 0x1405d7fd8
// > SetupSequenceTriggerPopup::init @ 0x1405d94dc
// > SetupSequenceTriggerPopup::init @ 0x1405d9571
// > SetupSequenceTriggerPopup::init @ 0x1405d9601
// > SetupSequenceTriggerPopup::init @ 0x1405d9697
// > SetupSequenceTriggerPopup::init @ 0x1405d972d
// > SetupStaticCameraPopup::init @ 0x1405f6095
// > SetupStaticCameraPopup::init @ 0x1405f6125
// > SetupTimerControlTriggerPopup::init @ 0x1405f927f
// > SetupTimerControlTriggerPopup::init @ 0x1405f9302
// > SelectEventLayer::addToggle @ 0x1405fdaeb
// > UIObjectSettingsPopup::init @ 0x1406002f9
// > UIObjectSettingsPopup::init @ 0x140600390
// > UIObjectSettingsPopup::init @ 0x140600416
// > UIObjectSettingsPopup::init @ 0x1406004ac
// > UIObjectSettingsPopup::init @ 0x140600656
// > UIObjectSettingsPopup::init @ 0x1406006ed
// > UIObjectSettingsPopup::init @ 0x140600780
// > UIObjectSettingsPopup::init @ 0x140600817
// > SetupItemEditTriggerPopup::init @ 0x140601451
// > SetupItemEditTriggerPopup::init @ 0x1406014e7
// > SetupItemEditTriggerPopup::init @ 0x140601579
// > SetupItemEditTriggerPopup::init @ 0x140601605
// > SetupItemEditTriggerPopup::init @ 0x14060169a
// > SetupItemEditTriggerPopup::init @ 0x140601841
// > SetupItemEditTriggerPopup::init @ 0x1406018cf
// > SetupItemEditTriggerPopup::init @ 0x140601962
// > SetupItemEditTriggerPopup::init @ 0x1406019e6
// > SetupItemEditTriggerPopup::init @ 0x140601a74
// > SetupItemEditTriggerPopup::init @ 0x140601cef
// > SetupItemEditTriggerPopup::init @ 0x140601d7d
// > SetupItemEditTriggerPopup::init @ 0x140601e10
// > SetupItemCompareTriggerPopup::init @ 0x140603e24
// > SetupItemCompareTriggerPopup::init @ 0x140603eb6
// > SetupItemCompareTriggerPopup::init @ 0x140603f49
// > SetupItemCompareTriggerPopup::init @ 0x140603fd1
// > SetupItemCompareTriggerPopup::init @ 0x14060405f
// > SetupItemCompareTriggerPopup::init @ 0x14060421f
// > SetupItemCompareTriggerPopup::init @ 0x1406042a8
// > SetupItemCompareTriggerPopup::init @ 0x140604332
// > SetupItemCompareTriggerPopup::init @ 0x1406043b1
// > SetupItemCompareTriggerPopup::init @ 0x14060443f
// > SetupStopTriggerPopup::init @ 0x140609635
// > SetupStopTriggerPopup::init @ 0x1406096ca
// > SetupStopTriggerPopup::init @ 0x140609765
// > ??> @ 0x14092fed0
//
// 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:15 +0000
//
// Hidden C++ exception states: #wind=2
cocos2d::CCArray *__fastcall SetupTriggerPopup::createCustomToggleValueControl(
__int64 a1,
unsigned int a2,
unsigned __int8 a3,
__int64 a4,
__int64 a5,
const struct cocos2d::CCPoint *a6,
char a7,
unsigned int a8,
signed int a9)
{
struct cocos2d::CCObject *GroupContainer; // r12
float v11; // xmm2_4
float v12; // xmm1_4
cocos2d::CCPoint *v13; // rcx
const struct cocos2d::CCPoint *v14; // rax
__int64 v15; // rcx
cocos2d::CCArray *v16; // r15
const char *v17; // rbp
__int64 v18; // rdi
__int64 v19; // rsi
float *v20; // rax
float *v21; // rbx
__int64 v22; // rax
struct cocos2d::CCObject *ToggleButton; // rbx
_BYTE v27[8]; // [rsp+90h] [rbp-98h] BYREF
const struct cocos2d::CCPoint *v28; // [rsp+98h] [rbp-90h]
cocos2d::CCArray *PageContainer; // [rsp+A0h] [rbp-88h]
_BYTE v30[8]; // [rsp+A8h] [rbp-80h] BYREF
_BYTE *v31; // [rsp+B0h] [rbp-78h] BYREF
_BYTE v32[8]; // [rsp+B8h] [rbp-70h] BYREF
_BYTE v33[32]; // [rsp+C0h] [rbp-68h] BYREF
__int64 v34; // [rsp+E0h] [rbp-48h]
v34 = a5;
v28 = a6;
PageContainer = SetupTriggerPopup::getPageContainer(a1, a8);
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a9);
if ( a7 )
{
v11 = 4.0;
v12 = 0.0;
v13 = (cocos2d::CCPoint *)v30;
}
else
{
v11 = 0.0;
v12 = 8.0;
v13 = (cocos2d::CCPoint *)&v31;
}
cocos2d::CCPoint::CCPoint(v13, v12, v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v14);
v16 = (cocos2d::CCArray *)cocos2d::CCArray::create(v15);
v31 = v33;
v17 = (const char *)sub_14003F4F0((__int64)v33, a5);
v18 = *(_QWORD *)(a1 + 584);
v19 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, (const struct cocos2d::CCPoint *)v27);
v21 = v20;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, v28);
ToggleButton = GameToolbox::createToggleButton(
v17,
(__int64)sub_140615C28,
a3,
v19,
v22,
a1,
v18,
0.69999999,
0.34999999,
110.0,
v21,
(const char *)&qword_140704F78,
a7,
0,
v16);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)ToggleButton + 64LL))(ToggleButton, a2);
*((_BYTE *)ToggleButton + 393) = 1;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 776), ToggleButton, (int)a2);
cocos2d::CCArray::addObjectsFromArray(PageContainer, v16);
if ( a9 > 0 )
cocos2d::CCArray::addObjectsFromArray(GroupContainer, v16);
sub_14003D310(a5);
return v16;
}