//
// SetupTriggerPopup::getTruncatedValueByTag from 0x100239690 to 0x10023971d (141 bytes)
//
// 0 xrefs:
//
// 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
//
// local variable allocation has failed, the output may be wrong!
float __fastcall SetupTriggerPopup::getTruncatedValueByTag(SetupTriggerPopup *a1, int a2, float a3)
{
cocos2d::CCObject *v3; // rax
int m_eObjType; // eax
float v5; // xmm0_4
__m128 v6; // xmm2
__m128 v7; // xmm1
__m128 v8; // [rsp+0h] [rbp-10h]
v8 = *(__m128 *)&a3;
v3 = cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, a2);
if ( v3 )
{
m_eObjType = v3[10].m_eObjType;
if ( m_eObjType <= 0 )
{
return _mm_cvtepi32_ps(_mm_cvttps_epi32(*(__m128 *)&a3)).f32[0];
}
else
{
if ( m_eObjType == 1 )
v5 = 10.0;
else
v5 = __exp10f((float)m_eObjType);
v6 = v8;
v6.f32[0] = v8.f32[0] * v5;
v7 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v6), (__m128)xmmword_1008150C0);
v7.f32[0] = v7.f32[0] + (float)(v8.f32[0] * v5);
return _mm_round_ss(v7, v7, 11).f32[0] / v5;
}
}
return a3;
}