//
// SetupTriggerPopup::toggleCustomEaseRateVisibility from 0xb1e22c to 0xb1e348 (284 bytes)
//
// 4 xrefs:
// > SetupTriggerPopup::createCustomEasingControls @ 0xb228a4
// > SetupTriggerPopup::onCustomEaseArrow @ 0xb24da4
// > EasingSelectPopup::onCell @ 0xcbb484
// > ??> @ 0x8bff0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:01:35 +0000
//
unsigned int *__fastcall SetupTriggerPopup::toggleCustomEaseRateVisibility(cocos2d::CCArray **this, int a2, int a3)
{
float v6; // s0
cocos2d::CCArray *v7; // x0
unsigned int v8; // w19
GameObject *v9; // x0
float v10; // s0
bool v11; // cf
unsigned int v12; // w1
unsigned int *result; // x0
__int64 v14; // x19
unsigned int *v15; // x19
v6 = (*((float (__fastcall **)(cocos2d::CCArray **))*this + 183))(this);
if ( !GameToolbox::isRateEasing((GameToolbox *)(unsigned int)(int)v6) )
{
v7 = *(this + 86);
if ( !v7 || !(unsigned int)cocos2d::CCArray::count(v7) )
{
LABEL_10:
result = (unsigned int *)cocos2d::CCDictionary::objectForKey(*(this + 119), a3);
v15 = result;
if ( result )
{
(*(void (__fastcall **)(unsigned int *, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
return (unsigned int *)cocos2d::CCDictionary::setObject(*(this + 121), (cocos2d::CCObject *)v15, v15[2]);
}
return result;
}
v8 = 0;
while ( 1 )
{
v11 = v8 >= (unsigned int)cocos2d::CCArray::count(*(this + 86));
v12 = v8++;
if ( v11 )
break;
v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 86), v12);
SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)this, a2, v9);
if ( !GameToolbox::isRateEasing((GameToolbox *)(unsigned int)(int)v10) )
goto LABEL_10;
}
}
result = (unsigned int *)cocos2d::CCDictionary::objectForKey(*(this + 119), a3);
v14 = (__int64)result;
if ( result )
{
(*(void (__fastcall **)(unsigned int *, __int64))(*(_QWORD *)result + 344LL))(result, 1);
return (unsigned int *)cocos2d::CCDictionary::removeObjectForKey(*(this + 121), *(unsigned int *)(v14 + 8));
}
return result;
}