//
// SetupSequenceTriggerPopup::onCustomToggleTriggerValue from 0xb81ee0 to 0xb81fb4 (212 bytes)
//
// 2 xrefs:
// > ??> @ 0x6d2e8
// > ??> @ 0x14d4310
//
// This function is hookable on this platform (idp: arm, 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 13:02:28 +0000
//
__int64 __fastcall SetupSequenceTriggerPopup::onCustomToggleTriggerValue(
SetupSequenceTriggerPopup *this,
cocos2d::CCObject *a2)
{
int v3; // w19
cocos2d::CCDictionary *v4; // x0
CCMenuItemToggler *v5; // x0
CCMenuItemToggler *v6; // x0
CCMenuItemToggler *v7; // x0
int v9; // w19
CCMenuItemToggler *v10; // x0
CCMenuItemToggler *v11; // x0
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *((cocos2d::CCDictionary **)this + 97);
if ( v3 <= 99 )
{
v5 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(v4, 0);
CCMenuItemToggler::toggle(v5, v3 == 0);
v6 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 97), 1);
CCMenuItemToggler::toggle(v6, v3 == 1);
v7 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 97), 2);
CCMenuItemToggler::toggle(v7, v3 == 2);
return SetupTriggerPopup::updateValue((cocos2d::CCDictionary **)this, 0x1B4u, (float)v3);
}
else
{
v9 = v3 - 100;
v10 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(v4, 100);
CCMenuItemToggler::toggle(v10, v9 == 0);
v11 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 97), 101);
CCMenuItemToggler::toggle(v11, v9 == 1);
return SetupTriggerPopup::updateValue((cocos2d::CCDictionary **)this, 0x1B7u, (float)v9);
}
}