//
// SetupAnimationPopup::updateAnimationID from 0x1003d57a0 to 0x1003d5831 (145 bytes)
//
// 0 xrefs:
//
// 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 __fastcall SetupAnimationPopup::updateAnimationID(SetupAnimationPopup *a1)
{
int m_animationID; // ecx
int v2; // eax
EffectGameObject *m_gameObject; // rcx
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v6; // r14d
m_animationID = 0;
if ( a1->m_animationID > 0 )
m_animationID = a1->m_animationID;
v2 = 999;
if ( m_animationID < 999 )
v2 = m_animationID;
a1->m_animationID = v2;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_animationID = v2;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )
{
v6 = 0;
do
*(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v6++) + 1652) = a1->m_animationID;
while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
}