//
// GJBaseGameLayer::addKeyframe from 0x475e12 to 0x475e5e (76 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addKeyframe @ 0x364e2c
//
// 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; // r0
cocos2d::CCArray *v5; // r6
unsigned int m_keyframeIndex; // r7
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::addObject(v5, a2);
else
cocos2d::CCArray::insertObject(v5, a2, a2->m_keyframeIndex);
GJBaseGameLayer::updateKeyframeOrder(a1, a2->m_keyframeGroup);
}
}