//
// SetupTimerControlTriggerPopup::onCustomToggleTriggerValue from 0x1405f9350 to 0x1405f93cd (125 bytes)
//
// 2 xrefs:
// > ??> @ 0x140808660
// > ??> @ 0x14092f5b8
//
// 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:08 +0000
//
struct cocos2d::CCObject *__fastcall SetupTimerControlTriggerPopup::onCustomToggleTriggerValue(__int64 a1, __int64 a2)
{
int v3; // ebx
struct cocos2d::CCObject *v4; // rax
__int64 v5; // rdx
struct cocos2d::CCObject *result; // rax
__int64 v7; // rdx
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
SetupTriggerPopup::updateValue(a1, 472);
v4 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 0);
if ( v4 )
{
LOBYTE(v5) = v3 == 0;
CCMenuItemToggler::toggle((__int64)v4, v5);
}
result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 1);
if ( result )
{
LOBYTE(v7) = v3 == 1;
return (struct cocos2d::CCObject *)CCMenuItemToggler::toggle((__int64)result, v7);
}
return result;
}