//
// GameManager::addCustomAnimationFrame from 0x10034f588 to 0x10034f69c (276 bytes)
//
// 1 xrefs:
// > GameManager::setupGameAnimations @ 0x10034ae2c
//
// 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
//
__int64 __fastcall GameManager::addCustomAnimationFrame(
__int64 result,
int a2,
unsigned int a3,
__int64 a4,
__int64 a5)
{
__int64 v9; // x22
__int64 v10; // x8
cocos2d::CCObject *v11; // x24
unsigned int v12; // w25
cocos2d::CCObject *v13; // x21
unsigned int v14; // w22
v9 = result;
v10 = *(char *)(a4 + 23);
if ( v10 < 0 )
v10 = *(_QWORD *)(a4 + 8);
if ( v10 )
{
v11 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(result + 352), a2);
v12 = sub_10024A36C((__int64)v11);
sub_100268E48((__int128 *)a4);
if ( v12 >= a3 )
result = sub_10024A428((__int64)v11);
else
result = sub_10024A2D0((__int64)v11);
}
if ( (*(char *)(a5 + 23) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(a5 + 8) )
return result;
}
else if ( !*(_BYTE *)(a5 + 23) )
{
return result;
}
v13 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v9 + 360), a2);
v14 = sub_10024A36C((__int64)v13);
sub_100268E48((__int128 *)a5);
if ( v14 >= a3 )
return sub_10024A428((__int64)v13);
else
return sub_10024A2D0((__int64)v13);
}