//
// EnhancedGameObject::setupAnimationVariables from 0xaf3988 to 0xaf3a3c (180 bytes)
//
// 4 xrefs:
// > EnhancedGameObject::saveActiveColors @ 0x772028
// > SetupAnimSettingsPopup::updateAnimSettings @ 0xa9a5a8
// > SetupAnimSettingsPopup::updateAnimSettings @ 0xa9a5c0
// > ??> @ 0xdd410
//
// 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 13:01:14 +0000
//
__int64 __fastcall EnhancedGameObject::setupAnimationVariables(EnhancedGameObject *this)
{
GameManager *v2; // x0
cocos2d::CCDictionary **v3; // x0
GameManager *v4; // x0
cocos2d::CCDictionary **v5; // x0
float v6; // s0
float v7; // s1
float v8; // s2
bool v9; // w0
__int64 result; // x0
v2 = (GameManager *)*((unsigned int *)this + 257);
if ( (_DWORD)v2 == 2065 )
{
v6 = *((float *)this + 345);
}
else
{
v3 = (cocos2d::CCDictionary **)GameManager::sharedState(v2);
v4 = (GameManager *)GameManager::framesForAnimation(v3, *((_DWORD *)this + 257));
*((_WORD *)this + 692) = (_WORD)v4;
v5 = (cocos2d::CCDictionary **)GameManager::sharedState(v4);
v6 = GameManager::frameTimeForAnimation(v5, *((_DWORD *)this + 257));
}
v7 = *((float *)this + 343);
if ( *((_BYTE *)this + 1416) )
{
v8 = *((float *)this + 353);
if ( v8 != 0.0 )
v7 = fabsf(v8);
}
*((float *)this + 345) = v6 / v7;
v9 = GameObject::usesFreezeAnimation(this);
if ( !v9 || *((_BYTE *)this + 1418) )
{
*((_BYTE *)this + 774) = 0;
v9 = 0;
}
*((_BYTE *)this + 1376) = v9;
*((_BYTE *)this + 1377) = GameObject::shouldNotHideAnimFreeze(this);
result = GameObject::usesSpecialAnimation(this);
*((_BYTE *)this + 1378) = result;
return result;
}