//
// CCAnimatedSprite::tweenToAnimationFinished from 0x10033c530 to 0x10033c5f3 (195 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::tweenToAnimation @ 0x10033c49e
//
// This function is hookable on this platform (idp: pc, 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 12:28:41 +0000
//
std::string *__fastcall CCAnimatedSprite::tweenToAnimationFinished(std::string *a1)
{
std::string *v1; // rbx
std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610 v2; // r14
__int128 v4; // [rsp+0h] [rbp-50h] BYREF
void *__p; // [rsp+10h] [rbp-40h]
__int128 v6; // [rsp+20h] [rbp-30h] BYREF
void *data; // [rsp+30h] [rbp-20h]
v1 = a1 + 26;
if ( (*(_BYTE *)&a1[26].__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v6, a1[26].__r_.__value_.__l.__data_, a1[26].__r_.__value_.__l.__size_);
v2 = (std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610)a1[27].__r_.__value_.__r.__words[0];
if ( (v6 & 1) != 0 )
goto LABEL_3;
}
else
{
data = a1[26].__r_.__value_.__l.__data_;
v6 = *(_OWORD *)&v1->__r_.__value_.__l.0;
v2 = (std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610)a1[27].__r_.__value_.__r.__words[0];
if ( (v6 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(&v4, data, *((unsigned __int64 *)&v6 + 1));
goto LABEL_6;
}
}
__p = data;
v4 = v6;
LABEL_6:
((void (__fastcall *)(_QWORD, _QWORD))SpriteAnimationManager::runAnimation)(v2, &v4);
if ( (v4 & 1) != 0 )
operator delete(__p);
if ( (v6 & 1) != 0 )
operator delete(data);
return std::string::assign(v1, "");
}