//
// CustomizeObjectSettingsPopup::onCustomToggleTriggerValue from 0x140144650 to 0x1401446f9 (169 bytes)
//
// 2 xrefs:
// > ??> @ 0x140739060
// > ??> @ 0x1409174e0
//
// 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:27:11 +0000
//
struct cocos2d::CCObject *__fastcall CustomizeObjectSettingsPopup::onCustomToggleTriggerValue(__int64 a1, __int64 a2)
{
int v3; // eax
int v4; // ebx
struct cocos2d::CCObject *v5; // rax
__int64 v6; // rdx
struct cocos2d::CCObject *v7; // rax
__int64 v8; // rdx
struct cocos2d::CCObject *result; // rax
__int64 v10; // rdx
*(_BYTE *)(a1 + 1008) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = v3;
SetupTriggerPopup::updateValue(a1, 497);
v5 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 0);
if ( v5 )
{
LOBYTE(v6) = v4 == 0;
CCMenuItemToggler::toggle((__int64)v5, v6);
}
v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 1);
if ( v7 )
{
LOBYTE(v8) = v4 == 1;
CCMenuItemToggler::toggle((__int64)v7, v8);
}
result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 776), 2);
if ( result )
{
LOBYTE(v10) = v4 == 2;
return (struct cocos2d::CCObject *)CCMenuItemToggler::toggle((__int64)result, v10);
}
return result;
}