//
// CCSpritePart::frameChanged from 0x692e88 to 0x692fb8 (304 bytes)
//
// 4 xrefs:
// > CCPartAnimSprite::transformSprite @ 0x6930bc
// > CCPartAnimSprite::tweenSpriteTo @ 0x693424
// > CCSpritePart::updateDisplayFrame @ 0x693738
// > ??> @ 0x65a58
//
// 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::frameChanged(__int64 a1, __int64 a2)
{
__int64 *v4; // x21
void (__fastcall ***v5)(_QWORD, __int64, __int64 *); // x23
const void *v6; // x1
size_t v7; // x2
char v9; // w0
void (__fastcall *v10)(_QWORD, __int64, __int64 *); // x25
__int64 v11; // x0
__int64 v12; // x1
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
__int64 v14; // [xsp+58h] [xbp+58h]
void *v15; // [xsp+60h] [xbp+60h]
v4 = (__int64 *)(a1 + 624);
v5 = *(void (__fastcall ****)(_QWORD, __int64, __int64 *))(a1 + 648);
if ( v5 && !sub_692560(a2, (__int64)v4) )
{
v9 = *(_BYTE *)a2;
v10 = **v5;
v13 = 0;
v14 = 0;
v15 = nullptr;
if ( (v9 & 1) != 0 )
{
std::string::__init(&v13, *(void **)(a2 + 16), *(_QWORD *)(a2 + 8));
}
else
{
v11 = *(_QWORD *)a2;
v12 = *(_QWORD *)(a2 + 8);
v15 = *(void **)(a2 + 16);
v13 = v11;
v14 = v12;
}
v10(v5, a1, &v13);
if ( (v13 & 1) != 0 )
operator delete(v15);
}
if ( (__int64 *)a2 != v4 )
{
if ( (*(_BYTE *)a2 & 1) != 0 )
{
v6 = *(const void **)(a2 + 16);
v7 = *(_QWORD *)(a2 + 8);
}
else
{
v6 = (const void *)(a2 + 1);
v7 = *(_BYTE *)a2 >> 1;
}
std::string::assign(v4, v6, v7);
}
return _stack_chk_guard;
}