//
// SetupTriggerPopup::createToggleValueControl from 0x542514 to 0x5425e2 (206 bytes)
//
// 247 xrefs:
// > EditGameObjectPopup::init @ 0x4af59a
// > EditGameObjectPopup::init @ 0x4af5c4
// > UIOptionsLayer::init @ 0x4b210e
// > UIOptionsLayer::init @ 0x4b23c0
// > UIOptionsLayer::init @ 0x4b241a
// > UIOptionsLayer::init @ 0x4b246a
// > UIOptionsLayer::init @ 0x4b24bc
// > UIOptionsLayer::init @ 0x4b2b1a
// > UIOptionsLayer::init @ 0x4b2b6a
// > UIOptionsLayer::init @ 0x4b2bb8
// > SetupMoveCommandPopup::init @ 0x4b9096
// > SetupMoveCommandPopup::init @ 0x4b90da
// > SetupMoveCommandPopup::init @ 0x4b91c8
// > SetupMoveCommandPopup::init @ 0x4b9218
// > SetupMoveCommandPopup::init @ 0x4b9320
// > SetupMoveCommandPopup::init @ 0x4b9362
// > SetupMoveCommandPopup::init @ 0x4b9524
// > SetupMoveCommandPopup::init @ 0x4b9568
// > SetupMoveCommandPopup::init @ 0x4b95ac
// > SetupMoveCommandPopup::init @ 0x4b95f0
// > SetupMoveCommandPopup::init @ 0x4b9750
// > SetupObjectTogglePopup::init @ 0x4bb9a0
// > SetupObjectTogglePopup::init @ 0x4bbad8
// > SetupObjectTogglePopup::init @ 0x4bbb6c
// > SetupObjectTogglePopup::init @ 0x4bbbac
// > SetupObjectTogglePopup::init @ 0x4bbc1a
// > SetupSpawnPopup::init @ 0x4bc730
// > SetupSpawnPopup::init @ 0x4bc772
// > SetupSpawnPopup::init @ 0x4bc7b4
// > SetupRotateCommandPopup::init @ 0x4e0f88
// > SetupRotateCommandPopup::init @ 0x4e0fcc
// > SetupRotateCommandPopup::init @ 0x4e100c
// > SetupRotateCommandPopup::init @ 0x4e10c8
// > SetupRotateCommandPopup::init @ 0x4e110e
// > SetupRotateCommandPopup::init @ 0x4e1158
// > SetItemIDLayer::init @ 0x4f2528
// > SetItemIDLayer::init @ 0x4f2568
// > SetupAnimSettingsPopup::init @ 0x4f3cce
// > SetupAnimSettingsPopup::init @ 0x4f3d0c
// > SetupAnimSettingsPopup::init @ 0x4f3d4a
// > SetupAnimSettingsPopup::init @ 0x4f3d88
// > SetupAnimSettingsPopup::init @ 0x4f3dc6
// > SetupAnimSettingsPopup::init @ 0x4f3e04
// > SetupAnimSettingsPopup::init @ 0x4f3efe
// > SetupInstantCollisionTriggerPopup::init @ 0x4f5606
// > SetupInstantCollisionTriggerPopup::init @ 0x4f5646
// > SetupInstantCollisionTriggerPopup::init @ 0x4f5686
// > SetupInteractObjectPopup::init @ 0x4f6f48
// > SetupInteractObjectPopup::init @ 0x4f6fe6
// > SetupInteractObjectPopup::init @ 0x4f707a
// > SetupInteractObjectPopup::init @ 0x4f7108
// > SetupInteractObjectPopup::init @ 0x4f7282
// > SetupPickupTriggerPopup::init @ 0x4f88f8
// > SetupStaticCameraPopup::init @ 0x503f5c
// > SetupStaticCameraPopup::init @ 0x503fb8
// > SetupStaticCameraPopup::init @ 0x5040fc
// > SetupStaticCameraPopup::init @ 0x504208
// > SetupPlatformerEndPopup::init @ 0x50673a
// > SetupPlatformerEndPopup::init @ 0x50677a
// > SetupPlatformerEndPopup::init @ 0x5067bc
// > SetupTransformPopup::init @ 0x5246c8
// > SetupTransformPopup::init @ 0x5247be
// > SetupTransformPopup::init @ 0x5247fc
// > SetupTransformPopup::init @ 0x5249fe
// > SetupTransformPopup::init @ 0x524a5c
// > SetupSongTriggerPopup::init @ 0x5252f2
// > SetupSongTriggerPopup::init @ 0x52534c
// > SetupSongTriggerPopup::init @ 0x52552c
// > SetupSongTriggerPopup::init @ 0x5255ce
// > SetupCameraRotatePopup2::init @ 0x527720
// > SetupCameraRotatePopup2::init @ 0x527760
// > SetupRotateGameplayPopup::init @ 0x549a7a
// > SetupRotateGameplayPopup::init @ 0x549abc
// > SetupRotateGameplayPopup::init @ 0x549bba
// > SetupRotateGameplayPopup::init @ 0x549bfa
// > SetupRotateGameplayPopup::init @ 0x549dd4
// > SetupRotateGameplayPopup::init @ 0x549e3e
// > SetupGameplayOffsetPopup::init @ 0x54a1d8
// > SetupGameplayOffsetPopup::init @ 0x54a216
// > SetupTeleportPopup::init @ 0x54a82c
// > SetupTeleportPopup::init @ 0x54a86c
// > SetupTeleportPopup::init @ 0x54a8ac
// > SetupTeleportPopup::init @ 0x54a8ec
// > SetupTeleportPopup::init @ 0x54a92c
// > SetupTeleportPopup::init @ 0x54a96c
// > SetupTeleportPopup::init @ 0x54a9ac
// > SetupTeleportPopup::init @ 0x54aaa4
// > SetupTeleportPopup::init @ 0x54aad0
// > SetupTeleportPopup::init @ 0x54ad0c
// > SetupTeleportPopup::init @ 0x54ad4e
// > SetupTeleportPopup::init @ 0x54ae22
// > SetupGradientPopup::init @ 0x551106
// > SetupGradientPopup::init @ 0x551168
// > SetupGradientPopup::init @ 0x5511a8
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x551fdc
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x552028
// > SetupShaderEffectPopup::setupShockWave @ 0x552768
// > SetupShaderEffectPopup::setupShockWave @ 0x5527ae
// > SetupShaderEffectPopup::setupShockWave @ 0x5527ee
// > SetupShaderEffectPopup::setupShockWave @ 0x552868
// > SetupShaderEffectPopup::setupShockWave @ 0x5529ea
// > SetupShaderEffectPopup::setupShockWave @ 0x552a2c
// > SetupShaderEffectPopup::setupShockWave @ 0x552a72
// > SetupShaderEffectPopup::setupShockLine @ 0x5531cc
// > SetupShaderEffectPopup::setupShockLine @ 0x553212
// > SetupShaderEffectPopup::setupShockLine @ 0x553252
// > SetupShaderEffectPopup::setupShockLine @ 0x553290
// > SetupShaderEffectPopup::setupShockLine @ 0x5532ce
// > SetupShaderEffectPopup::setupShockLine @ 0x55330e
// > SetupShaderEffectPopup::setupShockLine @ 0x553380
// > SetupShaderEffectPopup::setupShockLine @ 0x5534a4
// > SetupShaderEffectPopup::setupShockLine @ 0x5534e8
// > SetupShaderEffectPopup::setupShockLine @ 0x5535a0
// > SetupShaderEffectPopup::setupGlitch @ 0x5539e8
// > SetupShaderEffectPopup::setupChromatic @ 0x553c2c
// > SetupShaderEffectPopup::setupChromatic @ 0x553c6a
// > SetupShaderEffectPopup::setupChromatic @ 0x553cdc
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x554036
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x554074
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x5540e8
// > SetupShaderEffectPopup::setupPixelate @ 0x554378
// > SetupShaderEffectPopup::setupPixelate @ 0x5543b6
// > SetupShaderEffectPopup::setupPixelate @ 0x5543f4
// > SetupShaderEffectPopup::setupPixelate @ 0x554434
// > SetupShaderEffectPopup::setupPixelate @ 0x5544a6
// > SetupShaderEffectPopup::setupLensCircle @ 0x554876
// > SetupShaderEffectPopup::setupLensCircle @ 0x5548b6
// > SetupShaderEffectPopup::setupLensCircle @ 0x5549f8
// > SetupShaderEffectPopup::setupRadialBlur @ 0x554cea
// > SetupShaderEffectPopup::setupRadialBlur @ 0x554d2a
// > SetupShaderEffectPopup::setupRadialBlur @ 0x554eec
// > SetupShaderEffectPopup::setupRadialBlur @ 0x554f2c
// > SetupShaderEffectPopup::setupMotionBlur @ 0x5551a6
// > SetupShaderEffectPopup::setupMotionBlur @ 0x5551e4
// > SetupShaderEffectPopup::setupMotionBlur @ 0x55536c
// > SetupShaderEffectPopup::setupMotionBlur @ 0x55548e
// > SetupShaderEffectPopup::setupMotionBlur @ 0x5554cc
// > SetupShaderEffectPopup::setupMotionBlur @ 0x55550a
// > SetupShaderEffectPopup::setupMotionBlur @ 0x55554a
// > SetupShaderEffectPopup::setupMotionBlur @ 0x55558a
// > SetupShaderEffectPopup::setupBulge @ 0x555822
// > SetupShaderEffectPopup::setupBulge @ 0x555872
// > SetupShaderEffectPopup::setupBulge @ 0x5559c8
// > SetupShaderEffectPopup::setupBulge @ 0x555a08
// > SetupShaderEffectPopup::setupPinch @ 0x555cea
// > SetupShaderEffectPopup::setupPinch @ 0x555d2a
// > SetupShaderEffectPopup::setupPinch @ 0x555e50
// > SetupShaderEffectPopup::setupPinch @ 0x555eba
// > SetupShaderEffectPopup::setupPinch @ 0x556082
// > SetupShaderEffectPopup::setupPinch @ 0x5560c2
// > SetupShaderEffectPopup::setupGrayscale @ 0x556318
// > SetupShaderEffectPopup::setupGrayscale @ 0x556356
// > SetupShaderEffectPopup::setupInvertColor @ 0x556808
// > SetupShaderEffectPopup::setupInvertColor @ 0x556844
// > SetupShaderEffectPopup::setupInvertColor @ 0x556880
// > SetupShaderEffectPopup::setupSplitScreen @ 0x557062
// > SetupShaderEffectPopup::setupSplitScreen @ 0x5570a0
// > SetupShaderEffectPopup::init @ 0x5572dc
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x558820
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x558856
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x55889a
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x5589a6
// > SetupAreaMoveTriggerPopup::init @ 0x5591f0
// > SetupAreaMoveTriggerPopup::init @ 0x55929c
// > SetupAreaTintTriggerPopup::init @ 0x55a9dc
// > SetupAreaTintTriggerPopup::init @ 0x55aa1a
// > SetupAreaTintTriggerPopup::init @ 0x55aa5c
// > SetupAreaAnimTriggerPopup::init @ 0x55b726
// > SetupAreaAnimTriggerPopup::init @ 0x55b936
// > SetupAreaAnimTriggerPopup::init @ 0x55beac
// > SetupEnterEffectPopup::init @ 0x55cbb4
// > SetupEnterEffectPopup::init @ 0x55d272
// > SetupEnterEffectPopup::init @ 0x55d2b2
// > SetupEnterEffectPopup::init @ 0x55d2fa
// > SetupCameraModePopup::init @ 0x55e3e8
// > SetupAdvFollowPopup::init @ 0x55f668
// > SetupAdvFollowPopup::init @ 0x55f6aa
// > SetupAdvFollowPopup::init @ 0x55f6ea
// > SetupAdvFollowPopup::init @ 0x55f72a
// > SetupAdvFollowPopup::init @ 0x55f76a
// > SetupAdvFollowPopup::init @ 0x55f884
// > SetupAdvFollowPopup::init @ 0x55f8c6
// > SetupAdvFollowPopup::init @ 0x55fabe
// > SetupAdvFollowPopup::init @ 0x56047c
// > SetupAdvFollowPopup::init @ 0x56069c
// > SetupAdvFollowPopup::init @ 0x560d0e
// > SetupAdvFollowEditPhysicsPopup::init @ 0x561962
// > SetupAdvFollowEditPhysicsPopup::init @ 0x5619a4
// > SetupAdvFollowEditPhysicsPopup::init @ 0x561df0
// > SetupAdvFollowEditPhysicsPopup::init @ 0x561e32
// > SetupAdvFollowRetargetPopup::init @ 0x56215e
// > SetupAdvFollowRetargetPopup::init @ 0x56219c
// > SetupAdvFollowRetargetPopup::init @ 0x5621da
// > SetupAdvFollowRetargetPopup::init @ 0x56221c
// > SetupGravityTriggerPopup::init @ 0x563f18
// > SetupGravityTriggerPopup::init @ 0x563f56
// > SetupGravityTriggerPopup::init @ 0x563f94
// > SetupKeyframePopup::init @ 0x573cfc
// > SetupKeyframePopup::init @ 0x5740a6
// > SetupKeyframePopup::init @ 0x57410c
// > SetupKeyframePopup::init @ 0x57416a
// > SetupKeyframePopup::init @ 0x5741cc
// > SetupKeyframePopup::init @ 0x57422a
// > SetupAudioTriggerPopup::addProxVolControls @ 0x5757ce
// > SetupAudioTriggerPopup::addProxVolControls @ 0x57580c
// > SetupAudioTriggerPopup::addProxVolControls @ 0x575850
// > SetupReverbPopup::init @ 0x575cf6
// > SetupSFXPopup::init @ 0x57657c
// > SetupSFXPopup::init @ 0x5765be
// > SetupSFXPopup::init @ 0x576600
// > SetupSFXPopup::init @ 0x576642
// > SetupSFXPopup::init @ 0x576790
// > SetupSFXPopup::init @ 0x57683a
// > SetupSFXPopup::init @ 0x57687c
// > SetupSFXPopup::init @ 0x576b3e
// > SetupSFXEditPopup::init @ 0x57720c
// > SetupSFXEditPopup::init @ 0x577254
// > SetupSFXEditPopup::init @ 0x57729a
// > SetupSFXEditPopup::init @ 0x5772da
// > SetupPlayerControlPopup::init @ 0x578836
// > SetupPlayerControlPopup::init @ 0x578874
// > SetupPlayerControlPopup::init @ 0x5788b4
// > SetupPlayerControlPopup::init @ 0x5788f4
// > SetupPlayerControlPopup::init @ 0x578934
// > SetupPlayerControlPopup::init @ 0x578974
// > SetupSpawnParticlePopup::init @ 0x579012
// > SetupCheckpointPopup::init @ 0x579368
// > MultiTriggerPopup::init @ 0x57959c
// > UIObjectSettingsPopup::init @ 0x579aa4
// > UIObjectSettingsPopup::init @ 0x579c6a
// > SetupPersistentItemTriggerPopup::init @ 0x57ce12
// > SetupPersistentItemTriggerPopup::init @ 0x57ce7a
// > SetupPersistentItemTriggerPopup::init @ 0x57cebc
// > SetupPersistentItemTriggerPopup::init @ 0x57cefe
// > SetupAudioLineGuidePopup::init @ 0x57d28a
// > SetupForceBlockPopup::init @ 0x57db44
// > SetupForceBlockPopup::init @ 0x57db92
// > SetupStopTriggerPopup::init @ 0x57e3be
// > SetupDashRingPopup::init @ 0x57eace
// > SetupDashRingPopup::init @ 0x57eb0e
// > SetupDashRingPopup::init @ 0x57eb78
// > SetupSequenceTriggerPopup::init @ 0x580c80
// > SetupTimerTriggerPopup::init @ 0x593db6
// > SetupTimerTriggerPopup::init @ 0x593f10
// > SetupTimerTriggerPopup::init @ 0x593fc8
// > SetupTimerTriggerPopup::init @ 0x594008
// > SetupTimerEventTriggerPopup::init @ 0x594348
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCArray *__fastcall SetupTriggerPopup::createToggleValueControl(
SetupTriggerPopup *a1,
intptr_t a2,
int a3,
const cocos2d::CCPoint *a4,
char a5,
int a6,
int a7,
float a8)
{
float v11; // r1
float v12; // r2
cocos2d::CCArray *v13; // r6
_BYTE v15[4]; // [sp+20h] [bp-4h] BYREF
cocos2d::CCPoint v16; // [sp+24h] [bp+0h] BYREF
cocos2d::CCPoint v17; // [sp+2Ch] [bp+8h] BYREF
cocos2d::CCPoint v18; // [sp+34h] [bp+10h] BYREF
if ( a5 )
{
v11 = 0.0;
v12 = 4.0;
}
else
{
v11 = 8.0;
v12 = 0.0;
}
cocos2d::CCPoint::CCPoint(&v16, v11, v12);
sub_775C20(v15);
cocos2d::CCPoint::CCPoint(&v18, a4);
cocos2d::CCPoint::operator*(&v17, &v16, LODWORD(a8));
v13 = SetupTriggerPopup::createToggleValueControlAdvanced(
a1,
a2,
(int)v15,
&v18,
a5,
a6,
a7,
a8 * 0.7,
a8 * 0.35,
a8 * 110.0,
&v17);
sub_774008(v15);
return v13;
}