//
// SetupTriggerPopup::createToggleValueControl from 0x10021fe00 to 0x10021ff0e (270 bytes)
//
// 275 xrefs:
// > SetupRotateCommandPopup::init @ 0x100001afd
// > SetupRotateCommandPopup::init @ 0x100001b80
// > SetupRotateCommandPopup::init @ 0x100001c0b
// > SetupRotateCommandPopup::init @ 0x100001ca0
// > SetupRotateCommandPopup::init @ 0x100001d35
// > SetupRotateCommandPopup::init @ 0x100001dbf
// > SetupPickupTriggerPopup::init @ 0x10001e3a6
// > SetupAnimSettingsPopup::init @ 0x10006213b
// > SetupAnimSettingsPopup::init @ 0x1000621be
// > SetupAnimSettingsPopup::init @ 0x10006224a
// > SetupAnimSettingsPopup::init @ 0x1000622dc
// > SetupAnimSettingsPopup::init @ 0x100062361
// > SetupAnimSettingsPopup::init @ 0x1000623fd
// > SetupAnimSettingsPopup::init @ 0x10006260c
// > sub_100063390 @ 0x10006367f
// > sub_100063390 @ 0x10006370f
// > SetupKeyframePopup::init @ 0x1001e2939
// > SetupKeyframePopup::init @ 0x1001e2ee6
// > SetupKeyframePopup::init @ 0x1001e2f93
// > SetupKeyframePopup::init @ 0x1001e3041
// > SetupKeyframePopup::init @ 0x1001e30e5
// > SetupKeyframePopup::init @ 0x1001e3192
// > StartPosLayer::init @ 0x10025c8a4
// > StartPosLayer::init @ 0x10025c927
// > StartPosLayer::init @ 0x10025c9aa
// > StartPosLayer::init @ 0x10025ca36
// > StartPosLayer::init @ 0x10025cab9
// > StartPosLayer::init @ 0x10025cb4f
// > StartPosLayer::init @ 0x10025cbcf
// > StartPosLayer::init @ 0x10025cc47
// > StartPosLayer::init @ 0x10025ccc4
// > StartPosLayer::init @ 0x10025cd43
// > sub_100272600 @ 0x1002728f0
// > SetupSpawnPopup::init @ 0x10027adf1
// > SetupSpawnPopup::init @ 0x10027ae88
// > SetupSpawnPopup::init @ 0x10027af17
// > EditGameObjectPopup::init @ 0x100297948
// > EditGameObjectPopup::init @ 0x1002979b2
// > UIOptionsLayer::init @ 0x1002a0888
// > UIOptionsLayer::init @ 0x1002a0df1
// > UIOptionsLayer::init @ 0x1002a0e80
// > UIOptionsLayer::init @ 0x1002a0f11
// > UIOptionsLayer::init @ 0x1002a0faf
// > UIOptionsLayer::init @ 0x1002a1b4c
// > UIOptionsLayer::init @ 0x1002a1bdb
// > UIOptionsLayer::init @ 0x1002a1c6c
// > SetupCountTriggerPopup::init @ 0x1002a9814
// > SetupCountTriggerPopup::init @ 0x1002a9896
// > SetupShaderEffectPopup::init @ 0x1002b2fd3
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b392b
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b39ae
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b3a34
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b3aef
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b3dd6
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b3e54
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b3edc
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b4d97
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b4e16
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b4e9e
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b4f1d
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b4fa5
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b502b
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b50e6
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b52fe
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b537c
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b53f5
// > SetupShaderEffectPopup::setupGlitch @ 0x1002b5de0
// > SetupShaderEffectPopup::setupChromatic @ 0x1002b6217
// > SetupShaderEffectPopup::setupChromatic @ 0x1002b6295
// > SetupShaderEffectPopup::setupChromatic @ 0x1002b633f
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002b69e0
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002b6a64
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002b6b13
// > SetupShaderEffectPopup::setupPixelate @ 0x1002b6fa7
// > SetupShaderEffectPopup::setupPixelate @ 0x1002b7034
// > SetupShaderEffectPopup::setupPixelate @ 0x1002b70c8
// > SetupShaderEffectPopup::setupPixelate @ 0x1002b7151
// > SetupShaderEffectPopup::setupPixelate @ 0x1002b71fb
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002b7910
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002b7996
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002b7b11
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002b8195
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002b821d
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002b84b1
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002b8534
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b8a8f
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b8b15
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b8e25
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b8f47
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b8fca
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b9046
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b90c0
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b9142
// > SetupShaderEffectPopup::setupBulge @ 0x1002b9704
// > SetupShaderEffectPopup::setupBulge @ 0x1002b9796
// > SetupShaderEffectPopup::setupBulge @ 0x1002b9a27
// > SetupShaderEffectPopup::setupBulge @ 0x1002b9aaa
// > SetupShaderEffectPopup::setupPinch @ 0x1002b9fd2
// > SetupShaderEffectPopup::setupPinch @ 0x1002ba056
// > SetupShaderEffectPopup::setupPinch @ 0x1002ba2ba
// > SetupShaderEffectPopup::setupPinch @ 0x1002ba372
// > SetupShaderEffectPopup::setupPinch @ 0x1002ba60b
// > SetupShaderEffectPopup::setupPinch @ 0x1002ba68e
// > SetupShaderEffectPopup::setupGrayscale @ 0x1002baba6
// > SetupShaderEffectPopup::setupGrayscale @ 0x1002bac23
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002bb4a8
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002bb534
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002bb5c6
// > SetupShaderEffectPopup::setupSplitScreen @ 0x1002bc3c3
// > SetupShaderEffectPopup::setupSplitScreen @ 0x1002bc43b
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002bc6c1
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002bc745
// > SetupSongTriggerPopup::init @ 0x1002bff5b
// > SetupSongTriggerPopup::init @ 0x1002c0008
// > SetupSongTriggerPopup::init @ 0x1002c038f
// > SetupSongTriggerPopup::init @ 0x1002c0418
// > SetupAdvFollowPopup::init @ 0x1002f04ce
// > SetupAdvFollowPopup::init @ 0x1002f055b
// > SetupAdvFollowPopup::init @ 0x1002f05de
// > SetupAdvFollowPopup::init @ 0x1002f0661
// > SetupAdvFollowPopup::init @ 0x1002f06dd
// > SetupAdvFollowPopup::init @ 0x1002f083a
// > SetupAdvFollowPopup::init @ 0x1002f08ce
// > SetupAdvFollowPopup::init @ 0x1002f0cc8
// > SetupAdvFollowPopup::init @ 0x1002f1fa5
// > SetupAdvFollowPopup::init @ 0x1002f2350
// > SetupAdvFollowPopup::init @ 0x1002f2efc
// > sub_1002F5170 @ 0x1002f54b3
// > sub_1002F5170 @ 0x1002f553b
// > sub_1002F5170 @ 0x1002f5d0b
// > sub_1002F5170 @ 0x1002f5d94
// > sub_1002F6130 @ 0x1002f64bd
// > sub_1002F6130 @ 0x1002f6540
// > sub_1002F6130 @ 0x1002f65b9
// > sub_1002F6130 @ 0x1002f663a
// > SetupTeleportPopup::init @ 0x10034461e
// > SetupTeleportPopup::init @ 0x1003446ae
// > SetupTeleportPopup::init @ 0x100344734
// > SetupTeleportPopup::init @ 0x1003447ba
// > SetupTeleportPopup::init @ 0x100344851
// > SetupTeleportPopup::init @ 0x1003448e1
// > SetupTeleportPopup::init @ 0x100344978
// > SetupTeleportPopup::init @ 0x100344a44
// > SetupTeleportPopup::init @ 0x100344ac3
// > SetupTeleportPopup::init @ 0x100345053
// > SetupTeleportPopup::init @ 0x1003450f6
// > SetupTeleportPopup::init @ 0x100345286
// > SetupObjectTogglePopup::init @ 0x10035f699
// > SetupObjectTogglePopup::init @ 0x10035f72a
// > SetupObjectTogglePopup::init @ 0x10035f7b8
// > SetupObjectTogglePopup::init @ 0x10035f884
// > SetupObjectTogglePopup::init @ 0x10035f91a
// > SetupCollisionTriggerPopup::init @ 0x100380748
// > SetupCollisionTriggerPopup::init @ 0x1003807bc
// > SetupCollisionTriggerPopup::init @ 0x100380838
// > SetupCollisionTriggerPopup::init @ 0x1003808c3
// > SetupCollisionTriggerPopup::init @ 0x10038094b
// > SetupInstantCollisionTriggerPopup::init @ 0x100381347
// > SetupInstantCollisionTriggerPopup::init @ 0x1003813af
// > SetupInstantCollisionTriggerPopup::init @ 0x100381419
// > SetupTransformPopup::init @ 0x100384f60
// > SetupTransformPopup::init @ 0x100385011
// > SetupTransformPopup::init @ 0x10038528e
// > SetupTransformPopup::init @ 0x1003853d2
// > sub_10038A630 @ 0x10038a9ca
// > sub_10038A630 @ 0x10038ac61
// > sub_10038A630 @ 0x10038ace4
// > sub_10038A630 @ 0x10038ad6b
// > sub_10038AFD0 @ 0x10038b416
// > sub_1003DDDD0 @ 0x1003de79e
// > sub_1003DDDD0 @ 0x1003dedb6
// > sub_1003DDDD0 @ 0x1003dee41
// > sub_1003DDDD0 @ 0x1003deebe
// > SetupCameraModePopup::init @ 0x1004a21a2
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b042c
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b04af
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b052c
// > SetupReverbPopup::init @ 0x1004b1021
// > SetupSFXPopup::init @ 0x1004b1fdf
// > SetupSFXPopup::init @ 0x1004b205c
// > SetupSFXPopup::init @ 0x1004b20e9
// > SetupSFXPopup::init @ 0x1004b2174
// > SetupSFXPopup::init @ 0x1004b24d8
// > SetupSFXPopup::init @ 0x1004b262f
// > SetupSFXPopup::init @ 0x1004b26bd
// > SetupSFXPopup::init @ 0x1004b2ac2
// > SetupSFXEditPopup::init @ 0x1004b48d6
// > SetupSFXEditPopup::init @ 0x1004b4963
// > SetupSFXEditPopup::init @ 0x1004b49f8
// > SetupSFXEditPopup::init @ 0x1004b4a94
// > sub_1004B7A70 @ 0x1004b7d52
// > sub_1004B7A70 @ 0x1004b7dd5
// > SetupGravityTriggerPopup::init @ 0x1004bf6cd
// > SetupGravityTriggerPopup::init @ 0x1004bf752
// > SetupGravityTriggerPopup::init @ 0x1004bf7cd
// > SetupAreaMoveTriggerPopup::init @ 0x1004ce3f2
// > SetupAreaMoveTriggerPopup::init @ 0x1004ce549
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004cf59a
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004cf623
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004cf6af
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004cf807
// > SetupAreaTintTriggerPopup::init @ 0x1004d3c4a
// > SetupAreaTintTriggerPopup::init @ 0x1004d3cdb
// > SetupAreaTintTriggerPopup::init @ 0x1004d3d59
// > SetupAreaAnimTriggerPopup::init @ 0x1004d60aa
// > SetupAreaAnimTriggerPopup::init @ 0x1004d63f1
// > SetupAreaAnimTriggerPopup::init @ 0x1004d69b9
// > SetupSequenceTriggerPopup::init @ 0x1004d95f6
// > sub_10050F430 @ 0x10050f645
// > sub_10050F430 @ 0x10050f74f
// > sub_10050F430 @ 0x10050f7e1
// > sub_10050F430 @ 0x10050f8db
// > sub_10050F430 @ 0x10050fae9
// > sub_100511B80 @ 0x100511dcc
// > sub_100511B80 @ 0x100512005
// > sub_100511B80 @ 0x100512088
// > sub_100511B80 @ 0x100512357
// > sub_100511B80 @ 0x1005123fb
// > SetupPlayerControlPopup::init @ 0x1005a7ff0
// > SetupPlayerControlPopup::init @ 0x1005a807a
// > SetupPlayerControlPopup::init @ 0x1005a810e
// > SetupPlayerControlPopup::init @ 0x1005a819d
// > SetupPlayerControlPopup::init @ 0x1005a822c
// > SetupPlayerControlPopup::init @ 0x1005a82b2
// > sub_1005A84B0 @ 0x1005a8e5d
// > SetupCheckpointPopup::init @ 0x1005a95ee
// > MultiTriggerPopup::init @ 0x1005a9991
// > UIObjectSettingsPopup::init @ 0x1005aa1c8
// > UIObjectSettingsPopup::init @ 0x1005aa543
// > SetupPersistentItemTriggerPopup::init @ 0x1005afd17
// > SetupPersistentItemTriggerPopup::init @ 0x1005afdc5
// > SetupPersistentItemTriggerPopup::init @ 0x1005afe4c
// > SetupPersistentItemTriggerPopup::init @ 0x1005afed7
// > SetupAudioLineGuidePopup::init @ 0x1005b05bf
// > SetupForceBlockPopup::init @ 0x1005b15d1
// > SetupForceBlockPopup::init @ 0x1005b1655
// > SetupStopTriggerPopup::init @ 0x1005b250a
// > sub_1005B2E60 @ 0x1005b3062
// > sub_1005B2E60 @ 0x1005b323a
// > SetupDashRingPopup::init @ 0x1005b39c5
// > SetupDashRingPopup::init @ 0x1005b3a48
// > SetupDashRingPopup::init @ 0x1005b3af8
// > AutoSaveSettingsLayer::init @ 0x1005bc877
// > AutoSaveSettingsLayer::init @ 0x1005bcbe8
// > sub_1006C4830 @ 0x1006c5096
// > sub_1006C4830 @ 0x1006c513c
// > sub_1006C4830 @ 0x1006c51d0
// > SetupMoveCommandPopup::init @ 0x1006df452
// > SetupMoveCommandPopup::init @ 0x1006df4df
// > SetupMoveCommandPopup::init @ 0x1006df5f0
// > SetupMoveCommandPopup::init @ 0x1006df67d
// > SetupMoveCommandPopup::init @ 0x1006df82e
// > SetupMoveCommandPopup::init @ 0x1006df8b1
// > SetupMoveCommandPopup::init @ 0x1006dfb7f
// > SetupMoveCommandPopup::init @ 0x1006dfc1b
// > SetupMoveCommandPopup::init @ 0x1006dfcaf
// > SetupMoveCommandPopup::init @ 0x1006dfd44
// > SetupMoveCommandPopup::init @ 0x1006dff9c
// > SetupPlatformerEndPopup::init @ 0x100749052
// > SetupPlatformerEndPopup::init @ 0x1007490cd
// > SetupPlatformerEndPopup::init @ 0x100749141
// > SetupRotateGameplayPopup::init @ 0x100878566
// > SetupRotateGameplayPopup::init @ 0x1008785eb
// > SetupRotateGameplayPopup::init @ 0x10087881b
// > SetupRotateGameplayPopup::init @ 0x1008788b0
// > SetupRotateGameplayPopup::init @ 0x100878b1f
// > SetupRotateGameplayPopup::init @ 0x100878bcb
// > SetupGameplayOffsetPopup::init @ 0x10087952c
// > SetupGameplayOffsetPopup::init @ 0x1008795b6
// > GridSettingsLayer::onBuildWindowContent @ 0x100908671
// > TouchControlEditLayer::buildHud @ 0x1009788d9
// > TouchControlEditLayer::buildHud @ 0x10097895b
// > TouchControlEditLayer::buildHud @ 0x1009789e4
// > TouchControlEditLayer::buildHud @ 0x100978a6d
// > TouchControlEditLayer::buildHud @ 0x100978aff
//
// 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 12:27:03 +0000
//
__int64 __fastcall SetupTriggerPopup::createToggleValueControl(
int a1,
int a2,
__int128 *a3,
__int64 a4,
int a5,
int a6,
float a7,
int a8)
{
unsigned __int8 v8; // r15
__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 = a7;
v18 = a6;
v8 = a5;
if ( a5 )
{
sub_100278250(v17, 0.0, 4.0);
if ( (*(_BYTE *)a3 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(&v15, *((const void **)a3 + 2), *((_QWORD *)a3 + 1));
goto LABEL_6;
}
}
else
{
sub_100278250(v17, 8.0, 0.0);
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
__p = *((void **)a3 + 2);
v15 = *a3;
LABEL_6:
sub_1002782D0(v14, a4);
sub_1002783B0(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;
}