//
// cocos2d::CCAnimationFrame::initWithSpriteFrame from 0x180089fc0 to 0x18008a046 (134 bytes)
//
// 4 xrefs:
// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a9df
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008af28
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5a18
//
// 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
//
char __fastcall cocos2d::CCAnimationFrame::initWithSpriteFrame(
cocos2d::CCAnimationFrame *this,
struct cocos2d::CCSpriteFrame *a2,
float a3,
struct cocos2d::CCDictionary *a4)
{
cocos2d::CCObject *v7; // rcx
cocos2d::CCObject *v8; // rcx
if ( *((struct cocos2d::CCSpriteFrame **)this + 7) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
v7 = *((cocos2d::CCObject **)this + 7);
if ( v7 )
cocos2d::CCObject::release(v7);
*((_QWORD *)this + 7) = a2;
}
*((float *)this + 16) = a3;
if ( *((struct cocos2d::CCDictionary **)this + 9) != a4 )
{
if ( a4 )
cocos2d::CCObject::retain(a4);
v8 = *((cocos2d::CCObject **)this + 9);
if ( v8 )
cocos2d::CCObject::release(v8);
*((_QWORD *)this + 9) = a4;
}
return 1;
}