//
// SetupTriggerPopup::triggerSliderChanged from 0x100239590 to 0x100239684 (244 bytes)
//
// 1 xrefs:
// > SetupTriggerPopup::createValueControlAdvanced @ 0x10023a073
//
// 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 SetupTriggerPopup::triggerSliderChanged(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
__m128 v2; // xmm0
bool m_disableTextDelegate; // r12
unsigned int v4; // r14d
cocos2d::CCObject *v5; // rax
int m_eObjType; // eax
float v7; // xmm0_4
__m128 v8; // xmm2
__m128 v9; // xmm1
__m128 v10; // [rsp+0h] [rbp-30h]
m_disableTextDelegate = a1->m_disableTextDelegate;
a1->m_disableTextDelegate = 1;
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v2.f32[0] = SliderThumb::getValue((SliderThumb *)a2);
*(double *)v2.i64 = ((double (__fastcall *)(SetupTriggerPopup *, _QWORD, float))a1->triggerValueFromSliderValue)(
a1,
v4,
v2.f32[0]);
v10 = v2;
v5 = cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, (int)v4);
if ( v5 )
{
m_eObjType = v5[10].m_eObjType;
if ( m_eObjType <= 0 )
{
v2.i64[0] = _mm_cvtepi32_ps(_mm_cvttps_epi32(v2)).u64[0];
}
else
{
if ( m_eObjType == 1 )
v7 = 10.0;
else
v7 = __exp10f((float)m_eObjType);
v8 = v10;
v8.f32[0] = v10.f32[0] * v7;
v9 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v8), (__m128)xmmword_1008150C0);
v9.f32[0] = v9.f32[0] + (float)(v10.f32[0] * v7);
v9.i64[0] = _mm_round_ss(v9, v9, 11).u64[0];
v9.f32[0] = v9.f32[0] / v7;
v2.i64[0] = v9.i64[0];
}
}
SetupTriggerPopup::valueChanged(a1, v4, v2.f32[0]);
((void (__fastcall *)(SetupTriggerPopup *, _QWORD, double))a1->updateInputNode)(a1, v4, *(double *)v2.i64);
a1->m_disableTextDelegate = m_disableTextDelegate;
}