//
// SetupSequenceTriggerPopup::onCustomToggleTriggerValue from 0x1405d98e0 to 0x1405d99c1 (225 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407fdb68
// > ??> @ 0x14092eb44
//
// 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:58 +0000
//
__int64 __fastcall SetupSequenceTriggerPopup::onCustomToggleTriggerValue(__int64 a1, __int64 a2)
{
int v3; // eax
cocos2d::CCDictionary *v4; // rcx
int v5; // edi
struct cocos2d::CCObject *v6; // rax
unsigned int v7; // ebx
struct cocos2d::CCObject *v8; // rax
__int64 v9; // rdx
bool v10; // zf
bool v11; // bl
struct cocos2d::CCObject *v12; // rax
struct cocos2d::CCObject *v13; // rax
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = *(cocos2d::CCDictionary **)(a1 + 776);
v5 = v3;
if ( v3 < 100 )
{
v11 = v3 == 0;
v12 = cocos2d::CCDictionary::objectForKey(v4, 0);
CCMenuItemToggler::toggle((__int64)v12, v11);
v13 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 1);
CCMenuItemToggler::toggle((__int64)v13, v5 == 1);
v7 = 436;
v8 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 2);
v10 = v5 == 2;
}
else
{
v6 = cocos2d::CCDictionary::objectForKey(v4, 100);
CCMenuItemToggler::toggle((__int64)v6, v5 == 100);
v7 = 439;
v8 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 101);
v10 = v5 == 101;
}
LOBYTE(v9) = v10;
CCMenuItemToggler::toggle((__int64)v8, v9);
return SetupTriggerPopup::updateValue(a1, v7);
}