//
// SetupPulsePopup::sliderChanged from 0x1003ad4b0 to 0x1003ad6d8 (552 bytes)
//
// 3 xrefs:
// > SetupPulsePopup::init @ 0x1003aa7c6
// > SetupPulsePopup::init @ 0x1003aabb2
// > SetupPulsePopup::init @ 0x1003aafa7
//
// 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
//
void __fastcall SetupPulsePopup::sliderChanged(SetupPulsePopup *a1, cocos2d::CCObject *a2)
{
cocos2d::CCString *v3; // rax
int v4; // eax
EffectGameObject *v5; // rax
EffectGameObject *v6; // rax
EffectGameObject *m_gameObject; // rax
cocos2d::CCArray *v8; // rdi
unsigned int v9; // r14d
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v11; // r14d
cocos2d::CCArray *v12; // rdi
unsigned int v13; // r14d
char v14; // [rsp+0h] [rbp-20h]
float v15; // [rsp+Ch] [rbp-14h]
SliderThumb::getValue((SliderThumb *)a2);
v3 = (cocos2d::CCString *)sub_1007AB580("%.01f", v14);
v15 = cocos2d::CCString::floatValue(v3);
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
switch ( v4 )
{
case 3:
a1->m_fadeOutTime = v15;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_fadeOutDuration = v15;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )
{
v11 = 0;
do
*(float *)(sub_1007200C0(a1->m_gameObjects, v11++) + 1600) = a1->m_fadeOutTime;
while ( v11 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
SetupPulsePopup::updateFadeOutLabel(a1, 1);
break;
case 2:
a1->m_holdTime = v15;
v6 = a1->m_gameObject;
if ( v6 )
{
v6->m_holdDuration = v15;
}
else
{
v8 = a1->m_gameObjects;
if ( v8 && (unsigned int)sub_100720070(v8) )
{
v9 = 0;
do
*(float *)(sub_1007200C0(a1->m_gameObjects, v9++) + 1596) = a1->m_holdTime;
while ( v9 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
SetupPulsePopup::updateHoldLabel(a1, 1);
break;
case 1:
a1->m_fadeInTime = v15;
v5 = a1->m_gameObject;
if ( v5 )
{
v5->m_fadeInDuration = v15;
}
else
{
v12 = a1->m_gameObjects;
if ( v12 && (unsigned int)sub_100720070(v12) )
{
v13 = 0;
do
*(float *)(sub_1007200C0(a1->m_gameObjects, v13++) + 1592) = a1->m_fadeInTime;
while ( v13 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
SetupPulsePopup::updateFadeInLabel(a1, 1);
break;
}
}