//
// SetupTriggerPopup::toggleEaseRateVisibility from 0x100134284 to 0x100134324 (160 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x100133f54
// > SetupTriggerPopup::onEase @ 0x1001340d8
//
// 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 SetupTriggerPopup::toggleEaseRateVisibility(SetupTriggerPopup *a1)
{
_BOOL8 isRateEasing; // x20
cocos2d::CCArray *m_gameObjects; // x0
__int64 v4; // x21
__int64 v5; // x0
if ( GameToolbox::isRateEasing(a1->m_easingType) )
goto LABEL_2;
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects || !(unsigned int)sub_10024A36C(m_gameObjects) )
{
isRateEasing = 0;
goto LABEL_11;
}
if ( !(unsigned int)sub_10024A36C(a1->m_gameObjects) )
{
LABEL_2:
isRateEasing = 1;
}
else
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_gameObjects, v4);
isRateEasing = GameToolbox::isRateEasing(*(_DWORD *)(v5 + 1496));
if ( !isRateEasing )
break;
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
LABEL_11:
((void (__fastcall *)(CCMenuItemSpriteExtra *, _BOOL8))a1->m_easingRateButton->setVisible)(
a1->m_easingRateButton,
isRateEasing);
}