//
// SetupTriggerPopup::createToggleValueControl from 0x9e6354 to 0x9e6524 (464 bytes)
//
// 248 xrefs:
// > EditGameObjectPopup::init @ 0x8d140c
// > EditGameObjectPopup::init @ 0x8d146c
// > UIOptionsLayer::init @ 0x8d6930
// > UIOptionsLayer::init @ 0x8d6d10
// > UIOptionsLayer::init @ 0x8d6d7c
// > UIOptionsLayer::init @ 0x8d6de8
// > UIOptionsLayer::init @ 0x8d7640
// > UIOptionsLayer::init @ 0x8d76ac
// > UIOptionsLayer::init @ 0x8d7718
// > UIOptionsLayer::init @ 0x8d77d8
// > SetupMoveCommandPopup::init @ 0x8e4b14
// > SetupMoveCommandPopup::init @ 0x8e4b84
// > SetupMoveCommandPopup::init @ 0x8e4c50
// > SetupMoveCommandPopup::init @ 0x8e4cc0
// > SetupMoveCommandPopup::init @ 0x8e4e54
// > SetupMoveCommandPopup::init @ 0x8e4ec0
// > SetupMoveCommandPopup::init @ 0x8e50ec
// > SetupMoveCommandPopup::init @ 0x8e5158
// > SetupMoveCommandPopup::init @ 0x8e51c4
// > SetupMoveCommandPopup::init @ 0x8e5230
// > SetupMoveCommandPopup::init @ 0x8e5414
// > SetupObjectTogglePopup::init @ 0x8e96c8
// > SetupObjectTogglePopup::init @ 0x8e9874
// > SetupObjectTogglePopup::init @ 0x8e98e0
// > SetupObjectTogglePopup::init @ 0x8e996c
// > SetupObjectTogglePopup::init @ 0x8e9a10
// > SetupSpawnPopup::init @ 0x8eb200
// > SetupSpawnPopup::init @ 0x8eb26c
// > SetupSpawnPopup::init @ 0x8eb2d8
// > SetupRotateCommandPopup::init @ 0x9292b8
// > SetupRotateCommandPopup::init @ 0x929324
// > SetupRotateCommandPopup::init @ 0x929394
// > SetupRotateCommandPopup::init @ 0x929400
// > SetupRotateCommandPopup::init @ 0x92946c
// > SetupRotateCommandPopup::init @ 0x9294d8
// > SetItemIDLayer::init @ 0x94bb90
// > SetItemIDLayer::init @ 0x94bc00
// > SetupAnimSettingsPopup::init @ 0x94e8f4
// > SetupAnimSettingsPopup::init @ 0x94e960
// > SetupAnimSettingsPopup::init @ 0x94e9d0
// > SetupAnimSettingsPopup::init @ 0x94ea3c
// > SetupAnimSettingsPopup::init @ 0x94eaa8
// > SetupAnimSettingsPopup::init @ 0x94eb14
// > SetupAnimSettingsPopup::init @ 0x94eca4
// > SetupInstantCollisionTriggerPopup::init @ 0x951850
// > SetupInstantCollisionTriggerPopup::init @ 0x9518b4
// > SetupInstantCollisionTriggerPopup::init @ 0x95191c
// > SetupInteractObjectPopup::init @ 0x954cb0
// > SetupInteractObjectPopup::init @ 0x954d94
// > SetupInteractObjectPopup::init @ 0x954e70
// > SetupInteractObjectPopup::init @ 0x954f4c
// > SetupInteractObjectPopup::init @ 0x9550cc
// > SetupPickupTriggerPopup::init @ 0x957c80
// > SetupStaticCameraPopup::init @ 0x96afb8
// > SetupStaticCameraPopup::init @ 0x96b034
// > SetupStaticCameraPopup::init @ 0x96b244
// > SetupStaticCameraPopup::init @ 0x96b344
// > SetupPlatformerEndPopup::init @ 0x96f5d8
// > SetupPlatformerEndPopup::init @ 0x96f644
// > SetupPlatformerEndPopup::init @ 0x96f6b0
// > SetupTransformPopup::init @ 0x9a8b44
// > SetupTransformPopup::init @ 0x9a8cdc
// > SetupTransformPopup::init @ 0x9a8d48
// > SetupTransformPopup::init @ 0x9a8fa8
// > SetupTransformPopup::init @ 0x9a9028
// > SetupSongTriggerPopup::init @ 0x9aa1c4
// > SetupSongTriggerPopup::init @ 0x9aa244
// > SetupSongTriggerPopup::init @ 0x9aa4d8
// > SetupSongTriggerPopup::init @ 0x9aa544
// > SetupCameraRotatePopup2::init @ 0x9adebc
// > SetupCameraRotatePopup2::init @ 0x9adf28
// > SetupRotateGameplayPopup::init @ 0x9ef760
// > SetupRotateGameplayPopup::init @ 0x9ef7d0
// > SetupRotateGameplayPopup::init @ 0x9ef970
// > SetupRotateGameplayPopup::init @ 0x9ef9dc
// > SetupRotateGameplayPopup::init @ 0x9efbc8
// > SetupRotateGameplayPopup::init @ 0x9efc50
// > SetupGameplayOffsetPopup::init @ 0x9f07f8
// > SetupGameplayOffsetPopup::init @ 0x9f0860
// > SetupTeleportPopup::init @ 0x9f1564
// > SetupTeleportPopup::init @ 0x9f15d0
// > SetupTeleportPopup::init @ 0x9f163c
// > SetupTeleportPopup::init @ 0x9f16a8
// > SetupTeleportPopup::init @ 0x9f1714
// > SetupTeleportPopup::init @ 0x9f1784
// > SetupTeleportPopup::init @ 0x9f17f0
// > SetupTeleportPopup::init @ 0x9f1888
// > SetupTeleportPopup::init @ 0x9f1b58
// > SetupTeleportPopup::init @ 0x9f1bc4
// > SetupTeleportPopup::init @ 0x9f1ce8
// > SetupTeleportPopup::init @ 0x9f1f68
// > SetupGradientPopup::init @ 0x9fa964
// > SetupGradientPopup::init @ 0x9fa9e4
// > SetupGradientPopup::init @ 0x9faa50
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x9fc5ec
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x9fc658
// > SetupShaderEffectPopup::setupShockWave @ 0x9fd36c
// > SetupShaderEffectPopup::setupShockWave @ 0x9fd3d8
// > SetupShaderEffectPopup::setupShockWave @ 0x9fd444
// > SetupShaderEffectPopup::setupShockWave @ 0x9fd4d4
// > SetupShaderEffectPopup::setupShockWave @ 0x9fd724
// > SetupShaderEffectPopup::setupShockWave @ 0x9fd790
// > SetupShaderEffectPopup::setupShockWave @ 0x9fd7fc
// > SetupShaderEffectPopup::setupShockLine @ 0x9fe944
// > SetupShaderEffectPopup::setupShockLine @ 0x9fe9b0
// > SetupShaderEffectPopup::setupShockLine @ 0x9fea1c
// > SetupShaderEffectPopup::setupShockLine @ 0x9fea88
// > SetupShaderEffectPopup::setupShockLine @ 0x9feaf4
// > SetupShaderEffectPopup::setupShockLine @ 0x9feb60
// > SetupShaderEffectPopup::setupShockLine @ 0x9febf0
// > SetupShaderEffectPopup::setupShockLine @ 0x9feda8
// > SetupShaderEffectPopup::setupShockLine @ 0x9fee14
// > SetupShaderEffectPopup::setupShockLine @ 0x9fee80
// > SetupShaderEffectPopup::setupGlitch @ 0x9ffc64
// > SetupShaderEffectPopup::setupChromatic @ 0xa0034c
// > SetupShaderEffectPopup::setupChromatic @ 0xa003b8
// > SetupShaderEffectPopup::setupChromatic @ 0xa00448
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0xa00c60
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0xa00ccc
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0xa00d5c
// > SetupShaderEffectPopup::setupPixelate @ 0xa014fc
// > SetupShaderEffectPopup::setupPixelate @ 0xa01568
// > SetupShaderEffectPopup::setupPixelate @ 0xa015d8
// > SetupShaderEffectPopup::setupPixelate @ 0xa01644
// > SetupShaderEffectPopup::setupPixelate @ 0xa016d4
// > SetupShaderEffectPopup::setupLensCircle @ 0xa0200c
// > SetupShaderEffectPopup::setupLensCircle @ 0xa02078
// > SetupShaderEffectPopup::setupLensCircle @ 0xa02194
// > SetupShaderEffectPopup::setupRadialBlur @ 0xa02aac
// > SetupShaderEffectPopup::setupRadialBlur @ 0xa02b20
// > SetupShaderEffectPopup::setupRadialBlur @ 0xa02d4c
// > SetupShaderEffectPopup::setupRadialBlur @ 0xa02db8
// > SetupShaderEffectPopup::setupMotionBlur @ 0xa03690
// > SetupShaderEffectPopup::setupMotionBlur @ 0xa036fc
// > SetupShaderEffectPopup::setupMotionBlur @ 0xa03954
// > SetupShaderEffectPopup::setupMotionBlur @ 0xa03a50
// > SetupShaderEffectPopup::setupMotionBlur @ 0xa03abc
// > SetupShaderEffectPopup::setupMotionBlur @ 0xa03b28
// > SetupShaderEffectPopup::setupMotionBlur @ 0xa03b98
// > SetupShaderEffectPopup::setupMotionBlur @ 0xa03c04
// > SetupShaderEffectPopup::setupBulge @ 0xa045a4
// > SetupShaderEffectPopup::setupBulge @ 0xa04614
// > SetupShaderEffectPopup::setupBulge @ 0xa04840
// > SetupShaderEffectPopup::setupBulge @ 0xa048ac
// > SetupShaderEffectPopup::setupPinch @ 0xa050ac
// > SetupShaderEffectPopup::setupPinch @ 0xa05118
// > SetupShaderEffectPopup::setupPinch @ 0xa052d8
// > SetupShaderEffectPopup::setupPinch @ 0xa05364
// > SetupShaderEffectPopup::setupPinch @ 0xa05590
// > SetupShaderEffectPopup::setupPinch @ 0xa055fc
// > SetupShaderEffectPopup::setupGrayscale @ 0xa05efc
// > SetupShaderEffectPopup::setupGrayscale @ 0xa05f68
// > SetupShaderEffectPopup::setupInvertColor @ 0xa06b4c
// > SetupShaderEffectPopup::setupInvertColor @ 0xa06bb8
// > SetupShaderEffectPopup::setupInvertColor @ 0xa06c24
// > SetupShaderEffectPopup::setupSplitScreen @ 0xa08064
// > SetupShaderEffectPopup::setupSplitScreen @ 0xa080d0
// > SetupShaderEffectPopup::init @ 0xa085d8
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xa0a5c0
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xa0a618
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xa0a684
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xa0a78c
// > SetupAreaMoveTriggerPopup::init @ 0xa0b920
// > SetupAreaMoveTriggerPopup::init @ 0xa0ba1c
// > SetupAreaTintTriggerPopup::init @ 0xa0f194
// > SetupAreaTintTriggerPopup::init @ 0xa0f200
// > SetupAreaTintTriggerPopup::init @ 0xa0f26c
// > SetupAreaAnimTriggerPopup::init @ 0xa10e7c
// > SetupAreaAnimTriggerPopup::init @ 0xa1157c
// > SetupAreaAnimTriggerPopup::init @ 0xa119fc
// > SetupEnterEffectPopup::init @ 0xa14408
// > SetupEnterEffectPopup::init @ 0xa14474
// > SetupEnterEffectPopup::init @ 0xa144e0
// > SetupEnterEffectPopup::init @ 0xa14908
// > SetupCameraModePopup::init @ 0xa168f0
// > SetupAdvFollowPopup::init @ 0xa188f8
// > SetupAdvFollowPopup::init @ 0xa18968
// > SetupAdvFollowPopup::init @ 0xa189d4
// > SetupAdvFollowPopup::init @ 0xa18a44
// > SetupAdvFollowPopup::init @ 0xa18ab0
// > SetupAdvFollowPopup::init @ 0xa18bb0
// > SetupAdvFollowPopup::init @ 0xa18c1c
// > SetupAdvFollowPopup::init @ 0xa18f3c
// > SetupAdvFollowPopup::init @ 0xa1a338
// > SetupAdvFollowPopup::init @ 0xa1a5d8
// > SetupAdvFollowPopup::init @ 0xa1ae34
// > SetupAdvFollowEditPhysicsPopup::init @ 0xa1d610
// > SetupAdvFollowEditPhysicsPopup::init @ 0xa1d67c
// > SetupAdvFollowEditPhysicsPopup::init @ 0xa1dc98
// > SetupAdvFollowEditPhysicsPopup::init @ 0xa1dd04
// > SetupAdvFollowRetargetPopup::init @ 0xa1e8d4
// > SetupAdvFollowRetargetPopup::init @ 0xa1e940
// > SetupAdvFollowRetargetPopup::init @ 0xa1e9ac
// > SetupAdvFollowRetargetPopup::init @ 0xa1ea18
// > SetupGravityTriggerPopup::init @ 0xa221d8
// > SetupGravityTriggerPopup::init @ 0xa22244
// > SetupGravityTriggerPopup::init @ 0xa222b0
// > SetupKeyframePopup::init @ 0xa3b584
// > SetupKeyframePopup::init @ 0xa3ba38
// > SetupKeyframePopup::init @ 0xa3bab8
// > SetupKeyframePopup::init @ 0xa3bb38
// > SetupKeyframePopup::init @ 0xa3bbb8
// > SetupKeyframePopup::init @ 0xa3bc38
// > SetupAudioTriggerPopup::addProxVolControls @ 0xa3e9e4
// > SetupAudioTriggerPopup::addProxVolControls @ 0xa3ea50
// > SetupAudioTriggerPopup::addProxVolControls @ 0xa3eabc
// > SetupReverbPopup::init @ 0xa3f5b0
// > SetupSFXPopup::init @ 0xa4066c
// > SetupSFXPopup::init @ 0xa406dc
// > SetupSFXPopup::init @ 0xa4074c
// > SetupSFXPopup::init @ 0xa407b8
// > SetupSFXPopup::init @ 0xa40940
// > SetupSFXPopup::init @ 0xa40a38
// > SetupSFXPopup::init @ 0xa40aa8
// > SetupSFXPopup::init @ 0xa40e70
// > SetupSFXEditPopup::init @ 0xa41fac
// > SetupSFXEditPopup::init @ 0xa42018
// > SetupSFXEditPopup::init @ 0xa42084
// > SetupSFXEditPopup::init @ 0xa420f0
// > SetupPlayerControlPopup::init @ 0xa44dd4
// > SetupPlayerControlPopup::init @ 0xa44e40
// > SetupPlayerControlPopup::init @ 0xa44eb0
// > SetupPlayerControlPopup::init @ 0xa44f1c
// > SetupPlayerControlPopup::init @ 0xa44f88
// > SetupPlayerControlPopup::init @ 0xa44ff4
// > SetupSpawnParticlePopup::init @ 0xa45dc4
// > SetupCheckpointPopup::init @ 0xa46908
// > MultiTriggerPopup::init @ 0xa47034
// > UIObjectSettingsPopup::init @ 0xa47a5c
// > UIObjectSettingsPopup::init @ 0xa47d34
// > SetupPersistentItemTriggerPopup::init @ 0xa4eef4
// > SetupPersistentItemTriggerPopup::init @ 0xa4ef84
// > SetupPersistentItemTriggerPopup::init @ 0xa4eff0
// > SetupPersistentItemTriggerPopup::init @ 0xa4f05c
// > SetupAudioLineGuidePopup::init @ 0xa4f9c8
// > SetupForceBlockPopup::init @ 0xa50e0c
// > SetupForceBlockPopup::init @ 0xa50e7c
// > SetupStopTriggerPopup::init @ 0xa522bc
// > SetupDashRingPopup::init @ 0xa53560
// > SetupDashRingPopup::init @ 0xa535cc
// > SetupDashRingPopup::init @ 0xa53654
// > SetupSequenceTriggerPopup::init @ 0xa594d4
// > SetupTimerTriggerPopup::init @ 0xa7b8e8
// > SetupTimerTriggerPopup::init @ 0xa7bb0c
// > SetupTimerTriggerPopup::init @ 0xa7bb7c
// > SetupTimerTriggerPopup::init @ 0xa7bbe8
// > SetupTimerEventTriggerPopup::init @ 0xa7c698
// > ??> @ 0x53df0
//
// 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,
int a2,
float a3,
__int64 a4,
const cocos2d::CCPoint *a5,
char a6,
int a7,
int a8)
{
cocos2d::CCArray *v15; // x21
void *v16; // x0
unsigned int *v18; // x2
int v19; // w1
cocos2d::CCPoint v20; // [xsp+98h] [xbp+98h] BYREF
cocos2d::CCPoint v21; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v22; // [xsp+A8h] [xbp+A8h] BYREF
cocos2d::CCPoint v23; // [xsp+B0h] [xbp+B0h] BYREF
if ( a6 )
cocos2d::CCPoint::CCPoint(&v20, 0.0, 4.0);
else
cocos2d::CCPoint::CCPoint(&v20, 8.0, 0.0);
sub_D18D28(&v22);
cocos2d::CCPoint::CCPoint(&v23, a5);
cocos2d::CCPoint::operator*(&v20, a3);
v15 = SetupTriggerPopup::createToggleValueControlAdvanced(
a1,
a2,
(int)&v22,
&v23,
a6,
a7,
a3 * 0.7,
a3 * 0.35,
a3 * 110.0,
a8,
&v21);
v16 = (void *)(v22 - 24);
if ( (__int64 *)(v22 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v18 = (unsigned int *)(v22 - 8);
do
v19 = __ldaxr(v18);
while ( __stlxr(v19 - 1, v18) );
}
else
{
v19 = *(_DWORD *)(v22 - 8);
*(_DWORD *)(v22 - 8) = v19 - 1;
}
if ( v19 <= 0 )
operator delete(v16);
}
return v15;
}