//
// GJBaseGameLayer::addKeyframe from 0x5954de to 0x59552a (76 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addKeyframe @ 0x45e7d4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:53:08 +0000
//
cocos2d::CCArray *__fastcall GJBaseGameLayer::addKeyframe(cocos2d::CCDictionary **this, KeyframeGameObject *a2)
{
cocos2d::CCArray *result; // r0
cocos2d::CCArray *v5; // r6
unsigned int v6; // r7
*((_BYTE *)a2 + 1681) = 1;
result = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(this + 2808), *((_DWORD *)a2 + 414));
v5 = result;
if ( result )
{
v6 = *((_DWORD *)a2 + 415);
if ( v6 >= cocos2d::CCArray::count(result) )
cocos2d::CCArray::addObject(v5, a2);
else
cocos2d::CCArray::insertObject(v5, a2, *((_DWORD *)a2 + 415));
return GJBaseGameLayer::updateKeyframeOrder(this, *((_DWORD *)a2 + 414));
}
return result;
}