//
// CCSpritePart::frameChanged from 0x3c7408 to 0x3c7478 (112 bytes)
//
// 3 xrefs:
// > CCPartAnimSprite::transformSprite @ 0x3c7520
// > CCPartAnimSprite::tweenSpriteTo @ 0x3c76ee
// > CCSpritePart::updateDisplayFrame @ 0x3c776a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:35 +0000
//
unsigned __int8 *__fastcall CCSpritePart::frameChanged(int a1, unsigned __int8 *a2, int a3, int a4)
{
void (__fastcall ***v6)(_DWORD, int, int *); // r8
unsigned __int8 *v7; // r9
void (__fastcall *v8)(_DWORD, int, int *); // r10
int v10[4]; // [sp+0h] [bp-10h] BYREF
v10[0] = a1;
v10[1] = (int)a2;
v10[2] = a3;
v10[3] = a4;
v6 = *(void (__fastcall ****)(_DWORD, int, int *))(a1 + 532);
v7 = (unsigned __int8 *)(a1 + 520);
if ( v6 && !sub_3C6FE4(a2, v7) )
{
v8 = **v6;
std::string::basic_string(v10, (int)a2);
v8(v6, a1, v10);
std::string::~string((int)v10);
}
return std::string::operator=(v7, a2);
}