//
// CCSpritePart::updateDisplayFrame from 0x6936e0 to 0x6937d4 (244 bytes)
//
// 2 xrefs:
// > CCPartAnimSprite::changeTextureOfID @ 0x6938c0
// > ??> @ 0x7ea30
//
// This function is hookable on this platform (idp: arm, 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:50:36 +0000
//
__int64 __fastcall CCSpritePart::updateDisplayFrame(cocos2d::CCSpriteFrameCache **a1, char *a2)
{
char v4; // w0
__int64 v5; // x0
__int64 v6; // x1
void (__fastcall *v7)(cocos2d::CCSpriteFrameCache **, __int64); // x22
cocos2d::CCSpriteFrameCache *v8; // x0
const char *v9; // x1
__int64 v10; // x0
__int64 v12; // [xsp+30h] [xbp+30h] BYREF
__int64 v13; // [xsp+38h] [xbp+38h]
void *v14; // [xsp+40h] [xbp+40h]
v12 = 0;
v4 = *a2;
v13 = 0;
v14 = nullptr;
if ( (v4 & 1) != 0 )
{
std::string::__init(&v12, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v5 = *(_QWORD *)a2;
v6 = *((_QWORD *)a2 + 1);
v14 = *((void **)a2 + 2);
v12 = v5;
v13 = v6;
}
CCSpritePart::frameChanged((__int64)a1, (__int64)&v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
v7 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*a1 + 145);
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*a1);
v9 = a2 + 1;
if ( (*a2 & 1) != 0 )
v9 = *((const char **)a2 + 2);
v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9);
v7(a1, v10);
return _stack_chk_guard;
}