//
// SetupTriggerPopup::createCustomToggleValueControl from 0xb1f520 to 0xb1f760 (576 bytes)
//
// 69 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x984470
// > CustomizeObjectSettingsPopup::init @ 0x9844e8
// > CustomizeObjectSettingsPopup::init @ 0x984560
// > SetupMoveCommandPopup::init @ 0xa3e6ec
// > SetupMoveCommandPopup::init @ 0xa3e760
// > SetItemIDLayer::init @ 0xa981d4
// > SetItemIDLayer::init @ 0xa9824c
// > SetItemIDLayer::init @ 0xa982dc
// > SetItemIDLayer::init @ 0xa98354
// > SetItemIDLayer::init @ 0xa983cc
// > SetupPickupTriggerPopup::init @ 0xa9ff84
// > SetupPickupTriggerPopup::init @ 0xa9fffc
// > SetupRotatePopup::init @ 0xaa09e4
// > SetupRotatePopup::init @ 0xaa0a60
// > SetupRotatePopup::init @ 0xaa0ad0
// > SetupStaticCameraPopup::init @ 0xab1c64
// > SetupStaticCameraPopup::init @ 0xab1cdc
// > SetupOptionsTriggerPopup::addOption @ 0xb19ba8
// > SetupOptionsTriggerPopup::addOption @ 0xb19c24
// > SetupGameplayOffsetPopup::init @ 0xb274c8
// > SetupGameplayOffsetPopup::init @ 0xb27544
// > SetupAdvFollowPopup::init @ 0xb49430
// > SetupAdvFollowPopup::init @ 0xb494a8
// > SetupAdvFollowPopup::init @ 0xb49520
// > SetupKeyframePopup::init @ 0xb6a410
// > SetupKeyframePopup::init @ 0xb6a490
// > UIObjectSettingsPopup::init @ 0xb752cc
// > UIObjectSettingsPopup::init @ 0xb75344
// > UIObjectSettingsPopup::init @ 0xb753bc
// > UIObjectSettingsPopup::init @ 0xb75438
// > UIObjectSettingsPopup::init @ 0xb7559c
// > UIObjectSettingsPopup::init @ 0xb75614
// > UIObjectSettingsPopup::init @ 0xb7568c
// > UIObjectSettingsPopup::init @ 0xb75704
// > SetupStopTriggerPopup::init @ 0xb79860
// > SetupStopTriggerPopup::init @ 0xb798dc
// > SetupStopTriggerPopup::init @ 0xb79958
// > SetupItemEditTriggerPopup::init @ 0xb7ccc0
// > SetupItemEditTriggerPopup::init @ 0xb7cd3c
// > SetupItemEditTriggerPopup::init @ 0xb7cdb8
// > SetupItemEditTriggerPopup::init @ 0xb7ce34
// > SetupItemEditTriggerPopup::init @ 0xb7ceb0
// > SetupItemEditTriggerPopup::init @ 0xb7cfc4
// > SetupItemEditTriggerPopup::init @ 0xb7d03c
// > SetupItemEditTriggerPopup::init @ 0xb7d0b0
// > SetupItemEditTriggerPopup::init @ 0xb7d128
// > SetupItemEditTriggerPopup::init @ 0xb7d1a0
// > SetupItemEditTriggerPopup::init @ 0xb7d34c
// > SetupItemEditTriggerPopup::init @ 0xb7d3c4
// > SetupItemEditTriggerPopup::init @ 0xb7d438
// > SetupItemCompareTriggerPopup::init @ 0xb7e2c8
// > SetupItemCompareTriggerPopup::init @ 0xb7e344
// > SetupItemCompareTriggerPopup::init @ 0xb7e3c0
// > SetupItemCompareTriggerPopup::init @ 0xb7e43c
// > SetupItemCompareTriggerPopup::init @ 0xb7e4b8
// > SetupItemCompareTriggerPopup::init @ 0xb7e5dc
// > SetupItemCompareTriggerPopup::init @ 0xb7e654
// > SetupItemCompareTriggerPopup::init @ 0xb7e6cc
// > SetupItemCompareTriggerPopup::init @ 0xb7e744
// > SetupItemCompareTriggerPopup::init @ 0xb7e7bc
// > SelectEventLayer::addToggle @ 0xb7f614
// > SetupSequenceTriggerPopup::init @ 0xb82dc0
// > SetupSequenceTriggerPopup::init @ 0xb82e38
// > SetupSequenceTriggerPopup::init @ 0xb82eb0
// > SetupSequenceTriggerPopup::init @ 0xb82f28
// > SetupSequenceTriggerPopup::init @ 0xb82fa0
// > SetupTimerControlTriggerPopup::init @ 0xbb273c
// > SetupTimerControlTriggerPopup::init @ 0xbb27b4
// > ??> @ 0x5e330
//
// 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:36 +0000
//
cocos2d::CCArray *__fastcall SetupTriggerPopup::createCustomToggleValueControl(
__int64 a1,
unsigned int a2,
unsigned __int8 a3,
unsigned __int8 a4,
char *a5,
const cocos2d::CCPoint *a6,
unsigned __int8 a7,
unsigned int a8,
int a9)
{
int v14; // w25
cocos2d::CCArray *v15; // x0
cocos2d::CCArray *v16; // x20
char v17; // w0
__int64 v18; // x0
__int64 v19; // x1
__int64 v20; // x23
cocos2d::CCObject *v21; // x22
cocos2d::CCArray *v23; // x0
char v24; // w0
cocos2d::CCArray *GroupContainer; // [xsp+90h] [xbp+60h]
int v26; // [xsp+9Ch] [xbp+6Ch]
cocos2d::CCNode *v27; // [xsp+A0h] [xbp+70h]
cocos2d::CCArray *PageContainer; // [xsp+A8h] [xbp+78h]
_BYTE v29[8]; // [xsp+B8h] [xbp+88h] BYREF
_BYTE v30[8]; // [xsp+C0h] [xbp+90h] BYREF
float v31; // [xsp+C8h] [xbp+98h] BYREF
__int64 v32; // [xsp+D0h] [xbp+A0h] BYREF
__int64 v33; // [xsp+D8h] [xbp+A8h]
void *v34; // [xsp+E0h] [xbp+B0h]
v26 = a4;
v14 = a7;
PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer((cocos2d::CCArray **)a1, a8);
GroupContainer = (cocos2d::CCArray *)SetupTriggerPopup::getGroupContainer((cocos2d::CCArray **)a1, a9);
if ( v14 )
{
v15 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 0.0, 4.0);
v16 = (cocos2d::CCArray *)cocos2d::CCArray::create(v15);
v17 = *a5;
v32 = 0;
v33 = 0;
v34 = nullptr;
if ( (v17 & 1) == 0 )
{
LABEL_3:
v18 = *(_QWORD *)a5;
v19 = *((_QWORD *)a5 + 1);
v34 = *((void **)a5 + 2);
v32 = v18;
v33 = v19;
goto LABEL_4;
}
}
else
{
v23 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 8.0, 0.0);
v16 = (cocos2d::CCArray *)cocos2d::CCArray::create(v23);
v24 = *a5;
v32 = 0;
v33 = 0;
v34 = nullptr;
if ( (v24 & 1) == 0 )
goto LABEL_3;
}
std::string::__init(&v32, *((void **)a5 + 2), *((_QWORD *)a5 + 1));
LABEL_4:
v27 = *(cocos2d::CCNode **)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, a6);
v20 = *(_QWORD *)(a1 + 584);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, (const cocos2d::CCPoint *)v29);
v21 = GameToolbox::createToggleButton(
(__int64)&v32,
(const char *)&elf_hash_bucket[246],
1,
a3,
v27,
(const cocos2d::CCPoint *)v30,
a1,
v20,
0.7,
0.35,
110.0,
&v31,
"bigFont.fnt",
v14,
0,
v16);
if ( (v32 & 1) != 0 )
operator delete(v34);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v21 + 72LL))(v21, a2);
if ( v26 )
*((_BYTE *)v21 + 393) = 1;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 776), v21, (int)a2);
cocos2d::CCArray::addObjectsFromArray(PageContainer, v16);
if ( a9 > 0 )
cocos2d::CCArray::addObjectsFromArray(GroupContainer, v16);
return v16;
}