// // SetupTimeWarpPopup::sliderChanged from 0x1005031e0 to 0x1005032e8 (264 bytes) // // 1 xrefs: // > SetupTimeWarpPopup::init @ 0x1005030b1 // // 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 SetupTimeWarpPopup::sliderChanged(SetupTimeWarpPopup *a1, cocos2d::CCObject *a2) { __m128 v2; // xmm0 __m128 v4; // xmm2 float v5; // xmm0_4 EffectGameObject *m_gameObject; // rax cocos2d::CCLabelBMFont *m_timeWarpLabel; // r14 double m_timeWarpMod; // xmm0_8 cocos2d::CCString *v9; // rax const char *CString; // rax cocos2d::CCArray *m_gameObjects; // rdi unsigned int v12; // r14d char v13; // [rsp+0h] [rbp-10h] v2.f32[0] = (float)((float)(SliderThumb::getValue((SliderThumb *)a2) * 1.9) + 0.1) * 100.0; v4 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v2), (__m128)xmmword_1008150C0); v4.f32[0] = v4.f32[0] + v2.f32[0]; v5 = _mm_round_ss((__m128)0LL, v4, 11).f32[0] / 100.0; a1->m_timeWarpMod = v5; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_timeWarpTimeMod = v5; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) ) { v12 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v12++) + 1764) = a1->m_timeWarpMod; while ( v12 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } m_timeWarpLabel = a1->m_timeWarpLabel; m_timeWarpMod = a1->m_timeWarpMod; v9 = (cocos2d::CCString *)sub_1007AB580("TimeMod: %.02f", v13); CString = cocos2d::CCString::getCString(v9); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, double))m_timeWarpLabel->setString)( m_timeWarpLabel, CString, m_timeWarpMod); }
GD Web Decomp Icon

GD Web Decomp

Raw Source