//
// SetupTriggerPopup::createToggleValueControl from 0xb1f35c to 0xb1f514 (440 bytes)
//
// 276 xrefs:
// > EditGameObjectPopup::init @ 0xa24a88
// > EditGameObjectPopup::init @ 0xa24aec
// > UIOptionsLayer::init @ 0xa2d3d4
// > UIOptionsLayer::init @ 0xa2d7ac
// > UIOptionsLayer::init @ 0xa2d818
// > UIOptionsLayer::init @ 0xa2d884
// > UIOptionsLayer::init @ 0xa2e0c4
// > UIOptionsLayer::init @ 0xa2e130
// > UIOptionsLayer::init @ 0xa2e19c
// > UIOptionsLayer::init @ 0xa2e284
// > SetupMoveCommandPopup::init @ 0xa3e2f8
// > SetupMoveCommandPopup::init @ 0xa3e364
// > SetupMoveCommandPopup::init @ 0xa3e434
// > SetupMoveCommandPopup::init @ 0xa3e4a0
// > SetupMoveCommandPopup::init @ 0xa3e608
// > SetupMoveCommandPopup::init @ 0xa3e674
// > SetupMoveCommandPopup::init @ 0xa3e8a0
// > SetupMoveCommandPopup::init @ 0xa3e90c
// > SetupMoveCommandPopup::init @ 0xa3e978
// > SetupMoveCommandPopup::init @ 0xa3e9e4
// > SetupMoveCommandPopup::init @ 0xa3ebb4
// > SetupObjectTogglePopup::init @ 0xa42260
// > SetupObjectTogglePopup::init @ 0xa422cc
// > SetupObjectTogglePopup::init @ 0xa42358
// > SetupObjectTogglePopup::init @ 0xa423c8
// > SetupObjectTogglePopup::init @ 0xa42450
// > SetupSpawnPopup::init @ 0xa43a00
// > SetupSpawnPopup::init @ 0xa43a6c
// > SetupSpawnPopup::init @ 0xa43ad8
// > CollisionBlockPopup::init @ 0xa64a74
// > SetupRotateCommandPopup::init @ 0xa7b878
// > SetupRotateCommandPopup::init @ 0xa7b8e4
// > SetupRotateCommandPopup::init @ 0xa7b954
// > SetupRotateCommandPopup::init @ 0xa7b9c0
// > SetupRotateCommandPopup::init @ 0xa7ba2c
// > SetupRotateCommandPopup::init @ 0xa7ba98
// > SetItemIDLayer::init @ 0xa980d4
// > SetItemIDLayer::init @ 0xa98144
// > SetupAnimSettingsPopup::init @ 0xa9a848
// > SetupAnimSettingsPopup::init @ 0xa9a8b4
// > SetupAnimSettingsPopup::init @ 0xa9a924
// > SetupAnimSettingsPopup::init @ 0xa9a990
// > SetupAnimSettingsPopup::init @ 0xa9a9fc
// > SetupAnimSettingsPopup::init @ 0xa9aa68
// > SetupAnimSettingsPopup::init @ 0xa9abf8
// > SetupCollisionTriggerPopup::init @ 0xa9b5b8
// > SetupCollisionTriggerPopup::init @ 0xa9b61c
// > SetupCollisionTriggerPopup::init @ 0xa9b680
// > SetupCollisionTriggerPopup::init @ 0xa9b6e8
// > SetupCollisionTriggerPopup::init @ 0xa9b750
// > SetupInstantCollisionTriggerPopup::init @ 0xa9c240
// > SetupInstantCollisionTriggerPopup::init @ 0xa9c2a4
// > SetupInstantCollisionTriggerPopup::init @ 0xa9c30c
// > SetupCountTriggerPopup::init @ 0xa9d3e0
// > SetupCountTriggerPopup::init @ 0xa9d44c
// > SetupInteractObjectPopup::init @ 0xa9db4c
// > SetupInteractObjectPopup::init @ 0xa9dc18
// > SetupInteractObjectPopup::init @ 0xa9dc7c
// > SetupInteractObjectPopup::init @ 0xa9dd40
// > SetupInteractObjectPopup::init @ 0xa9dec4
// > SetupPickupTriggerPopup::init @ 0xaa00f4
// > SetupStaticCameraPopup::init @ 0xab1ad4
// > SetupStaticCameraPopup::init @ 0xab1b50
// > SetupStaticCameraPopup::init @ 0xab1d4c
// > SetupStaticCameraPopup::init @ 0xab1e4c
// > SetupPlatformerEndPopup::init @ 0xab52b8
// > SetupPlatformerEndPopup::init @ 0xab5324
// > SetupPlatformerEndPopup::init @ 0xab5390
// > SetupTransformPopup::init @ 0xae96a4
// > SetupTransformPopup::init @ 0xae983c
// > SetupTransformPopup::init @ 0xae98a8
// > SetupTransformPopup::init @ 0xae9ae0
// > SetupTransformPopup::init @ 0xae9b60
// > SetupSongTriggerPopup::init @ 0xaea950
// > SetupSongTriggerPopup::init @ 0xaea9d0
// > SetupSongTriggerPopup::init @ 0xaeac64
// > SetupSongTriggerPopup::init @ 0xaeacd0
// > SetupCameraRotatePopup2::init @ 0xaed064
// > SetupCameraRotatePopup2::init @ 0xaed0d0
// > SetupRotateGameplayPopup::init @ 0xb26854
// > SetupRotateGameplayPopup::init @ 0xb268c4
// > SetupRotateGameplayPopup::init @ 0xb26a64
// > SetupRotateGameplayPopup::init @ 0xb26ad0
// > SetupRotateGameplayPopup::init @ 0xb26cc0
// > SetupRotateGameplayPopup::init @ 0xb26d48
// > SetupGameplayOffsetPopup::init @ 0xb275b4
// > SetupGameplayOffsetPopup::init @ 0xb2761c
// > SetupTeleportPopup::init @ 0xb28074
// > SetupTeleportPopup::init @ 0xb280e0
// > SetupTeleportPopup::init @ 0xb2814c
// > SetupTeleportPopup::init @ 0xb281b8
// > SetupTeleportPopup::init @ 0xb28224
// > SetupTeleportPopup::init @ 0xb28294
// > SetupTeleportPopup::init @ 0xb28300
// > SetupTeleportPopup::init @ 0xb28398
// > SetupTeleportPopup::init @ 0xb28660
// > SetupTeleportPopup::init @ 0xb286cc
// > SetupTeleportPopup::init @ 0xb287f0
// > SetupTeleportPopup::init @ 0xb28a9c
// > SetupGradientPopup::init @ 0xb31000
// > SetupGradientPopup::init @ 0xb31080
// > SetupGradientPopup::init @ 0xb310ec
// > SetupShaderEffectPopup::setupShockWave @ 0xb32970
// > SetupShaderEffectPopup::setupShockWave @ 0xb329dc
// > SetupShaderEffectPopup::setupShockWave @ 0xb32a48
// > SetupShaderEffectPopup::setupShockWave @ 0xb32ad8
// > SetupShaderEffectPopup::setupShockWave @ 0xb32d18
// > SetupShaderEffectPopup::setupShockWave @ 0xb32d84
// > SetupShaderEffectPopup::setupShockWave @ 0xb32df0
// > SetupShaderEffectPopup::setupShockLine @ 0xb3399c
// > SetupShaderEffectPopup::setupShockLine @ 0xb33a08
// > SetupShaderEffectPopup::setupShockLine @ 0xb33a74
// > SetupShaderEffectPopup::setupShockLine @ 0xb33ae0
// > SetupShaderEffectPopup::setupShockLine @ 0xb33b4c
// > SetupShaderEffectPopup::setupShockLine @ 0xb33bb8
// > SetupShaderEffectPopup::setupShockLine @ 0xb33c48
// > SetupShaderEffectPopup::setupShockLine @ 0xb33df0
// > SetupShaderEffectPopup::setupShockLine @ 0xb33e5c
// > SetupShaderEffectPopup::setupShockLine @ 0xb33ec8
// > SetupShaderEffectPopup::setupGlitch @ 0xb3470c
// > SetupShaderEffectPopup::setupChromatic @ 0xb34b00
// > SetupShaderEffectPopup::setupChromatic @ 0xb34b6c
// > SetupShaderEffectPopup::setupChromatic @ 0xb34bfc
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0xb351b8
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0xb35224
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0xb352b4
// > SetupShaderEffectPopup::setupPixelate @ 0xb35718
// > SetupShaderEffectPopup::setupPixelate @ 0xb35784
// > SetupShaderEffectPopup::setupPixelate @ 0xb357f4
// > SetupShaderEffectPopup::setupPixelate @ 0xb35860
// > SetupShaderEffectPopup::setupPixelate @ 0xb358f0
// > SetupShaderEffectPopup::setupLensCircle @ 0xb35f70
// > SetupShaderEffectPopup::setupLensCircle @ 0xb35fdc
// > SetupShaderEffectPopup::setupLensCircle @ 0xb360f8
// > SetupShaderEffectPopup::setupRadialBlur @ 0xb366b0
// > SetupShaderEffectPopup::setupRadialBlur @ 0xb36720
// > SetupShaderEffectPopup::setupRadialBlur @ 0xb36938
// > SetupShaderEffectPopup::setupRadialBlur @ 0xb369a4
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb36e8c
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb36ef8
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb37150
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb3723c
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb372a8
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb37314
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb37384
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb373f0
// > SetupShaderEffectPopup::setupBulge @ 0xb3790c
// > SetupShaderEffectPopup::setupBulge @ 0xb3797c
// > SetupShaderEffectPopup::setupBulge @ 0xb37b94
// > SetupShaderEffectPopup::setupBulge @ 0xb37c00
// > SetupShaderEffectPopup::setupPinch @ 0xb380d0
// > SetupShaderEffectPopup::setupPinch @ 0xb3813c
// > SetupShaderEffectPopup::setupPinch @ 0xb38300
// > SetupShaderEffectPopup::setupPinch @ 0xb3838c
// > SetupShaderEffectPopup::setupPinch @ 0xb385a0
// > SetupShaderEffectPopup::setupPinch @ 0xb3860c
// > SetupShaderEffectPopup::setupGrayscale @ 0xb38aac
// > SetupShaderEffectPopup::setupGrayscale @ 0xb38b18
// > SetupShaderEffectPopup::setupInvertColor @ 0xb3935c
// > SetupShaderEffectPopup::setupInvertColor @ 0xb393c8
// > SetupShaderEffectPopup::setupInvertColor @ 0xb39434
// > SetupShaderEffectPopup::setupSplitScreen @ 0xb3a198
// > SetupShaderEffectPopup::setupSplitScreen @ 0xb3a204
// > SetupShaderEffectPopup::setupShaderTrigger @ 0xb3a4a8
// > SetupShaderEffectPopup::setupShaderTrigger @ 0xb3a518
// > SetupShaderEffectPopup::init @ 0xb3aba0
// > SetupAreaAnimTriggerPopup::init @ 0xb3cf88
// > SetupAreaAnimTriggerPopup::init @ 0xb3d524
// > SetupAreaAnimTriggerPopup::init @ 0xb3d99c
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xb3e8b8
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xb3e910
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xb3e97c
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xb3ea88
// > SetupAreaMoveTriggerPopup::init @ 0xb3f7b0
// > SetupAreaMoveTriggerPopup::init @ 0xb3f8ac
// > SetupAreaTintTriggerPopup::init @ 0xb42308
// > SetupAreaTintTriggerPopup::init @ 0xb42374
// > SetupAreaTintTriggerPopup::init @ 0xb423e0
// > SetupEnterEffectPopup::init @ 0xb44d40
// > SetupEnterEffectPopup::init @ 0xb44dac
// > SetupEnterEffectPopup::init @ 0xb44e18
// > SetupEnterEffectPopup::init @ 0xb45244
// > SetupCameraModePopup::init @ 0xb4666c
// > SetupAdvFollowEditPhysicsPopup::init @ 0xb47680
// > SetupAdvFollowEditPhysicsPopup::init @ 0xb476ec
// > SetupAdvFollowEditPhysicsPopup::init @ 0xb47cdc
// > SetupAdvFollowEditPhysicsPopup::init @ 0xb47d48
// > SetupAdvFollowRetargetPopup::init @ 0xb484e4
// > SetupAdvFollowRetargetPopup::init @ 0xb48550
// > SetupAdvFollowRetargetPopup::init @ 0xb485bc
// > SetupAdvFollowRetargetPopup::init @ 0xb48628
// > SetupAdvFollowPopup::init @ 0xb48f48
// > SetupAdvFollowPopup::init @ 0xb48fb8
// > SetupAdvFollowPopup::init @ 0xb49024
// > SetupAdvFollowPopup::init @ 0xb49094
// > SetupAdvFollowPopup::init @ 0xb49100
// > SetupAdvFollowPopup::init @ 0xb49200
// > SetupAdvFollowPopup::init @ 0xb4926c
// > SetupAdvFollowPopup::init @ 0xb4958c
// > SetupAdvFollowPopup::init @ 0xb4aa44
// > SetupAdvFollowPopup::init @ 0xb4ace4
// > SetupAdvFollowPopup::init @ 0xb4b540
// > SetupGravityTriggerPopup::init @ 0xb4ff9c
// > SetupGravityTriggerPopup::init @ 0xb50008
// > SetupGravityTriggerPopup::init @ 0xb50074
// > StartPosLayer::init @ 0xb68134
// > StartPosLayer::init @ 0xb68198
// > StartPosLayer::init @ 0xb681fc
// > StartPosLayer::init @ 0xb68260
// > StartPosLayer::init @ 0xb682c4
// > StartPosLayer::init @ 0xb68320
// > StartPosLayer::init @ 0xb6837c
// > StartPosLayer::init @ 0xb683d8
// > StartPosLayer::init @ 0xb68434
// > StartPosLayer::init @ 0xb68490
// > SetupKeyframePopup::init @ 0xb6a188
// > SetupKeyframePopup::init @ 0xb6a618
// > SetupKeyframePopup::init @ 0xb6a698
// > SetupKeyframePopup::init @ 0xb6a718
// > SetupKeyframePopup::init @ 0xb6a798
// > SetupKeyframePopup::init @ 0xb6a818
// > SetupReverbPopup::init @ 0xb6cda8
// > SetupAudioTriggerPopup::addProxVolControls @ 0xb6e0cc
// > SetupAudioTriggerPopup::addProxVolControls @ 0xb6e138
// > SetupAudioTriggerPopup::addProxVolControls @ 0xb6e1a4
// > SetupSFXPopup::init @ 0xb6ea9c
// > SetupSFXPopup::init @ 0xb6eb0c
// > SetupSFXPopup::init @ 0xb6eb80
// > SetupSFXPopup::init @ 0xb6ebec
// > SetupSFXPopup::init @ 0xb6ef80
// > SetupSFXPopup::init @ 0xb6f078
// > SetupSFXPopup::init @ 0xb6f0e4
// > SetupSFXPopup::init @ 0xb6f418
// > SetupSFXEditPopup::init @ 0xb6ff34
// > SetupSFXEditPopup::init @ 0xb6ffa4
// > SetupSFXEditPopup::init @ 0xb70014
// > SetupSFXEditPopup::init @ 0xb70080
// > SetupPlayerControlPopup::init @ 0xb7309c
// > SetupPlayerControlPopup::init @ 0xb73108
// > SetupPlayerControlPopup::init @ 0xb73178
// > SetupPlayerControlPopup::init @ 0xb731e4
// > SetupPlayerControlPopup::init @ 0xb73250
// > SetupPlayerControlPopup::init @ 0xb732bc
// > SetupSpawnParticlePopup::init @ 0xb73e20
// > SetupCheckpointPopup::init @ 0xb74640
// > MultiTriggerPopup::init @ 0xb74ba8
// > UIObjectSettingsPopup::init @ 0xb754a8
// > UIObjectSettingsPopup::init @ 0xb7576c
// > SetupPersistentItemTriggerPopup::init @ 0xb769a4
// > SetupPersistentItemTriggerPopup::init @ 0xb76a34
// > SetupPersistentItemTriggerPopup::init @ 0xb76aa0
// > SetupPersistentItemTriggerPopup::init @ 0xb76b0c
// > SetupForceBlockPopup::init @ 0xb779ec
// > SetupForceBlockPopup::init @ 0xb77a5c
// > SetupProgressPopup::init @ 0xb7866c
// > SetupProgressPopup::init @ 0xb787f4
// > SetupDashRingPopup::init @ 0xb78fe4
// > SetupDashRingPopup::init @ 0xb79050
// > SetupDashRingPopup::init @ 0xb790d8
// > SetupStopTriggerPopup::init @ 0xb797ac
// > SetupAudioLineGuidePopup::init @ 0xb7a1cc
// > SetupSequenceTriggerPopup::init @ 0xb8301c
// > SetupTimerTriggerPopup::init @ 0xbb16ac
// > SetupTimerTriggerPopup::init @ 0xbb18a0
// > SetupTimerTriggerPopup::init @ 0xbb1910
// > SetupTimerTriggerPopup::init @ 0xbb197c
// > SetupTimerEventTriggerPopup::init @ 0xbb2110
// > AutoSaveSettingsLayer::init @ 0xbca4ac
// > AutoSaveSettingsLayer::init @ 0xbca790
// > GridSettingsLayer::onBuildWindowContent @ 0xcdc4a4
// > TouchControlEditLayer::buildHud @ 0xd05668
// > TouchControlEditLayer::buildHud @ 0xd056d0
// > TouchControlEditLayer::buildHud @ 0xd05738
// > TouchControlEditLayer::buildHud @ 0xd057a0
// > TouchControlEditLayer::buildHud @ 0xd05c48
// > ??> @ 0xb5d50
//
// 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::createToggleValueControl(
__int64 a1,
unsigned int a2,
_BYTE *a3,
const cocos2d::CCPoint *a4,
char a5,
unsigned int a6,
signed int a7,
float a8)
{
_BYTE *v15; // x2
__int64 v16; // x0
__int64 v17; // x1
cocos2d::CCArray *ToggleValueControlAdvanced; // x20
_BYTE v21[8]; // [xsp+98h] [xbp+98h] BYREF
_BYTE v22[8]; // [xsp+A0h] [xbp+A0h] BYREF
_BYTE v23[8]; // [xsp+A8h] [xbp+A8h] BYREF
__int64 v24; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v25; // [xsp+B8h] [xbp+B8h]
void *v26; // [xsp+C0h] [xbp+C0h]
if ( a5 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 0.0, 4.0);
v24 = 0;
v15 = a3;
v25 = 0;
v26 = nullptr;
if ( (*a3 & 1) == 0 )
{
LABEL_3:
v16 = *(_QWORD *)v15;
v17 = *((_QWORD *)v15 + 1);
v26 = *((void **)v15 + 2);
v24 = v16;
v25 = v17;
goto LABEL_4;
}
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 8.0, 0.0);
v24 = 0;
v15 = a3;
v25 = 0;
v26 = nullptr;
if ( (*a3 & 1) == 0 )
goto LABEL_3;
}
std::string::__init(&v24, *((void **)v15 + 2), *((_QWORD *)v15 + 1));
LABEL_4:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, a4);
cocos2d::CCPoint::operator*(v21, a8);
ToggleValueControlAdvanced = SetupTriggerPopup::createToggleValueControlAdvanced(
a1,
a2,
(char *)&v24,
(const cocos2d::CCPoint *)v23,
a5,
a6,
a7,
(const cocos2d::CCPoint *)v22,
a8 * 0.7,
a8 * 0.35,
a8 * 110.0);
if ( (v24 & 1) != 0 )
operator delete(v26);
return ToggleValueControlAdvanced;
}