//
// SetupTriggerPopup::toggleEaseRateVisibility from 0x545660 to 0x5456b6 (86 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x545b9c
// > SetupTriggerPopup::onEase @ 0x548820
//
// 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)
{
int isRateEasing; // r5
cocos2d::CCArray *m_gameObjects; // r0
unsigned int i; // r6
int v5; // r0
isRateEasing = GameToolbox::isRateEasing(a1->m_easingType);
if ( !isRateEasing )
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
if ( cocos2d::CCArray::count(m_gameObjects) )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);
if ( !GameToolbox::isRateEasing(*(_DWORD *)(v5 + 1308)) )
goto LABEL_9;
}
isRateEasing = 1;
}
}
}
LABEL_9:
a1->m_easingRateButton->setVisible(a1->m_easingRateButton, isRateEasing);
}