//
// SpriteAnimationManager::updateAnimationSpeed from 0x3d7e20 to 0x3d7e6c (76 bytes)
//
// 4 xrefs:
// > PlayerObject::updateRobotAnimationSpeed @ 0x43f29c
// > PlayerObject::updateRobotAnimationSpeed @ 0x43f2b0
// > GJMapObject::createMonster @ 0x63fe52
// > GJMapObject::startMonsterJumpLoop @ 0x63fff6
//
// 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:46:45 +0000
//
int __fastcall SpriteAnimationManager::updateAnimationSpeed(int this, float a2)
{
int v3; // r3
int v4; // r3
int v5; // r2
int v6; // r3
int v7; // r1
if ( *(float *)(this + 292) != a2 )
{
v3 = *(_DWORD *)(this + 296);
*(float *)(this + 292) = a2;
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 52);
if ( v4 )
v5 = *(_DWORD *)(v4 + 272);
else
v5 = 0;
while ( v4 )
{
v6 = *(_DWORD *)(v4 + 260);
if ( !*(_DWORD *)(v6 + 24) )
*(float *)(v6 + 64) = a2;
if ( v5 )
v7 = *(_DWORD *)(v5 + 272);
else
v7 = 0;
v4 = v5;
v5 = v7;
}
}
}
return this;
}