//
// CCSpritePart::frameChanged from 0x10035dcc0 to 0x10035ddbd (253 bytes)
//
// 3 xrefs:
// > CCPartAnimSprite::transformSprite @ 0x10035dc4d
// > CCPartAnimSprite::tweenSpriteTo @ 0x10035df28
// > CCSpritePart::updateDisplayFrame @ 0x10035e1b0
//
// 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:55 +0000
//
std::string *__fastcall CCSpritePart::frameChanged(std::string *a1, const std::string *a2)
{
unsigned int v4; // r13d
std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v5; // r12
size_t v6; // r15
std::string::pointer data; // rdi
size_t v8; // r13
std::string::pointer v9; // rsi
size_t v10; // rdx
void (__fastcall ***v12)(_QWORD, std::string *, __int128 *); // [rsp+8h] [rbp-58h]
unsigned __int64 size; // [rsp+10h] [rbp-50h]
std::string::pointer v14; // [rsp+18h] [rbp-48h]
__int128 v15; // [rsp+20h] [rbp-40h] BYREF
void *__p; // [rsp+30h] [rbp-30h]
v12 = (void (__fastcall ***)(_QWORD, std::string *, __int128 *))a1[27].__r_.__value_.__r.__words[0];
if ( v12 )
{
v4 = (unsigned int)a1[26].__r_.__value_.__l.0;
v5 = a2->__r_.__value_.__s.0;
v6 = *(_BYTE *)&a2->__r_.__value_.__l.0 >> 1;
data = a2->__r_.__value_.__s.__data_;
size = a2->__r_.__value_.__l.__size_;
if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )
v6 = a2->__r_.__value_.__l.__size_;
v14 = a2->__r_.__value_.__l.__data_;
if ( (*(_BYTE *)&v5 & 1) != 0 )
data = a2->__r_.__value_.__l.__data_;
if ( (v4 & 1) != 0 )
{
v8 = a1[26].__r_.__value_.__l.__size_;
v9 = a1[26].__r_.__value_.__l.__data_;
}
else
{
v8 = v4 >> 1;
v9 = a1[26].__r_.__value_.__s.__data_;
}
v10 = v6;
if ( v8 < v6 )
v10 = v8;
if ( memcmp(data, v9, v10) || v8 != v6 )
{
if ( (*(_BYTE *)&v5 & 1) != 0 )
{
sub_10001AD30(&v15, v14, size);
}
else
{
__p = a2->__r_.__value_.__l.__data_;
v15 = *(_OWORD *)&a2->__r_.__value_.__l.0;
}
(**v12)(v12, a1, &v15);
if ( (v15 & 1) != 0 )
operator delete(__p);
}
}
return std::string::operator=(a1 + 26, a2);
}