//
// TimeSpeedControl::timeSliderChanged from 0xd03948 to 0xd03a24 (220 bytes)
//
// 3 xrefs:
// > ??> @ 0x77ff8
// > TimeSpeedControl::init @ 0xd03c10
// > ??> @ 0x15430d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:06:55 +0000
//
GameManager *__fastcall TimeSpeedControl::timeSliderChanged(TimeSpeedControl *this, cocos2d::CCObject *a2)
{
float Value; // s0
float *v4; // x0
float v5; // s8
__int64 v6; // x20
GameManager *v7; // x0
GameManager *GameVariable; // x0
float v9; // s0
GameManager *v10; // x20
GameManager *result; // x0
const char **v12; // x19
__int64 (__fastcall *v13)(const char **, __int64); // x20
cocos2d::CCString *v14; // x0
__int64 CString; // x0
Value = SliderThumb::getValue(a2);
v4 = *((float **)this + 40);
v5 = roundf((float)((float)(Value * 1.9) + 0.1) * 10.0) / 10.0;
v4[3278] = v5;
v6 = *((_QWORD *)this + 40);
v7 = (GameManager *)GameManager::sharedState((GameManager *)v4);
GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v7, "0183");
v9 = v5;
if ( (_BYTE)GameVariable )
v9 = 1.0;
*(float *)(v6 + 13116) = v9;
v10 = *((GameManager **)this + 40);
result = *(GameManager **)(GameManager::sharedState(GameVariable) + 544);
if ( v10 == result && v5 != 1.0 )
{
result = (GameManager *)(*(_QWORD *)(GameManager::sharedState(result) + 544) + 12288LL);
*((_BYTE *)result + 1898) = 1;
}
v12 = *((const char ***)this + 42);
if ( v12 )
{
v13 = *((__int64 (__fastcall **)(const char **, __int64))*v12 + 116);
v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.01fx", *v12, v5);
CString = cocos2d::CCString::getCString(v14);
return (GameManager *)v13(v12, CString);
}
return result;
}