//
// SetupRandTriggerPopup::sliderChanged from 0x1005e6450 to 0x1005e6501 (177 bytes)
//
// 1 xrefs:
// > SetupRandTriggerPopup::init @ 0x1005e5d8b
//
// 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 SetupRandTriggerPopup::sliderChanged(SetupRandTriggerPopup *a1, cocos2d::CCObject *a2)
{
__m128 v2; // xmm0
__m128 v3; // xmm1
float v4; // xmm0_4
EffectGameObject *m_gameObject; // rax
unsigned int v6; // r14d
v2.f32[0] = SliderThumb::getValue((SliderThumb *)a2) * 100.0;
v3 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v2), (__m128)xmmword_1008150C0);
v3.f32[0] = v3.f32[0] + v2.f32[0];
v4 = _mm_round_ss((__m128)0LL, v3, 11).f32[0];
a1->m_chancePercent = v4;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_duration = v4;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v6 = 0;
do
*(float *)(sub_1007200C0(a1->m_gameObjects, v6++) + 1452) = a1->m_chancePercent;
while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
SetupRandTriggerPopup::updateChanceLabel(a1, 0);
}