// // CCSpritePart::frameChanged from 0x577604 to 0x57776c (360 bytes) // // 4 xrefs: // > CCPartAnimSprite::transformSprite @ 0x577854 // > CCPartAnimSprite::tweenSpriteTo @ 0x577be4 // > CCSpritePart::updateDisplayFrame @ 0x577f54 // > @ 0x8edb8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall CCSpritePart::frameChanged(__int64 a1, const void **a2) { void (__fastcall ***v4)(_QWORD, __int64, __int64 *); // x23 const void *v5; // x2 const void *v6; // x0 unsigned __int64 v7; // x21 const void *v8; // x1 unsigned __int64 v9; // x24 size_t v10; // x2 unsigned __int64 v11; // x21 void (__fastcall *v12)(_QWORD, __int64, __int64 *); // x21 void *v13; // x0 unsigned int *v15; // x2 int v16; // w1 __int64 v17; // [xsp+60h] [xbp+60h] BYREF v4 = *(void (__fastcall ****)(_QWORD, __int64, __int64 *))(a1 + 632); if ( v4 ) { v5 = *(const void **)(a1 + 624); v6 = *a2; v7 = *((_QWORD *)*a2 - 3); v8 = v5; v9 = *((_QWORD *)v5 - 3); v10 = v9 > v7 ? v7 : *((_QWORD *)v5 - 3); if ( memcmp(v6, v8, v10) || (v11 = v7 - v9, v11 + 0x80000000 > 0xFFFFFFFF) || (_DWORD)v11 ) { v12 = **v4; sub_D18D28(&v17, a2); v12(v4, a1, &v17); v13 = (void *)(v17 - 24); if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v17 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(v17 - 8); *(_DWORD *)(v17 - 8) = v16 - 1; } if ( v16 <= 0 ) operator delete(v13); } } } sub_D18EA8(a1 + 624, a2); return _stack_chk_guard; }