//
// CCSpritePart::frameChanged from 0x14004a710 to 0x14004a7ba (170 bytes)
//
// 3 xrefs:
// > CCPartAnimSprite::setDisplayFrame @ 0x140049ff7
// > CCPartAnimSprite::tweenToFrame @ 0x14004a2f5
// > ??> @ 0x14090fd64
//
// 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 11:25:32 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall CCSpritePart::frameChanged(__int64 a1, void **a2)
{
__int64 v4; // rax
void *v5; // rdx
_BYTE v6[32]; // [rsp+28h] [rbp-40h] BYREF
void **v7; // [rsp+48h] [rbp-20h]
v7 = a2;
if ( *(_QWORD *)(a1 + 664) && sub_14003D160(a2, (_QWORD *)(a1 + 632)) )
{
v4 = sub_14003F4F0((__int64)v6, (__int64)a2);
(***(void (__fastcall ****)(_QWORD, __int64, __int64))(a1 + 664))(*(_QWORD *)(a1 + 664), a1, v4);
}
if ( (void **)(a1 + 632) != a2 )
{
v5 = a2;
if ( (unsigned __int64)a2[3] > 0xF )
v5 = *a2;
sub_1400405A0((void **)(a1 + 632), v5, (size_t)a2[2]);
}
sub_14003D310((__int64)a2);
}