//
// SetupTriggerPopup::toggleEaseRateVisibility from 0x1406147a0 to 0x1406148ac (268 bytes)
//
// 6 xrefs:
// > EasingSelectPopup::onCell @ 0x1401767fb
// > SetupTriggerPopup::createEasingControls @ 0x1406143b0
// > SetupTriggerPopup::onEase @ 0x14061491a
// > ??> @ 0x1408e5698
// > ??> @ 0x1408e56a8
// > ??> @ 0x140930044
//
// This function is hookable on this platform (idp: pc, 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 11:35:17 +0000
//
__int64 __fastcall SetupTriggerPopup::toggleEaseRateVisibility(__int64 a1)
{
unsigned __int8 v2; // si
cocos2d::CCArray *v3; // rcx
unsigned int v4; // edi
switch ( *(_DWORD *)(a1 + 816) )
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
v2 = 1;
break;
default:
v3 = *(cocos2d::CCArray **)(a1 + 688);
v2 = 0;
if ( v3 )
{
if ( cocos2d::CCArray::count(v3) )
{
v2 = 1;
v4 = 0;
if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) )
{
while ( 2 )
{
switch ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v4) + 378) )
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
if ( ++v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) )
continue;
break;
default:
v2 = 0;
break;
}
break;
}
}
}
}
break;
}
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), v2);
}