// // ColorSelectPopup::onPlayerColor1 from 0x140129b90 to 0x140129c6e (222 bytes) // // 2 xrefs: // > ColorSelectPopup::init @ 0x140127902 // > @ 0x140916ac0 // // 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 // int __fastcall ColorSelectPopup::onPlayerColor1(__int64 a1) { int v2; // eax unsigned int v3; // edi __int64 v4; // rcx BOOL v5; // edx __int64 v6; // rax cocos2d::CCArray *v7; // rcx struct cocos2d::CCObject *v8; // rax CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 1064), 0); v2 = *(_DWORD *)(a1 + 1116); v3 = 0; v4 = *(_QWORD *)(a1 + 680); v5 = v2 != 1; *(_DWORD *)(a1 + 1116) = v5; if ( v4 ) { *(_BYTE *)(v4 + 1501) = v2 != 1; v6 = *(_QWORD *)(a1 + 680); *(_BYTE *)(v6 + 1502) = 0; } else { v7 = *(cocos2d::CCArray **)(a1 + 688); if ( v7 ) { LODWORD(v6) = cocos2d::CCArray::count(v7); if ( (_DWORD)v6 ) { do { v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v3++); *((_BYTE *)v8 + 1501) = *(_DWORD *)(a1 + 1116) == 1; *((_BYTE *)v8 + 1502) = 0; LODWORD(v6) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)); } while ( v3 < (unsigned int)v6 ); } } else { v6 = *(_QWORD *)(a1 + 1128); if ( v6 ) *(_DWORD *)(v6 + 88) = v5; } } return v6; }