//
// SetupAnimationPopup::updateAnimationID from 0x1003c3fac to 0x1003c402c (128 bytes)
//
// 2 xrefs:
// > SetupAnimationPopup::onAnimationIDArrow @ 0x1003c3da4
// > SetupAnimationPopup::textChanged @ 0x1003c4144
//
// 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 v1; // w8
EffectGameObject *m_gameObject; // x9
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v5; // w20
v1 = a1->m_animationID & ~(a1->m_animationID >> 31);
if ( v1 >= 999 )
v1 = 999;
a1->m_animationID = v1;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_animationID = v1;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_10024A36C((__int64)m_gameObjects) )
{
v5 = 0;
do
*(_DWORD *)(sub_10024A388((__int64)a1->m_gameObjects, v5++) + 1652) = a1->m_animationID;
while ( v5 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) );
}
}
}