//
// SetupAnimationPopup::updateAnimationID from 0x14040a060 to 0x14040a0f9 (153 bytes)
//
// 3 xrefs:
// > SetupAnimationPopup::onAnimationIDArrow @ 0x140409c7a
// > SetupAnimationPopup::textChanged @ 0x140409e6d
// > ??> @ 0x1406d8a98
//
// 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 SetupAnimationPopup::updateAnimationID(SetupAnimationPopup *a1)
{
int m_animationID; // eax
unsigned int v3; // ebx
int v4; // ecx
EffectGameObject *m_gameObject; // rax
cocos2d::CCArray *m_gameObjects; // rcx
struct cocos2d::CCObject *v7; // rax
m_animationID = a1->m_animationID;
v3 = 0;
v4 = 0;
if ( m_animationID >= 0 )
v4 = m_animationID;
if ( v4 > 999 )
v4 = 999;
m_gameObject = a1->m_gameObject;
a1->m_animationID = v4;
if ( m_gameObject )
{
m_gameObject->m_animationID = v4;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v3++);
v7[29].m_nZOrder = a1->m_animationID;
}
while ( v3 < cocos2d::CCArray::count(a1->m_gameObjects) );
}
}
}