// // SetupOptionsTriggerPopup::onCustomToggleTriggerValue from 0x1405cc230 to 0x1405cc2fb (203 bytes) // // 2 xrefs: // > @ 0x1407f9a78 // > @ 0x14092e568 // // 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:53 +0000 // struct cocos2d::CCObject *__fastcall SetupOptionsTriggerPopup::onCustomToggleTriggerValue( cocos2d::CCDictionary **a1, __int64 a2) { int v4; // eax unsigned int v5; // edi int v6; // eax int v7; // ebx int v8; // esi struct cocos2d::CCObject *v9; // rax __int64 v10; // rdx struct cocos2d::CCObject *result; // rax __int64 v12; // rdx v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v5 = -v4; if ( v4 > 0 ) v5 = v4; v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v7 = -1; if ( v6 > 0 ) v7 = 1; v8 = 0; if ( v7 != (int)(*((float (__fastcall **)(cocos2d::CCDictionary **, _QWORD))*a1 + 146))(a1, v5) ) v8 = v7; SetupTriggerPopup::updateValue(a1, v5); v9 = cocos2d::CCDictionary::objectForKey(a1[97], (int)v5); if ( v9 ) { LOBYTE(v10) = v8 == 1; CCMenuItemToggler::toggle((__int64)v9, v10); } result = cocos2d::CCDictionary::objectForKey(a1[97], -v5); if ( result ) { LOBYTE(v12) = v8 == -1; return (struct cocos2d::CCObject *)CCMenuItemToggler::toggle((__int64)result, v12); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source