//
// CCAnimatedSprite::runAnimation from 0x1003509f0 to 0x100350a49 (89 bytes)
//
// 25 xrefs:
// > PlayerObject::createRobot @ 0x1003fc204
// > PlayerObject::createSpider @ 0x1003fc5a9
// > PlayerObject::updateMove @ 0x100400459
// > PlayerObject::updateMove @ 0x100401348
// > PlayerObject::updateMove @ 0x10040147c
// > PlayerObject::stopDashing @ 0x100402142
// > PlayerObject::playDynamicSpiderRun @ 0x100402275
// > PlayerObject::playDynamicSpiderRun @ 0x10040237a
// > PlayerObject::playDynamicSpiderRun @ 0x1004023d0
// > PlayerObject::hitGround @ 0x10040c2b7
// > PlayerObject::updateDashArt @ 0x10041104e
// > PlayerObject::updateDashArt @ 0x1004110fc
// > PlayerObject::ringJump @ 0x100415096
// > PlayerObject::toggleRobotMode @ 0x100418bdf
// > PlayerObject::toggleRobotMode @ 0x100418c36
// > PlayerObject::toggleSpiderMode @ 0x100419072
// > PlayerObject::propellPlayer @ 0x10041af4b
// > PlayerObject::propellPlayer @ 0x10041af88
// > PlayerObject::updateRobotAnimationSpeed @ 0x10041bcb5
// > PlayerObject::animationFinished @ 0x10041d7c9
// > PlayerObject::animationFinished @ 0x10041d8ff
// > PlayerObject::animationFinished @ 0x10041d945
// > PlayerObject::animationFinished @ 0x10041da87
// > PlayerObject::animationFinished @ 0x10041dac9
// > GJRobotSprite::init @ 0x1005dc329
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall CCAnimatedSprite::runAnimation(__int64 a1, __int128 *a2, double a3)
{
__int64 v3; // rbx
__int128 v4; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v3 = *(_QWORD *)(a1 + 648);
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_100006B70(&v4, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), a3);
}
else
{
__p = *((void **)a2 + 2);
v4 = *a2;
}
SpriteAnimationManager::runAnimation(v3, &v4);
if ( (v4 & 1) != 0 )
operator delete(__p);
}