//
// GJBaseGameLayer::addKeyframe from 0x864fc8 to 0x865068 (160 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::addKeyframe @ 0x65b6cc
// > ??> @ 0x76068
// > ??> @ 0x1148af8
// > ??> @ 0x11907e8
//
// 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::CCDictionary *m_keyframeGroups; // x0
intptr_t m_keyframeGroup; // x1
cocos2d::CCArray *v6; // x0
cocos2d::CCArray *v7; // x21
unsigned int m_keyframeIndex; // w22
m_keyframeGroups = a1->m_keyframeGroups;
m_keyframeGroup = a2->m_keyframeGroup;
a2->m_keyframeActive = 1;
v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(m_keyframeGroups, m_keyframeGroup);
v7 = v6;
if ( v6 )
{
m_keyframeIndex = a2->m_keyframeIndex;
if ( m_keyframeIndex >= (unsigned int)cocos2d::CCArray::count(v6) )
cocos2d::CCArray::addObject(v7, a2);
else
cocos2d::CCArray::insertObject(v7, a2, a2->m_keyframeIndex);
GJBaseGameLayer::updateKeyframeOrder(a1, a2->m_keyframeGroup);
}
}