//
// CCAnimatedSprite::runAnimation from 0x10039a408 to 0x10039a474 (108 bytes)
//
// 26 xrefs:
// > PlayerObject::createRobot @ 0x1002b568c
// > PlayerObject::createSpider @ 0x1002b596c
// > PlayerObject::updateMove @ 0x1002b85a8
// > PlayerObject::updateMove @ 0x1002b8e24
// > PlayerObject::updateMove @ 0x1002b8f28
// > PlayerObject::stopDashing @ 0x1002b9aac
// > sub_1002B9B0C @ 0x1002b9bd0
// > sub_1002B9B0C @ 0x1002b9c40
// > sub_1002B9B0C @ 0x1002b9c70
// > PlayerObject::hitGround @ 0x1002c0780
// > sub_1002C28E0 @ 0x1002c2c40
// > sub_1002C28E0 @ 0x1002c2cd4
// > PlayerObject::ringJump @ 0x1002c58c0
// > PlayerObject::toggleRobotMode @ 0x1002c7f0c
// > PlayerObject::toggleRobotMode @ 0x1002c7fbc
// > PlayerObject::toggleSpiderMode @ 0x1002c8220
// > PlayerObject::propellPlayer @ 0x1002c9b38
// > PlayerObject::propellPlayer @ 0x1002c9b74
// > PlayerObject::updateRobotAnimationSpeed @ 0x1002ca548
// > PlayerObject::animationFinished @ 0x1002cb598
// > PlayerObject::animationFinished @ 0x1002cb61c
// > PlayerObject::animationFinished @ 0x1002cb64c
// > PlayerObject::animationFinished @ 0x1002cb6f4
// > PlayerObject::animationFinished @ 0x1002cb730
// > GJRobotSprite::init @ 0x1002dc86c
// > CCAnimatedSprite::tweenToAnimationFinished @ 0x10039a790
//
// This function is hookable on this platform (idp: arm, 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 11:03:43 +0000
//
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]);
}