// // ColorSelectPopup::onToggleTintMode from 0x1401299a0 to 0x140129a5d (189 bytes) // // 3 xrefs: // > ColorSelectPopup::onDefault @ 0x140129f31 // > ColorSelectPopup::init @ 0x140127ad7 // > @ 0x140916a6c // // 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:00 +0000 // char __fastcall ColorSelectPopup::onToggleTintMode(__int64 a1) { int v1; // edx unsigned int v2; // edi unsigned int v4; // eax __int64 v5; // rcx cocos2d::CCArray *v6; // rcx struct cocos2d::CCObject *v7; // rax __int64 v8; // rcx v1 = *(_DWORD *)(a1 + 1120); v2 = 0; v4 = v1 != 1; *(_DWORD *)(a1 + 1120) = v4; v5 = *(_QWORD *)(a1 + 680); if ( v5 ) { *(_BYTE *)(v5 + 1503) = v1 != 1; LOBYTE(v4) = v1 != 1; } else { v6 = *(cocos2d::CCArray **)(a1 + 688); if ( v6 ) { v4 = cocos2d::CCArray::count(v6); if ( v4 ) { do { v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v2++); *((_BYTE *)v7 + 1503) = *(_DWORD *)(a1 + 1120) != 0; v4 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)); } while ( v2 < v4 ); } } else { v8 = *(_QWORD *)(a1 + 1128); if ( v8 ) { *(_BYTE *)(v8 + 84) = v1 != 1; LOBYTE(v4) = v1 != 1; } } } return v4; }