//
// GJBaseGameLayer::addKeyframe from 0x140233b80 to 0x140233c0a (138 bytes)
//
// 6 xrefs:
// > ??> @ 0x1405670e8
// > ??> @ 0x1405c9cd0
// > ??> @ 0x1406810e4
// > ??> @ 0x1406810f4
// > ??> @ 0x1406cdf74
// > ??> @ 0x1406cdf80
//
// 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 GJBaseGameLayer::addKeyframe(GJBaseGameLayer *a1, KeyframeGameObject *a2)
{
cocos2d::CCArray *v4; // rax
cocos2d::CCArray *v5; // rdi
unsigned int m_keyframeIndex; // esi
a2->m_keyframeActive = 1;
v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_keyframeGroups, a2->m_keyframeGroup);
v5 = v4;
if ( v4 )
{
m_keyframeIndex = a2->m_keyframeIndex;
if ( m_keyframeIndex < cocos2d::CCArray::count(v4) )
cocos2d::CCArray::insertObject(v5, a2, m_keyframeIndex);
else
cocos2d::CCArray::addObject(v5, a2);
GJBaseGameLayer::updateKeyframeOrder(a1, a2->m_keyframeGroup);
}
}