// // ColorSelectPopup::onDefault from 0x863460 to 0x8636b4 (596 bytes) // // 3 xrefs: // > @ 0xf88f0 // > ColorSelectPopup::init @ 0x864594 // > @ 0x15478c0 // // 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::onDefault(ColorSelectPopup *this, cocos2d::CCObject *a2) { GameManager *v3; // x0 __int64 v4; // x0 __int64 ColorAction; // x0 __int64 v6; // x20 Slider *v7; // x0 __int64 v9; // x0 unsigned int *v10; // x1 __int64 v11; // x0 __int64 *v12; // x22 __int64 *i; // x23 __int64 v14; // x20 __int64 v15; // x0 char v16; // w1 char v17; // w2 void (__fastcall *v18)(ColorSelectPopup *, __int64, __int64); // x23 __int64 v19; // x0 __int64 v20; // [xsp+40h] [xbp+40h] __int64 v21[2]; // [xsp+48h] [xbp+48h] BYREF void *v22; // [xsp+58h] [xbp+58h] __int64 v23[2]; // [xsp+60h] [xbp+60h] BYREF void *v24; // [xsp+70h] [xbp+70h] if ( *(_QWORD *)(GameManager::sharedState(_stack_chk_guard) + 552) ) { v3 = *((GameManager **)this + 85); if ( v3 ) { v4 = GameManager::sharedState(v3); ColorAction = GJEffectManager::getColorAction( *(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v4 + 552) + 3272LL) + 320LL), *(_DWORD *)(*((_QWORD *)this + 85) + 1024LL)); v6 = ColorAction; if ( ColorAction ) { LOWORD(v20) = *(_WORD *)(ColorAction + 72); BYTE2(v20) = *(_BYTE *)(ColorAction + 74); ColorSelectPopup::selectColor((__int64)this, v20); if ( *((_DWORD *)this + 284) != *(unsigned __int8 *)(v6 + 84) ) ColorSelectPopup::onToggleTintMode(this, nullptr); *((_DWORD *)this + 285) = *(_DWORD *)(v6 + 96); ColorSelectPopup::updateOpacity(this); ColorSelectPopup::updateOpacityLabel((__int64)this); v7 = *((Slider **)this + 133); if ( v7 ) Slider::setValue(v7, *((float *)this + 285)); } } else { v9 = *((_QWORD *)this + 86); if ( v9 ) { v10 = *(unsigned int **)(v9 + 56); v11 = *v10; if ( (_DWORD)v11 ) { v12 = *((__int64 **)v10 + 2); for ( i = &v12[(unsigned int)v11 - 1]; i >= v12; ++v12 ) { v14 = *v12; if ( !*v12 ) break; v15 = GameManager::sharedState((GameManager *)v11); v11 = GJEffectManager::getColorAction( *(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v15 + 552) + 3272LL) + 320LL), *(_DWORD *)(v14 + 1024)); if ( v11 ) { v16 = *(_BYTE *)(v11 + 73); v17 = *(_BYTE *)(v11 + 72); *(_BYTE *)(v14 + 1450) = *(_BYTE *)(v11 + 74); *(_BYTE *)(v14 + 1448) = v17; *(_BYTE *)(v14 + 1449) = v16; *(_BYTE *)(v14 + 1487) = *(_BYTE *)(v11 + 84); *(_DWORD *)(v14 + 1456) = *(_DWORD *)(v11 + 96); v11 = *(unsigned int *)(v11 + 96); *((_DWORD *)this + 285) = v11; } } } v18 = *(void (__fastcall **)(ColorSelectPopup *, __int64, __int64))(*(_QWORD *)this + 464LL); v21[0] = 0; v21[1] = 0; v22 = nullptr; std::string::__init(v21, "Defaults Loaded", 0xFu); v23[0] = 0; v23[1] = 0; v24 = nullptr; std::string::__init(v23, &byte_11B8890, 0); v19 = TextAlertPopup::create(v21, 150, v23, 0.5, 0.6); v18(this, v19, 100); if ( (v23[0] & 1) != 0 ) operator delete(v24); if ( (v21[0] & 1) != 0 ) operator delete(v22); } } } return _stack_chk_guard; }