//
// SetupTriggerPopup::toggleEaseRateVisibility from 0x14047ce70 to 0x14047cf7c (268 bytes)
//
// 5 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x14047cad3
// > SetupTriggerPopup::onEase @ 0x14047cfde
// > ??> @ 0x1406a5d00
// > ??> @ 0x1406a5d10
// > ??> @ 0x1406db87c
//
// 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 SetupTriggerPopup::toggleEaseRateVisibility(SetupTriggerPopup *a1)
{
bool v2; // si
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v4; // edi
switch ( a1->m_easingType )
{
case EaseInOut:
case EaseIn:
case EaseOut:
case ElasticInOut:
case ElasticIn:
case ElasticOut:
v2 = 1;
break;
default:
m_gameObjects = a1->m_gameObjects;
v2 = 0;
if ( m_gameObjects )
{
if ( cocos2d::CCArray::count(m_gameObjects) )
{
v2 = 1;
v4 = 0;
if ( cocos2d::CCArray::count(a1->m_gameObjects) )
{
while ( 2 )
{
switch ( LODWORD(cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v4)[27].__vftable) )
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
if ( ++v4 < cocos2d::CCArray::count(a1->m_gameObjects) )
continue;
break;
default:
v2 = 0;
break;
}
break;
}
}
}
}
break;
}
a1->m_easingRateButton->setVisible(a1->m_easingRateButton, v2);
}