//
// SetupTriggerPopup::createToggleValueControl from 0x100131bfc to 0x100131d20 (292 bytes)
//
// 247 xrefs:
// > SetupTeleportPopup::init @ 0x10000b584
// > SetupTeleportPopup::init @ 0x10000b5e8
// > SetupTeleportPopup::init @ 0x10000b650
// > SetupTeleportPopup::init @ 0x10000b6b8
// > SetupTeleportPopup::init @ 0x10000b720
// > SetupTeleportPopup::init @ 0x10000b788
// > SetupTeleportPopup::init @ 0x10000b7f0
// > SetupTeleportPopup::init @ 0x10000b888
// > SetupTeleportPopup::init @ 0x10000b8d8
// > SetupTeleportPopup::init @ 0x10000bba4
// > SetupTeleportPopup::init @ 0x10000bc0c
// > SetupTeleportPopup::init @ 0x10000bd28
// > SetupTimerTriggerPopup::init @ 0x10002d63c
// > SetupTimerTriggerPopup::init @ 0x10002d838
// > SetupTimerTriggerPopup::init @ 0x10002d8a0
// > SetupTimerTriggerPopup::init @ 0x10002d90c
// > SetupTimerEventTriggerPopup::init @ 0x10002de4c
// > SetupAreaMoveTriggerPopup::init @ 0x1000347ac
// > SetupAreaMoveTriggerPopup::init @ 0x1000348a8
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1000355b4
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x100035608
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x100035670
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x100035778
// > SetupAreaTintTriggerPopup::init @ 0x100037f78
// > SetupAreaTintTriggerPopup::init @ 0x100037fe0
// > SetupAreaTintTriggerPopup::init @ 0x10003804c
// > SetupAreaAnimTriggerPopup::init @ 0x10003959c
// > SetupAreaAnimTriggerPopup::init @ 0x100039748
// > SetupAreaAnimTriggerPopup::init @ 0x100039e00
// > SetupPickupTriggerPopup::init @ 0x100043720
// > SetupCameraRotatePopup2::init @ 0x10004c504
// > SetupCameraRotatePopup2::init @ 0x10004c56c
// > SetupAdvFollowPopup::init @ 0x1000600ec
// > SetupAdvFollowPopup::init @ 0x100060158
// > SetupAdvFollowPopup::init @ 0x1000601c0
// > SetupAdvFollowPopup::init @ 0x10006022c
// > SetupAdvFollowPopup::init @ 0x100060298
// > SetupAdvFollowPopup::init @ 0x100060394
// > SetupAdvFollowPopup::init @ 0x100060400
// > SetupAdvFollowPopup::init @ 0x1000606f8
// > SetupAdvFollowPopup::init @ 0x100061364
// > SetupAdvFollowPopup::init @ 0x1000615ec
// > SetupAdvFollowPopup::init @ 0x100061e08
// > SetupAdvFollowEditPhysicsPopup::init @ 0x100063aec
// > SetupAdvFollowEditPhysicsPopup::init @ 0x100063b54
// > SetupAdvFollowEditPhysicsPopup::init @ 0x100064148
// > SetupAdvFollowEditPhysicsPopup::init @ 0x1000641b0
// > SetupAdvFollowRetargetPopup::init @ 0x100064704
// > SetupAdvFollowRetargetPopup::init @ 0x100064770
// > SetupAdvFollowRetargetPopup::init @ 0x1000647dc
// > SetupAdvFollowRetargetPopup::init @ 0x100064848
// > SetupSpawnPopup::init @ 0x1000f7de0
// > SetupSpawnPopup::init @ 0x1000f7e48
// > SetupSpawnPopup::init @ 0x1000f7eb0
// > SetupAudioTriggerPopup::addProxVolControls @ 0x10017eb18
// > SetupAudioTriggerPopup::addProxVolControls @ 0x10017eb84
// > SetupAudioTriggerPopup::addProxVolControls @ 0x10017ebf0
// > SetupReverbPopup::init @ 0x10017f4c4
// > SetupSFXPopup::init @ 0x10017fe34
// > SetupSFXPopup::init @ 0x10017fea0
// > SetupSFXPopup::init @ 0x10017ff08
// > SetupSFXPopup::init @ 0x10017ff74
// > SetupSFXPopup::init @ 0x1001800e8
// > SetupSFXPopup::init @ 0x1001801d8
// > SetupSFXPopup::init @ 0x100180244
// > SetupSFXPopup::init @ 0x1001805d8
// > SetupSFXEditPopup::init @ 0x1001817c0
// > SetupSFXEditPopup::init @ 0x100181828
// > SetupSFXEditPopup::init @ 0x100181894
// > SetupSFXEditPopup::init @ 0x100181900
// > SetupShaderEffectPopup::init @ 0x100181f94
// > SetupShaderEffectPopup::setupShockWave @ 0x100182610
// > SetupShaderEffectPopup::setupShockWave @ 0x100182674
// > SetupShaderEffectPopup::setupShockWave @ 0x1001826dc
// > SetupShaderEffectPopup::setupShockWave @ 0x100182770
// > SetupShaderEffectPopup::setupShockWave @ 0x1001829a8
// > SetupShaderEffectPopup::setupShockWave @ 0x100182a10
// > SetupShaderEffectPopup::setupShockWave @ 0x100182a78
// > SetupShaderEffectPopup::setupShockLine @ 0x10018356c
// > SetupShaderEffectPopup::setupShockLine @ 0x1001835d4
// > SetupShaderEffectPopup::setupShockLine @ 0x10018363c
// > SetupShaderEffectPopup::setupShockLine @ 0x1001836a4
// > SetupShaderEffectPopup::setupShockLine @ 0x10018370c
// > SetupShaderEffectPopup::setupShockLine @ 0x100183774
// > SetupShaderEffectPopup::setupShockLine @ 0x100183808
// > SetupShaderEffectPopup::setupShockLine @ 0x1001839b0
// > SetupShaderEffectPopup::setupShockLine @ 0x100183a18
// > SetupShaderEffectPopup::setupShockLine @ 0x100183a80
// > SetupShaderEffectPopup::setupGlitch @ 0x100184228
// > SetupShaderEffectPopup::setupChromatic @ 0x100184594
// > SetupShaderEffectPopup::setupChromatic @ 0x100184600
// > SetupShaderEffectPopup::setupChromatic @ 0x100184694
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x100184bb4
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x100184c20
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x100184cb4
// > SetupShaderEffectPopup::setupPixelate @ 0x100185088
// > SetupShaderEffectPopup::setupPixelate @ 0x1001850f4
// > SetupShaderEffectPopup::setupPixelate @ 0x100185160
// > SetupShaderEffectPopup::setupPixelate @ 0x1001851cc
// > SetupShaderEffectPopup::setupPixelate @ 0x100185260
// > SetupShaderEffectPopup::setupLensCircle @ 0x100185804
// > SetupShaderEffectPopup::setupLensCircle @ 0x100185870
// > SetupShaderEffectPopup::setupLensCircle @ 0x100185988
// > SetupShaderEffectPopup::setupRadialBlur @ 0x100185e80
// > SetupShaderEffectPopup::setupRadialBlur @ 0x100185ee8
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1001860e4
// > SetupShaderEffectPopup::setupRadialBlur @ 0x100186150
// > SetupShaderEffectPopup::setupMotionBlur @ 0x10018659c
// > SetupShaderEffectPopup::setupMotionBlur @ 0x100186604
// > SetupShaderEffectPopup::setupMotionBlur @ 0x10018684c
// > SetupShaderEffectPopup::setupMotionBlur @ 0x10018693c
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1001869a8
// > SetupShaderEffectPopup::setupMotionBlur @ 0x100186a14
// > SetupShaderEffectPopup::setupMotionBlur @ 0x100186a84
// > SetupShaderEffectPopup::setupMotionBlur @ 0x100186aec
// > SetupShaderEffectPopup::setupBulge @ 0x100186f68
// > SetupShaderEffectPopup::setupBulge @ 0x100186fdc
// > SetupShaderEffectPopup::setupBulge @ 0x1001871d8
// > SetupShaderEffectPopup::setupBulge @ 0x100187244
// > SetupShaderEffectPopup::setupPinch @ 0x10018766c
// > SetupShaderEffectPopup::setupPinch @ 0x1001876d4
// > SetupShaderEffectPopup::setupPinch @ 0x100187870
// > SetupShaderEffectPopup::setupPinch @ 0x100187904
// > SetupShaderEffectPopup::setupPinch @ 0x100187b00
// > SetupShaderEffectPopup::setupPinch @ 0x100187b6c
// > SetupShaderEffectPopup::setupGrayscale @ 0x100187f7c
// > SetupShaderEffectPopup::setupGrayscale @ 0x100187fe4
// > SetupShaderEffectPopup::setupInvertColor @ 0x100188704
// > SetupShaderEffectPopup::setupInvertColor @ 0x10018876c
// > SetupShaderEffectPopup::setupInvertColor @ 0x1001887d8
// > SetupShaderEffectPopup::setupSplitScreen @ 0x10018937c
// > SetupShaderEffectPopup::setupSplitScreen @ 0x1001893e8
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x100189608
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x100189670
// > SetupRotateGameplayPopup::init @ 0x10019e890
// > SetupRotateGameplayPopup::init @ 0x10019e8f8
// > SetupRotateGameplayPopup::init @ 0x10019ea84
// > SetupRotateGameplayPopup::init @ 0x10019eaf0
// > SetupRotateGameplayPopup::init @ 0x10019ecdc
// > SetupRotateGameplayPopup::init @ 0x10019ed70
// > SetupGameplayOffsetPopup::init @ 0x10019f424
// > SetupGameplayOffsetPopup::init @ 0x10019f490
// > SetupObjectTogglePopup::init @ 0x1001a3098
// > SetupObjectTogglePopup::init @ 0x1001a3110
// > SetupObjectTogglePopup::init @ 0x1001a319c
// > SetupObjectTogglePopup::init @ 0x1001a3204
// > SetupObjectTogglePopup::init @ 0x1001a329c
// > SetupKeyframePopup::init @ 0x1001b4978
// > SetupKeyframePopup::init @ 0x1001b4dd8
// > SetupKeyframePopup::init @ 0x1001b4e54
// > SetupKeyframePopup::init @ 0x1001b4ed0
// > SetupKeyframePopup::init @ 0x1001b4f4c
// > SetupKeyframePopup::init @ 0x1001b4fc8
// > SetupSongTriggerPopup::init @ 0x1001c2a90
// > SetupSongTriggerPopup::init @ 0x1001c2b14
// > SetupSongTriggerPopup::init @ 0x1001c2d8c
// > SetupSongTriggerPopup::init @ 0x1001c2df8
// > SetupStaticCameraPopup::init @ 0x1001d0c40
// > SetupStaticCameraPopup::init @ 0x1001d0cc8
// > SetupStaticCameraPopup::init @ 0x1001d0ebc
// > SetupStaticCameraPopup::init @ 0x1001d0fac
// > SetupSequenceTriggerPopup::init @ 0x1001d2f70
// > SetupInstantCollisionTriggerPopup::init @ 0x100230f84
// > SetupInstantCollisionTriggerPopup::init @ 0x100230fe0
// > SetupInstantCollisionTriggerPopup::init @ 0x100231048
// > SetupTransformPopup::init @ 0x100231b04
// > SetupTransformPopup::init @ 0x100231c7c
// > SetupTransformPopup::init @ 0x100231ce8
// > SetupTransformPopup::init @ 0x100231f30
// > SetupTransformPopup::init @ 0x100231fb4
// > SetupMoveCommandPopup::init @ 0x100273d54
// > SetupMoveCommandPopup::init @ 0x100273dc0
// > SetupMoveCommandPopup::init @ 0x100273e90
// > SetupMoveCommandPopup::init @ 0x100273efc
// > SetupMoveCommandPopup::init @ 0x100274080
// > SetupMoveCommandPopup::init @ 0x1002740ec
// > SetupMoveCommandPopup::init @ 0x100274304
// > SetupMoveCommandPopup::init @ 0x10027436c
// > SetupMoveCommandPopup::init @ 0x1002743d4
// > SetupMoveCommandPopup::init @ 0x10027443c
// > SetupMoveCommandPopup::init @ 0x100274610
// > SetupPlatformerEndPopup::init @ 0x1002ae108
// > SetupPlatformerEndPopup::init @ 0x1002ae170
// > SetupPlatformerEndPopup::init @ 0x1002ae1d8
// > EditGameObjectPopup::init @ 0x1002dd990
// > EditGameObjectPopup::init @ 0x1002dd9e0
// > UIOptionsLayer::init @ 0x1002e2d44
// > UIOptionsLayer::init @ 0x1002e30e8
// > UIOptionsLayer::init @ 0x1002e3158
// > UIOptionsLayer::init @ 0x1002e31c8
// > UIOptionsLayer::init @ 0x1002e3240
// > UIOptionsLayer::init @ 0x1002e3a28
// > UIOptionsLayer::init @ 0x1002e3a98
// > UIOptionsLayer::init @ 0x1002e3b08
// > SetupAnimSettingsPopup::init @ 0x1002e7830
// > SetupAnimSettingsPopup::init @ 0x1002e7894
// > SetupAnimSettingsPopup::init @ 0x1002e78fc
// > SetupAnimSettingsPopup::init @ 0x1002e7968
// > SetupAnimSettingsPopup::init @ 0x1002e79d0
// > SetupAnimSettingsPopup::init @ 0x1002e7a3c
// > SetupAnimSettingsPopup::init @ 0x1002e7bb4
// > SetupGradientPopup::init @ 0x100342a6c
// > SetupGradientPopup::init @ 0x100342aec
// > SetupGradientPopup::init @ 0x100342b50
// > SetupCameraModePopup::init @ 0x1003aa83c
// > SetupEnterEffectPopup::init @ 0x1003ff9e0
// > SetupEnterEffectPopup::init @ 0x1003ffa4c
// > SetupEnterEffectPopup::init @ 0x1003ffab8
// > SetupEnterEffectPopup::init @ 0x100400414
// > SetupRotateCommandPopup::init @ 0x100406224
// > SetupRotateCommandPopup::init @ 0x100406290
// > SetupRotateCommandPopup::init @ 0x1004062fc
// > SetupRotateCommandPopup::init @ 0x100406368
// > SetupRotateCommandPopup::init @ 0x1004063d0
// > SetupRotateCommandPopup::init @ 0x10040643c
// > SetupPlayerControlPopup::init @ 0x10040963c
// > SetupPlayerControlPopup::init @ 0x1004096a4
// > SetupPlayerControlPopup::init @ 0x10040970c
// > SetupPlayerControlPopup::init @ 0x100409770
// > SetupPlayerControlPopup::init @ 0x1004097d8
// > SetupPlayerControlPopup::init @ 0x100409844
// > SetupSpawnParticlePopup::init @ 0x10040a130
// > SetupCheckpointPopup::init @ 0x10040a6b0
// > MultiTriggerPopup::init @ 0x10040a9cc
// > UIObjectSettingsPopup::init @ 0x10040b034
// > UIObjectSettingsPopup::init @ 0x10040b2d4
// > SetupPersistentItemTriggerPopup::init @ 0x10040f764
// > SetupPersistentItemTriggerPopup::init @ 0x10040f7ec
// > SetupPersistentItemTriggerPopup::init @ 0x10040f850
// > SetupPersistentItemTriggerPopup::init @ 0x10040f8b8
// > SetupAudioLineGuidePopup::init @ 0x10040fdb0
// > SetupForceBlockPopup::init @ 0x100410a50
// > SetupForceBlockPopup::init @ 0x100410ac0
// > SetupStopTriggerPopup::init @ 0x1004116f0
// > SetupDashRingPopup::init @ 0x1004121cc
// > SetupDashRingPopup::init @ 0x100412234
// > SetupDashRingPopup::init @ 0x1004122b8
// > SetupInteractObjectPopup::init @ 0x100412b34
// > SetupInteractObjectPopup::init @ 0x100412c10
// > SetupInteractObjectPopup::init @ 0x100412ce0
// > SetupInteractObjectPopup::init @ 0x100412da4
// > SetupInteractObjectPopup::init @ 0x100412f1c
// > SetItemIDLayer::init @ 0x100419ea8
// > SetItemIDLayer::init @ 0x100419f10
// > SetupGravityTriggerPopup::init @ 0x100421a88
// > SetupGravityTriggerPopup::init @ 0x100421af0
// > SetupGravityTriggerPopup::init @ 0x100421b5c
//
// 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(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 *a4,
__int64 a5,
__int64 a6,
__int64 a7,
__n128 a8,
__n128 a9)
{
float v9; // s8
__int64 v17; // x19
float32x2_t v19; // [xsp+0h] [xbp-80h] BYREF
__int64 v20; // [xsp+8h] [xbp-78h] BYREF
void *__p[2]; // [xsp+10h] [xbp-70h] BYREF
__int64 v22; // [xsp+20h] [xbp-60h]
float32x2_t v23; // [xsp+28h] [xbp-58h] BYREF
v9 = a8.n128_f32[0];
if ( (_DWORD)a5 )
{
a8.n128_u32[0] = 0;
a9.n128_u32[0] = 4.0;
}
else
{
a8.n128_u32[0] = 8.0;
a9.n128_u32[0] = 0;
}
sub_100022980(a8, a9, &v23);
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a3;
v22 = *(_QWORD *)(a3 + 16);
}
sub_1000229B8(&v20, a4);
sub_100022A14(&v23, &v19, v9);
v17 = SetupTriggerPopup::createToggleValueControlAdvanced(
a1,
a2,
__p,
&v20,
a5,
a6,
a7,
&v19,
v9 * 0.7,
v9 * 0.35,
v9 * 110.0);
if ( SHIBYTE(v22) < 0 )
operator delete(__p[0]);
return v17;
}