//
// SetupTriggerPopup::createToggleValueControl from 0x10023ab70 to 0x10023ac7e (270 bytes)
//
// 247 xrefs:
// > SetupRotateCommandPopup::init @ 0x100005865
// > SetupRotateCommandPopup::init @ 0x1000058ef
// > SetupRotateCommandPopup::init @ 0x100005981
// > SetupRotateCommandPopup::init @ 0x100005a1d
// > SetupRotateCommandPopup::init @ 0x100005ab9
// > SetupRotateCommandPopup::init @ 0x100005b4a
// > SetupPickupTriggerPopup::init @ 0x10005909c
// > SetupAnimSettingsPopup::init @ 0x10009ae48
// > SetupAnimSettingsPopup::init @ 0x10009aecb
// > SetupAnimSettingsPopup::init @ 0x10009af57
// > SetupAnimSettingsPopup::init @ 0x10009afe9
// > SetupAnimSettingsPopup::init @ 0x10009b06e
// > SetupAnimSettingsPopup::init @ 0x10009b10a
// > SetupAnimSettingsPopup::init @ 0x10009b319
// > SetItemIDLayer::init @ 0x10009c4a2
// > SetItemIDLayer::init @ 0x10009c539
// > SetupKeyframePopup::init @ 0x100200057
// > SetupKeyframePopup::init @ 0x10020066b
// > SetupKeyframePopup::init @ 0x100200719
// > SetupKeyframePopup::init @ 0x1002007c8
// > SetupKeyframePopup::init @ 0x10020086d
// > SetupKeyframePopup::init @ 0x10020091b
// > SetupSpawnPopup::init @ 0x10028f8c0
// > SetupSpawnPopup::init @ 0x10028f957
// > SetupSpawnPopup::init @ 0x10028f9ec
// > EditGameObjectPopup::init @ 0x1002ab445
// > EditGameObjectPopup::init @ 0x1002ab4af
// > UIOptionsLayer::init @ 0x1002b2c25
// > UIOptionsLayer::init @ 0x1002b318e
// > UIOptionsLayer::init @ 0x1002b321d
// > UIOptionsLayer::init @ 0x1002b32ae
// > UIOptionsLayer::init @ 0x1002b334c
// > UIOptionsLayer::init @ 0x1002b3ee9
// > UIOptionsLayer::init @ 0x1002b3f78
// > UIOptionsLayer::init @ 0x1002b4009
// > SetupShaderEffectPopup::init @ 0x1002c6300
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c6c5b
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c6cde
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c6d64
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c6e1f
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c7143
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c71c8
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c7257
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c80c7
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c8146
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c81ce
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c824d
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c82d5
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c835b
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c8416
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c8662
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c86e7
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c8764
// > SetupShaderEffectPopup::setupGlitch @ 0x1002c9110
// > SetupShaderEffectPopup::setupChromatic @ 0x1002c9547
// > SetupShaderEffectPopup::setupChromatic @ 0x1002c95c5
// > SetupShaderEffectPopup::setupChromatic @ 0x1002c966f
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002c9d10
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002c9d94
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002c9e43
// > SetupShaderEffectPopup::setupPixelate @ 0x1002ca2d7
// > SetupShaderEffectPopup::setupPixelate @ 0x1002ca364
// > SetupShaderEffectPopup::setupPixelate @ 0x1002ca3f8
// > SetupShaderEffectPopup::setupPixelate @ 0x1002ca481
// > SetupShaderEffectPopup::setupPixelate @ 0x1002ca52b
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002cac67
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002cacf4
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002cae7a
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002cb4a9
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002cb535
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002cb80e
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002cb898
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cbdbb
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cbe48
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cc163
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cc2c2
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cc34c
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cc3cf
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cc44d
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cc4d6
// > SetupShaderEffectPopup::setupBulge @ 0x1002cca40
// > SetupShaderEffectPopup::setupBulge @ 0x1002ccac7
// > SetupShaderEffectPopup::setupBulge @ 0x1002ccd9a
// > SetupShaderEffectPopup::setupBulge @ 0x1002cce24
// > SetupShaderEffectPopup::setupPinch @ 0x1002cd302
// > SetupShaderEffectPopup::setupPinch @ 0x1002cd386
// > SetupShaderEffectPopup::setupPinch @ 0x1002cd5ee
// > SetupShaderEffectPopup::setupPinch @ 0x1002cd6aa
// > SetupShaderEffectPopup::setupPinch @ 0x1002cd988
// > SetupShaderEffectPopup::setupPinch @ 0x1002cda12
// > SetupShaderEffectPopup::setupGrayscale @ 0x1002cded6
// > SetupShaderEffectPopup::setupGrayscale @ 0x1002cdf53
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002ce7d8
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002ce864
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002ce8f6
// > SetupShaderEffectPopup::setupSplitScreen @ 0x1002cf6f3
// > SetupShaderEffectPopup::setupSplitScreen @ 0x1002cf76b
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002cf9f1
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002cfa75
// > SetupSongTriggerPopup::init @ 0x1002d33b8
// > SetupSongTriggerPopup::init @ 0x1002d3465
// > SetupSongTriggerPopup::init @ 0x1002d37ec
// > SetupSongTriggerPopup::init @ 0x1002d3875
// > SetupAdvFollowPopup::init @ 0x10030594b
// > SetupAdvFollowPopup::init @ 0x1003059d8
// > SetupAdvFollowPopup::init @ 0x100305a5b
// > SetupAdvFollowPopup::init @ 0x100305ade
// > SetupAdvFollowPopup::init @ 0x100305b5a
// > SetupAdvFollowPopup::init @ 0x100305cb7
// > SetupAdvFollowPopup::init @ 0x100305d4b
// > SetupAdvFollowPopup::init @ 0x100306145
// > SetupAdvFollowPopup::init @ 0x10030748c
// > SetupAdvFollowPopup::init @ 0x100307837
// > SetupAdvFollowPopup::init @ 0x1003083dd
// > SetupAdvFollowEditPhysicsPopup::init @ 0x10030aa5f
// > SetupAdvFollowEditPhysicsPopup::init @ 0x10030aaf3
// > SetupAdvFollowEditPhysicsPopup::init @ 0x10030b35b
// > SetupAdvFollowEditPhysicsPopup::init @ 0x10030b3e8
// > SetupAdvFollowRetargetPopup::init @ 0x10030bbb5
// > SetupAdvFollowRetargetPopup::init @ 0x10030bc3f
// > SetupAdvFollowRetargetPopup::init @ 0x10030bcc2
// > SetupAdvFollowRetargetPopup::init @ 0x10030bd47
// > SetupTeleportPopup::init @ 0x10035905e
// > SetupTeleportPopup::init @ 0x1003590ee
// > SetupTeleportPopup::init @ 0x100359174
// > SetupTeleportPopup::init @ 0x1003591fa
// > SetupTeleportPopup::init @ 0x100359291
// > SetupTeleportPopup::init @ 0x100359321
// > SetupTeleportPopup::init @ 0x1003593b8
// > SetupTeleportPopup::init @ 0x100359484
// > SetupTeleportPopup::init @ 0x100359503
// > SetupTeleportPopup::init @ 0x100359aa5
// > SetupTeleportPopup::init @ 0x100359b48
// > SetupTeleportPopup::init @ 0x100359cd8
// > SetupObjectTogglePopup::init @ 0x1003762e2
// > SetupObjectTogglePopup::init @ 0x100376373
// > SetupObjectTogglePopup::init @ 0x100376432
// > SetupObjectTogglePopup::init @ 0x1003764c0
// > SetupObjectTogglePopup::init @ 0x10037658c
// > SetupInstantCollisionTriggerPopup::init @ 0x10039780f
// > SetupInstantCollisionTriggerPopup::init @ 0x10039787b
// > SetupInstantCollisionTriggerPopup::init @ 0x1003978e9
// > SetupStaticCameraPopup::init @ 0x10039b5fd
// > SetupStaticCameraPopup::init @ 0x10039b6ae
// > SetupStaticCameraPopup::init @ 0x10039b95f
// > SetupStaticCameraPopup::init @ 0x10039baa4
// > SetupTimerTriggerPopup::init @ 0x1003a1047
// > SetupTimerTriggerPopup::init @ 0x1003a1340
// > SetupTimerTriggerPopup::init @ 0x1003a13c0
// > SetupTimerTriggerPopup::init @ 0x1003a1447
// > SetupTimerEventTriggerPopup::init @ 0x1003a1c8e
// > SetupEnterEffectPopup::init @ 0x1003f143b
// > SetupEnterEffectPopup::init @ 0x1003f1a53
// > SetupEnterEffectPopup::init @ 0x1003f1ade
// > SetupEnterEffectPopup::init @ 0x1003f1b5b
// > SetupCameraModePopup::init @ 0x1004a92ff
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b72ab
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b732e
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b73ab
// > SetupReverbPopup::init @ 0x1004b7fee
// > SetupSFXPopup::init @ 0x1004b90b5
// > SetupSFXPopup::init @ 0x1004b9132
// > SetupSFXPopup::init @ 0x1004b91b6
// > SetupSFXPopup::init @ 0x1004b9241
// > SetupSFXPopup::init @ 0x1004b9448
// > SetupSFXPopup::init @ 0x1004b959f
// > SetupSFXPopup::init @ 0x1004b9633
// > SetupSFXPopup::init @ 0x1004b9afd
// > SetupSFXEditPopup::init @ 0x1004bb7a0
// > SetupSFXEditPopup::init @ 0x1004bb82d
// > SetupSFXEditPopup::init @ 0x1004bb8c2
// > SetupSFXEditPopup::init @ 0x1004bb95e
// > SetupCameraRotatePopup2::init @ 0x1004bee4f
// > SetupCameraRotatePopup2::init @ 0x1004beed2
// > SetupGravityTriggerPopup::init @ 0x1004c53fa
// > SetupGravityTriggerPopup::init @ 0x1004c547f
// > SetupGravityTriggerPopup::init @ 0x1004c54fa
// > SetupAreaMoveTriggerPopup::init @ 0x1004d29af
// > SetupAreaMoveTriggerPopup::init @ 0x1004d2b06
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004d3cb0
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004d3d39
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004d3dc5
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004d3f1d
// > SetupAreaTintTriggerPopup::init @ 0x1004d88e7
// > SetupAreaTintTriggerPopup::init @ 0x1004d8978
// > SetupAreaTintTriggerPopup::init @ 0x1004d89f6
// > SetupAreaAnimTriggerPopup::init @ 0x1004daffa
// > SetupAreaAnimTriggerPopup::init @ 0x1004db33b
// > SetupAreaAnimTriggerPopup::init @ 0x1004db906
// > SetupSequenceTriggerPopup::init @ 0x1004de5f2
// > SetupInteractObjectPopup::init @ 0x10050e346
// > SetupInteractObjectPopup::init @ 0x10050e485
// > SetupInteractObjectPopup::init @ 0x10050e5a7
// > SetupInteractObjectPopup::init @ 0x10050e6da
// > SetupInteractObjectPopup::init @ 0x10050e8d6
// > SetupTransformPopup::init @ 0x100510d40
// > SetupTransformPopup::init @ 0x100510f88
// > SetupTransformPopup::init @ 0x10051100c
// > SetupTransformPopup::init @ 0x100511369
// > SetupTransformPopup::init @ 0x100511414
// > SetupPlayerControlPopup::init @ 0x10057ae1d
// > SetupPlayerControlPopup::init @ 0x10057aea7
// > SetupPlayerControlPopup::init @ 0x10057af3b
// > SetupPlayerControlPopup::init @ 0x10057afca
// > SetupPlayerControlPopup::init @ 0x10057b059
// > SetupPlayerControlPopup::init @ 0x10057b0df
// > SetupSpawnParticlePopup::init @ 0x10057be4a
// > SetupCheckpointPopup::init @ 0x10057c6c6
// > MultiTriggerPopup::init @ 0x10057cb9e
// > UIObjectSettingsPopup::init @ 0x10057d563
// > UIObjectSettingsPopup::init @ 0x10057d8d8
// > SetupPersistentItemTriggerPopup::init @ 0x1005837db
// > SetupPersistentItemTriggerPopup::init @ 0x100583889
// > SetupPersistentItemTriggerPopup::init @ 0x100583910
// > SetupPersistentItemTriggerPopup::init @ 0x10058399b
// > SetupAudioLineGuidePopup::init @ 0x10058414c
// > SetupForceBlockPopup::init @ 0x10058539e
// > SetupForceBlockPopup::init @ 0x100585422
// > SetupStopTriggerPopup::init @ 0x100586523
// > SetupDashRingPopup::init @ 0x1005874c2
// > SetupDashRingPopup::init @ 0x100587545
// > SetupDashRingPopup::init @ 0x1005875f5
// > SetupGradientPopup::init @ 0x1005f2156
// > SetupGradientPopup::init @ 0x1005f21fc
// > SetupGradientPopup::init @ 0x1005f228c
// > SetupMoveCommandPopup::init @ 0x100607af7
// > SetupMoveCommandPopup::init @ 0x100607b8b
// > SetupMoveCommandPopup::init @ 0x100607caa
// > SetupMoveCommandPopup::init @ 0x100607d3e
// > SetupMoveCommandPopup::init @ 0x100607f7c
// > SetupMoveCommandPopup::init @ 0x100608006
// > SetupMoveCommandPopup::init @ 0x1006082f0
// > SetupMoveCommandPopup::init @ 0x100608393
// > SetupMoveCommandPopup::init @ 0x10060842e
// > SetupMoveCommandPopup::init @ 0x1006084c7
// > SetupMoveCommandPopup::init @ 0x100608752
// > SetupPlatformerEndPopup::init @ 0x10066a1ea
// > SetupPlatformerEndPopup::init @ 0x10066a266
// > SetupPlatformerEndPopup::init @ 0x10066a2de
// > SetupRotateGameplayPopup::init @ 0x100797c83
// > SetupRotateGameplayPopup::init @ 0x100797d08
// > SetupRotateGameplayPopup::init @ 0x100797f38
// > SetupRotateGameplayPopup::init @ 0x100797fcd
// > SetupRotateGameplayPopup::init @ 0x10079823c
// > SetupRotateGameplayPopup::init @ 0x1007982e8
// > SetupGameplayOffsetPopup::init @ 0x100798d69
// > SetupGameplayOffsetPopup::init @ 0x100798df3
//
// 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
//
__int64 __fastcall SetupTriggerPopup::createToggleValueControl(
int a1,
int a2,
__int128 *a3,
float a4,
__int64 a5,
int a6,
int a7,
int a8)
{
unsigned __int8 v8; // r15
__int64 v10; // xmm0_8
__int64 result; // rax
__int64 v12; // rbx
_BYTE v13[8]; // [rsp+10h] [rbp-60h] BYREF
_BYTE v14[8]; // [rsp+18h] [rbp-58h] BYREF
__int128 v15; // [rsp+20h] [rbp-50h] BYREF
void *__p; // [rsp+30h] [rbp-40h]
_BYTE v17[8]; // [rsp+38h] [rbp-38h] BYREF
int v18; // [rsp+40h] [rbp-30h]
float v19; // [rsp+44h] [rbp-2Ch]
v19 = a4;
v18 = a7;
v8 = a6;
if ( a6 )
{
v10 = 0;
sub_10028CBE0(v17, 0.0, 4.0);
if ( (*(_BYTE *)a3 & 1) != 0 )
{
LABEL_3:
sub_100006B70(&v15, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), *(double *)&v10);
goto LABEL_6;
}
}
else
{
v10 = 1090519040;
sub_10028CBE0(v17, 8.0, 0.0);
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
__p = *((void **)a3 + 2);
v15 = *a3;
LABEL_6:
sub_10028CC60(v14);
sub_10028CD40(v13, v17, v19);
result = SetupTriggerPopup::createToggleValueControlAdvanced(
a1,
a2,
(unsigned int)&v15,
(unsigned int)v14,
v8,
v18,
a8,
(__int64)v13);
if ( (v15 & 1) != 0 )
{
v12 = result;
operator delete(__p);
return v12;
}
return result;
}