// // ColorSelectPopup::onToggleTintMode from 0x862800 to 0x862894 (148 bytes) // // 4 xrefs: // > ColorSelectPopup::onDefault @ 0x8634fc // > @ 0xd8fb8 // > ColorSelectPopup::init @ 0x865968 // > @ 0x15467c8 // // 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 12:55:37 +0000 // __int64 __fastcall ColorSelectPopup::onToggleTintMode(ColorSelectPopup *this, cocos2d::CCObject *a2) { int v3; // w1 __int64 result; // x0 _BOOL4 v5; // w1 cocos2d::CCArray *v6; // x0 unsigned int v7; // w20 bool v8; // cf unsigned int v9; // w1 v3 = *((_DWORD *)this + 284); result = *((_QWORD *)this + 85); v5 = v3 != 1; *((_DWORD *)this + 284) = v5; if ( result ) { *(_BYTE *)(result + 1487) = v5; } else { v6 = *((cocos2d::CCArray **)this + 86); if ( v6 ) { v7 = 0; while ( 1 ) { result = cocos2d::CCArray::count(v6); v8 = v7 >= (unsigned int)result; v9 = v7++; if ( v8 ) break; *(_BYTE *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v9) + 1487) = *((_DWORD *)this + 284) != 0; v6 = *((cocos2d::CCArray **)this + 86); } } else { result = *((_QWORD *)this + 143); if ( result ) *(_BYTE *)(result + 84) = v5; } } return result; }