//
// GameManager::addCustomAnimationFrame from 0x1402ac7b0 to 0x1402ac8c1 (273 bytes)
//
// 2 xrefs:
// > GameManager::setupGameAnimations @ 0x1402a9c46
// > ??> @ 0x14091db34
//
// 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:29:20 +0000
//
// 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::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 384), 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::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 392), 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_14003D310(a4);
sub_14003D310(a5);
}