//
// GJBaseGameLayer::addKeyframe from 0x100129a40 to 0x100129ac6 (134 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addKeyframe @ 0x1000c8425
// > ??> @ 0x100abb100
// > ??> @ 0x100ac51c8
//
// 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 12:24:43 +0000
//
__int64 __fastcall GJBaseGameLayer::addKeyframe(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v3; // r15
unsigned int v4; // r12d
*(_BYTE *)(a2 + 1881) = 1;
result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 13272));
if ( result )
{
v3 = result;
v4 = *(_DWORD *)(a2 + 1860);
if ( v4 >= (unsigned int)sub_1007FEF90(result) )
sub_1007FEBF0(v3, a2);
else
sub_1007FF110(v3, a2, *(unsigned int *)(a2 + 1860));
return GJBaseGameLayer::updateKeyframeOrder(a1, *(unsigned int *)(a2 + 1856));
}
return result;
}