//
// CCAnimatedSprite::tweenToAnimationFinished from 0x1002fdd8c to 0x1002fde0c (128 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::tweenToAnimation @ 0x1002fdcfc
//
// 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::tweenToAnimationFinished(CCAnimatedSprite *a1)
{
std::string *p_m_activeTween; // x19
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
char *longStorage; // [xsp+10h] [xbp-20h]
p_m_activeTween = (std::string *)&a1->m_activeTween;
if ( a1->m_activeTween.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
sub_1000097D0(__p, (void *)a1->m_activeTween.m_data.m_long.capacitym1, a1->m_activeTween.m_data.m_long.size);
}
else
{
*(_OWORD *)__p = *(_OWORD *)&p_m_activeTween->__r_.__value_.__l.__data_;
longStorage = a1->m_activeTween.m_data.m_long.longStorage;
}
CCAnimatedSprite::runAnimation((__int64)a1, (__int64)__p);
if ( SHIBYTE(longStorage) < 0 )
operator delete(__p[0]);
std::string::assign(p_m_activeTween, "");
}