//
// GJBaseGameLayer::addKeyframe from 0x1001fb36c to 0x1001fb3f8 (140 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addKeyframe @ 0x100364274
// > ??> @ 0x10078fe60
// > ??> @ 0x1007c0c78
//
// 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 GJBaseGameLayer::addKeyframe(GJBaseGameLayer *a1, KeyframeGameObject *a2)
{
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x21
unsigned int m_keyframeIndex; // w22
a2->m_keyframeActive = 1;
v4 = cocos2d::CCDictionary::objectForKey(a1->m_keyframeGroups, a2->m_keyframeGroup);
if ( v4 )
{
v5 = v4;
m_keyframeIndex = a2->m_keyframeIndex;
if ( m_keyframeIndex >= (unsigned int)sub_10024A36C(v4) )
sub_10024A2D0(v5, a2);
else
sub_10024A428(v5, a2, (unsigned int)a2->m_keyframeIndex);
GJBaseGameLayer::updateKeyframeOrder(a1, a2->m_keyframeGroup);
}
}