//
// GJBaseGameLayer::applyTimeWarp from 0x58b554 to 0x58b5ee (154 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:02 +0000
//
float *__fastcall GJBaseGameLayer::applyTimeWarp(GJBaseGameLayer *this, float a2)
{
float v3; // s14
float v4; // s16
int v5; // r0
float *result; // r0
int v7; // r0
float *v8; // r0
float v9; // r4
FMODAudioEngine *v10; // r0
*((float *)this + 182) = a2;
v3 = *((float *)this + 2787);
v4 = a2;
if ( fabsf(v3 - 1.0) >= 0.01 && !*((_BYTE *)this + 1438) )
v4 = a2 * v3;
v5 = cocos2d::CCDirector::sharedDirector(this);
result = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 64))(v5);
if ( result[13] != v4 && *((_BYTE *)this + 10880) )
{
v7 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)result);
v8 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 64))(v7);
v8[13] = v4;
if ( *((_BYTE *)this + 1438) )
v9 = 1.0;
else
v9 = *((float *)this + 2788);
v10 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)v8);
return (float *)FMODAudioEngine::updateSystemPitch(v10, v9);
}
return result;
}