//
// CCAnimatedSprite::runAnimation from 0x1002fda50 to 0x1002fdabc (108 bytes)
//
// 26 xrefs:
// > PlayerObject::createRobot @ 0x100218bcc
// > PlayerObject::createSpider @ 0x100218eac
// > PlayerObject::updateMove @ 0x10021badc
// > PlayerObject::updateMove @ 0x10021c358
// > PlayerObject::updateMove @ 0x10021c45c
// > PlayerObject::stopDashing @ 0x10021cfe0
// > PlayerObject::playDynamicSpiderRun @ 0x10021d104
// > PlayerObject::playDynamicSpiderRun @ 0x10021d174
// > PlayerObject::playDynamicSpiderRun @ 0x10021d1a4
// > PlayerObject::hitGround @ 0x100223b5c
// > PlayerObject::updateDashArt @ 0x10022601c
// > PlayerObject::updateDashArt @ 0x1002260b0
// > PlayerObject::ringJump @ 0x100228c40
// > PlayerObject::toggleRobotMode @ 0x10022b208
// > PlayerObject::toggleRobotMode @ 0x10022b2b8
// > PlayerObject::toggleSpiderMode @ 0x10022b51c
// > PlayerObject::propellPlayer @ 0x10022ce14
// > PlayerObject::propellPlayer @ 0x10022ce50
// > PlayerObject::updateRobotAnimationSpeed @ 0x10022d7b0
// > PlayerObject::animationFinished @ 0x10022e830
// > PlayerObject::animationFinished @ 0x10022e8b4
// > PlayerObject::animationFinished @ 0x10022e8e4
// > PlayerObject::animationFinished @ 0x10022e98c
// > PlayerObject::animationFinished @ 0x10022e9c8
// > GJRobotSprite::init @ 0x10023f7f8
// > CCAnimatedSprite::tweenToAnimationFinished @ 0x1002fddd8
//
// 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, __int64 a2)
{
__int64 v2; // x19
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v4; // [xsp+10h] [xbp-20h]
v2 = *(_QWORD *)(a1 + 648);
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v4 = *(_QWORD *)(a2 + 16);
}
SpriteAnimationManager::runAnimation(v2, __p);
if ( SHIBYTE(v4) < 0 )
operator delete(__p[0]);
}