//
// SetupTriggerPopup::toggleCustomEaseRateVisibility from 0x140615aa0 to 0x140615c14 (372 bytes)
//
// 6 xrefs:
// > EasingSelectPopup::onCell @ 0x14017681e
// > SetupTriggerPopup::createCustomEasingControls @ 0x140615504
// > SetupTriggerPopup::onCustomEaseArrow @ 0x14061575e
// > ??> @ 0x1408e580c
// > ??> @ 0x1408e581c
// > ??> @ 0x1409300f8
//
// 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
//
void __fastcall SetupTriggerPopup::toggleCustomEaseRateVisibility(__int64 a1, int a2, int a3)
{
__int64 v5; // r14
unsigned __int8 v6; // si
cocos2d::CCArray *v7; // rcx
unsigned int v8; // edi
struct cocos2d::CCObject *v9; // rax
double TriggerValue; // xmm0_8
struct cocos2d::CCObject *v11; // rax
unsigned int *v12; // rdi
cocos2d::CCDictionary *v13; // rcx
__int64 v14; // r8
v5 = a3;
switch ( (int)(*(float (**)(void))(*(_QWORD *)a1 + 1168LL))() )
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
v6 = 1;
break;
default:
v7 = *(cocos2d::CCArray **)(a1 + 688);
v6 = 0;
if ( v7 )
{
if ( cocos2d::CCArray::count(v7) )
{
v6 = 1;
v8 = 0;
if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) )
{
while ( 2 )
{
v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v8);
TriggerValue = SetupTriggerPopup::getTriggerValue(a1, a2, (__int64)v9);
switch ( (int)*(float *)&TriggerValue )
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
if ( ++v8 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) )
continue;
break;
default:
v6 = 0;
break;
}
break;
}
}
}
}
break;
}
v11 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 936), v5);
v12 = (unsigned int *)v11;
if ( v11 )
{
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v11 + 336LL))(v11, v6);
v13 = *(cocos2d::CCDictionary **)(a1 + 952);
v14 = v12[2];
if ( v6 )
cocos2d::CCDictionary::removeObjectForKey(v13, (unsigned int)v14);
else
cocos2d::CCDictionary::setObject(v13, (struct cocos2d::CCObject *)v12, v14);
}
}