//
// SetupKeyframePopup::onCustomToggleTriggerValue from 0x1405bbb20 to 0x1405bbbd1 (177 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407f5cb8
// > ??> @ 0x14092ded8
//
// 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:34:45 +0000
//
struct cocos2d::CCObject *__fastcall SetupKeyframePopup::onCustomToggleTriggerValue(
cocos2d::CCDictionary **a1,
__int64 a2)
{
int v4; // ebx
int v5; // ebx
struct cocos2d::CCObject *v6; // rax
__int64 v7; // rdx
struct cocos2d::CCObject *result; // rax
__int64 v9; // rdx
v4 = (int)(*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*a1 + 146))(a1, 536);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == v4 )
v5 = 0;
else
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
SetupTriggerPopup::updateValue(a1, 536);
v6 = cocos2d::CCDictionary::objectForKey(a1[97], 1);
if ( v6 )
{
LOBYTE(v7) = v5 == 1;
CCMenuItemToggler::toggle((__int64)v6, v7);
}
result = cocos2d::CCDictionary::objectForKey(a1[97], 2);
if ( result )
{
LOBYTE(v9) = v5 == 2;
return (struct cocos2d::CCObject *)CCMenuItemToggler::toggle((__int64)result, v9);
}
return result;
}