//
// GJBaseGameLayer::updateKeyframeOrder from 0x1002975e4 to 0x100297688 (164 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::addKeyframe @ 0x1002975e0
// > GJBaseGameLayer::removeKeyframe @ 0x1002976c8
// > sub_10040642C @ 0x100406460
//
// 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::updateKeyframeOrder(__int64 a1, int a2)
{
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x0
int v5; // w21
int v6; // w22
__int64 v7; // x20
int v8; // w23
__int64 v9; // x0
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 13272), a2);
if ( v2 )
{
v3 = v2;
if ( (unsigned int)sub_1002E757C(v2) )
{
v4 = sub_1002E75A0(v3, 0);
v5 = *(unsigned __int8 *)(v4 + 1882);
v6 = *(unsigned __int16 *)(v4 + 1202);
if ( (unsigned int)sub_1002E757C(v3) )
{
v7 = 0;
v8 = v6 + 1;
do
{
v9 = sub_1002E75A0(v3, v7);
*(_DWORD *)(v9 + 1860) = v7;
*(_BYTE *)(v9 + 1882) = v5;
if ( v5 )
{
*(_WORD *)(v9 + 1202) = v6;
*(_WORD *)(v9 + 1204) = v8++;
}
v7 = (unsigned int)(v7 + 1);
}
while ( (unsigned int)v7 < (unsigned int)sub_1002E757C(v3) );
}
}
}
}