//
// cocos2d::CCAnimation::addSpriteFrame from 0x100296da0 to 0x100296e67 (199 bytes)
//
// 2 xrefs:
// > cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0x100296eed
// > cocos2d::CCAnimation::addSpriteFrameWithTexture @ 0x100296f20
//
// 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
//
void __fastcall cocos2d::CCAnimation::addSpriteFrame(cocos2d::CCAnimation *a1, cocos2d::CCSpriteFrame *a2)
{
_QWORD *v3; // r14
cocos2d::CCObject *v4; // rdi
cocos2d::CCObject *v5; // rdi
v3 = operator new(0x50u);
cocos2d::CCObject::CCObject(v3);
*v3 = off_1008F77A8;
v3[7] = 0;
*((_DWORD *)v3 + 16) = 0;
v3[9] = 0;
*((_DWORD *)v3 + 7) = 14;
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v4 = (cocos2d::CCObject *)v3[7];
if ( v4 )
cocos2d::CCObject::release(v4);
v3[7] = a2;
v5 = (cocos2d::CCObject *)v3[9];
*((_DWORD *)v3 + 16) = 1065353216;
if ( v5 )
{
cocos2d::CCObject::release(v5);
v3[9] = 0;
}
}
else
{
*((_DWORD *)v3 + 16) = 1065353216;
}
sub_10071FCD0(a1->m_pFrames, v3);
cocos2d::CCObject::release((cocos2d::CCObject *)v3);
a1->m_fTotalDelayUnits = a1->m_fTotalDelayUnits + 1.0;
}