//
// EnhancedGameObject::setupAnimationVariables from 0x52e3a2 to 0x52e434 (146 bytes)
//
// 3 xrefs:
// > EnhancedGameObject::saveActiveColors @ 0x358e2c
// > SetupAnimSettingsPopup::updateAnimSettings @ 0x4f418c
// > SetupAnimSettingsPopup::updateAnimSettings @ 0x4f4198
//
// 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
//
void EnhancedGameObject::setupAnimationVariables(EnhancedGameObject *a1)
{
float *p_m_frameTime; // r5
GameManager *v3; // r0
GameManager *v4; // r0
float m_randomFrameTime; // s14
float m_animationSpeed; // s15
_BOOL4 v7; // r0
p_m_frameTime = &a1->m_frameTime;
if ( a1->m_objectID != 2065 )
{
v3 = GameManager::sharedState();
a1->m_frames = GameManager::framesForAnimation(v3, a1->m_objectID);
v4 = GameManager::sharedState();
*p_m_frameTime = GameManager::frameTimeForAnimation(v4, a1->m_objectID);
}
m_randomFrameTime = a1->m_randomFrameTime;
if ( a1->m_animationShouldUseSpeed )
{
m_animationSpeed = a1->m_animationSpeed;
if ( m_animationSpeed != 0.0 )
m_randomFrameTime = fabsf(m_animationSpeed);
}
*p_m_frameTime = *p_m_frameTime / m_randomFrameTime;
v7 = GameObject::usesFreezeAnimation(a1);
if ( v7 )
v7 = !a1->m_disableDelayedLoop;
a1->m_visible = v7;
if ( !v7 )
a1->m_isDisabled2 = 0;
a1->m_shouldNotHideAnimFreeze = GameObject::shouldNotHideAnimFreeze(a1);
a1->m_usesSpecialAnimation = GameObject::usesSpecialAnimation(a1);
}