//
// GameManager::addCustomAnimationFrame from 0x1401aeb60 to 0x1401aec71 (273 bytes)
//
// 2 xrefs:
// > GameManager::setupGameAnimations @ 0x1401ac669
// > ??> @ 0x1406cc1c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void __fastcall GameManager::addCustomAnimationFrame(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
cocos2d::CCArray *v7; // rsi
struct cocos2d::CCObject *v8; // rax
struct cocos2d::CCObject *v9; // rax
cocos2d::CCArray *v10; // rsi
struct cocos2d::CCObject *v11; // rax
struct cocos2d::CCObject *v12; // rax
if ( *(_QWORD *)(a4 + 16) )
{
v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 360), 1583);
if ( cocos2d::CCArray::count(v7) < 4 )
{
v9 = (struct cocos2d::CCObject *)cocos2d::CCString::create(a4);
cocos2d::CCArray::addObject(v7, v9);
}
else
{
v8 = (struct cocos2d::CCObject *)cocos2d::CCString::create(a4);
cocos2d::CCArray::insertObject(v7, v8, 3u);
}
}
if ( *(_QWORD *)(a5 + 16) )
{
v10 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 368), 1583);
if ( cocos2d::CCArray::count(v10) < 4 )
{
v12 = (struct cocos2d::CCObject *)cocos2d::CCString::create(a5);
cocos2d::CCArray::addObject(v10, v12);
}
else
{
v11 = (struct cocos2d::CCObject *)cocos2d::CCString::create(a5);
cocos2d::CCArray::insertObject(v10, v11, 3u);
}
}
sub_14003A830(a4);
sub_14003A830(a5);
}