//
// SetupMGTrigger::toggleEasingRateVisibility from 0x100509990 to 0x100509a3b (171 bytes)
//
// 2 xrefs:
// > SetupMGTrigger::init @ 0x100508f6d
// > SetupMGTrigger::onEasing @ 0x100509aee
//
// 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 SetupMGTrigger::toggleEasingRateVisibility(SetupMGTrigger *a1)
{
bool isRateEasing; // r14
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v4; // r15d
__int64 v5; // rax
isRateEasing = 1;
if ( !GameToolbox::isRateEasing(a1->m_mgEasingType) )
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )
{
if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v4 = 0;
do
{
v5 = sub_1007200C0(a1->m_gameObjects, v4);
isRateEasing = GameToolbox::isRateEasing(*(_DWORD *)(v5 + 1496));
if ( !isRateEasing )
break;
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
else
{
isRateEasing = 0;
}
}
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_mgEasingRateButton->setVisible)(
a1->m_mgEasingRateButton,
isRateEasing);
}