//
// CCSpritePart::frameChanged from 0x10007edec to 0x10007ee90 (164 bytes)
//
// 2 xrefs:
// > CCPartAnimSprite::transformSprite @ 0x10007ed5c
// > CCPartAnimSprite::tweenSpriteTo @ 0x10007efb8
//
// 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
//
std::string *__fastcall CCSpritePart::frameChanged(std::string *a1, std::string *__str)
{
void (__fastcall ***data)(_QWORD, _QWORD, _QWORD); // x21
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
std::string::size_type v7; // [xsp+10h] [xbp-30h]
data = (void (__fastcall ***)(_QWORD, _QWORD, _QWORD))a1[27].__r_.__value_.__l.__data_;
if ( data && !sub_1000045BC(__str, a1[26].__r_.__value_.__r.__words) )
{
if ( SHIBYTE(__str->__r_.__value_.__r.__words[2]) < 0 )
{
sub_1000097D0(__p, __str->__r_.__value_.__l.__data_, __str->__r_.__value_.__l.__size_);
}
else
{
*(_OWORD *)__p = *(_OWORD *)&__str->__r_.__value_.__l.__data_;
v7 = __str->__r_.__value_.__r.__words[2];
}
(**data)(data, a1, __p);
if ( SHIBYTE(v7) < 0 )
operator delete(__p[0]);
}
return std::string::operator=(a1 + 26, __str);
}