//
// TimeSpeedControl::onAudioTimeSpeedToggle from 0x10052bb7c to 0x10052bbcc (80 bytes)
//
// 1 xrefs:
// > TimeSpeedControl::init @ 0x10052b9f0
//
// 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 11:07:18 +0000
//
bool __fastcall TimeSpeedControl::onAudioTimeSpeedToggle(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
_BOOL8 result; // x0
__int64 v5; // x8
float v6; // s0
v2 = GameManager::sharedState();
GameManager::toggleGameVariable(v2, "0183");
v3 = GameManager::sharedState();
result = GameManager::getGameVariable(v3, "0183");
v5 = *(_QWORD *)(a1 + 320);
v6 = 1.0;
if ( !result )
v6 = *(float *)(v5 + 13112);
*(float *)(v5 + 13116) = v6;
return result;
}