//
// SetupMGTrigger::toggleEasingRateVisibility from 0xa1f770 to 0xa1f808 (152 bytes)
//
// 3 xrefs:
// > SetupMGTrigger::init @ 0xa205c0
// > SetupMGTrigger::onEasing @ 0xa21034
// > ??> @ 0x82968
//
// 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 SetupMGTrigger::toggleEasingRateVisibility(SetupMGTrigger *a1)
{
bool isRateEasing; // w0
int v3; // w21
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v5; // w19
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
isRateEasing = GameToolbox::isRateEasing(a1->m_mgEasingType);
v3 = isRateEasing;
if ( !isRateEasing )
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
if ( (unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v8 = v5++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8);
if ( !GameToolbox::isRateEasing(*(_DWORD *)(v6 + 1480)) )
goto LABEL_9;
}
v3 = 1;
}
}
}
LABEL_9:
a1->m_mgEasingRateButton->setVisible(a1->m_mgEasingRateButton, v3);
}