//
// TimeSpeedControl::onAudioTimeSpeedToggle from 0x100977c50 to 0x100977cab (91 bytes)
//
// 1 xrefs:
// > TimeSpeedControl::init @ 0x100977a98
//
// This function is hookable on this platform (idp: pc, 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 12:38:56 +0000
//
__int64 __fastcall TimeSpeedControl::onAudioTimeSpeedToggle(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 result; // rax
__int64 v4; // rcx
int v5; // xmm0_4
v1 = GameManager::sharedState();
GameManager::toggleGameVariable(v1, "0183");
v2 = GameManager::sharedState();
result = GameManager::getGameVariable(v2, "0183");
v4 = *(_QWORD *)(a1 + 320);
if ( (_BYTE)result )
v5 = 1065353216;
else
v5 = *(_DWORD *)(v4 + 13112);
*(_DWORD *)(v4 + 13116) = v5;
return result;
}