//
// GJBaseGameLayer::addKeyframe from 0x100297558 to 0x1002975e4 (140 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addKeyframe @ 0x100406348
// > ??> @ 0x1008dfa18
// > ??> @ 0x1009190a0
//
// This function is hookable on this platform (idp: arm, 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:02:06 +0000
//
void __fastcall GJBaseGameLayer::addKeyframe(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x21
unsigned int v6; // w22
__n128 v7; // q0
*(_BYTE *)(a2 + 1881) = 1;
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 13272), *(int *)(a2 + 1856));
if ( v4 )
{
v5 = v4;
v6 = *(_DWORD *)(a2 + 1860);
if ( v6 >= (unsigned int)sub_1002E757C(v4) )
v7 = sub_1002E74E0(v5, a2);
else
sub_1002E7640(v5, a2, *(unsigned int *)(a2 + 1860));
GJBaseGameLayer::updateKeyframeOrder(a1, *(unsigned int *)(a2 + 1856), v7);
}
}