//
// CCSpritePart::updateDisplayFrame from 0x10035e170 to 0x10035e1fb (139 bytes)
//
// 1 xrefs:
// > CCPartAnimSprite::changeTextureOfID @ 0x10035e0ff
//
// 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
//
__int64 __fastcall CCSpritePart::updateDisplayFrame(std::string *a1, std::string *a2)
{
__int64 v2; // rax
const char *data; // r14
__int64 v4; // rax
std::string v6[2]; // [rsp+0h] [rbp-30h] BYREF
if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )
sub_10001AD30(v6, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_);
else
v6[0] = *a2;
CCSpritePart::frameChanged(a1, v6);
if ( (*(_BYTE *)&v6[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v6[0].__r_.__value_.__l.__data_);
v2 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )
data = a2->__r_.__value_.__l.__data_;
else
data = a2->__r_.__value_.__s.__data_;
v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, data);
return (*(__int64 (__fastcall **)(std::string *, __int64))(a1->__r_.__value_.__r.__words[0] + 1160))(a1, v4);
}