//
// GJBaseGameLayer::addKeyframe from 0x14033c850 to 0x14033c8da (138 bytes)
//
// 6 xrefs:
// > ??> @ 0x14076b8c8
// > ??> @ 0x1407d5f28
// > ??> @ 0x1408b7308
// > ??> @ 0x1408b7318
// > ??> @ 0x14091fbb0
// > ??> @ 0x14091fbbc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:30:37 +0000
//
cocos2d::CCArray *__fastcall GJBaseGameLayer::addKeyframe(__int64 a1, __int64 a2)
{
cocos2d::CCArray *result; // rax
cocos2d::CCArray *v5; // rdi
unsigned int v6; // esi
*(_BYTE *)(a2 + 1897) = 1;
result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 13872), *(int *)(a2 + 1872));
v5 = result;
if ( result )
{
v6 = *(_DWORD *)(a2 + 1876);
if ( v6 < cocos2d::CCArray::count(result) )
cocos2d::CCArray::insertObject(v5, (struct cocos2d::CCObject *)a2, v6);
else
cocos2d::CCArray::addObject(v5, (struct cocos2d::CCObject *)a2);
return (cocos2d::CCArray *)GJBaseGameLayer::updateKeyframeOrder(a1, *(unsigned int *)(a2 + 1872));
}
return result;
}