//
// cocos2d::CCAnimationFrame::initWithSpriteFrame from 0x1002964c0 to 0x100296545 (133 bytes)
//
// 2 xrefs:
// > cocos2d::CCAnimationCache::parseVersion1 @ 0x10046d69f
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x10046d973
//
// 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
//
bool __fastcall cocos2d::CCAnimationFrame::initWithSpriteFrame(
cocos2d::CCAnimationFrame *a1,
cocos2d::CCSpriteFrame *a2,
float a3,
cocos2d::CCDictionary *a4)
{
cocos2d::CCSpriteFrame *v6; // rdi
cocos2d::CCDictionary *v7; // rdi
v6 = (cocos2d::CCSpriteFrame *)a1[1].__vftable;
if ( v6 != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v6 = (cocos2d::CCSpriteFrame *)a1[1].__vftable;
}
if ( v6 )
cocos2d::CCObject::release(v6);
a1[1].__vftable = (cocos2d::CCAnimationFrame_vtbl *)a2;
}
*(float *)&a1[1].m_uID = a3;
v7 = *(cocos2d::CCDictionary **)&a1[1].m_nTag;
if ( v7 != a4 )
{
if ( a4 )
{
cocos2d::CCObject::retain(a4);
v7 = *(cocos2d::CCDictionary **)&a1[1].m_nTag;
}
if ( v7 )
cocos2d::CCObject::release(v7);
*(_QWORD *)&a1[1].m_nTag = a4;
}
return 1;
}