//
// SetupTriggerPopup::toggleCustomEaseRateVisibility from 0x9ea924 to 0x9eaa40 (284 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createCustomEasingControls @ 0x9eb1b8
// > SetupTriggerPopup::onCustomEaseArrow @ 0x9ed98c
// > ??> @ 0x672f0
//
// 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::toggleCustomEaseRateVisibility(SetupTriggerPopup *a1, int a2, int a3)
{
float v6; // s0
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v8; // w19
GameObject *v9; // x0
float TriggerValue; // s0
bool v11; // cf
unsigned int v12; // w1
cocos2d::CCObject *v13; // x0
cocos2d::CCObject *v14; // x19
cocos2d::CCObject *v15; // x0
cocos2d::CCObject *v16; // x19
v6 = ((float (__fastcall *)(SetupTriggerPopup *))a1->getValue)(a1);
if ( !GameToolbox::isRateEasing((int)v6) )
{
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects || !(unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
LABEL_10:
v15 = cocos2d::CCDictionary::objectForKey(a1->m_customEasingButtons, a3);
v16 = v15;
if ( v15 )
{
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v15->__vftable[4].~CCObject)(v15, 0);
cocos2d::CCDictionary::setObject(a1->m_disabledEasingButtons, v16, v16->m_uID);
}
return;
}
v8 = 0;
while ( 1 )
{
v11 = v8 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v12 = v8++;
if ( v11 )
break;
v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v12);
TriggerValue = SetupTriggerPopup::getTriggerValue(a1, a2, v9);
if ( !GameToolbox::isRateEasing((int)TriggerValue) )
goto LABEL_10;
}
}
v13 = cocos2d::CCDictionary::objectForKey(a1->m_customEasingButtons, a3);
v14 = v13;
if ( v13 )
{
((void (__fastcall *)(cocos2d::CCObject *, __int64))v13->__vftable[4].~CCObject)(v13, 1);
cocos2d::CCDictionary::removeObjectForKey(a1->m_disabledEasingButtons, v14->m_uID);
}
}