// // ColorSelectLiveOverlay::onSelectTab from 0xa669bc to 0xa66b0c (336 bytes) // // 4 xrefs: // > @ 0xd62d0 // > ColorSelectLiveOverlay::init @ 0xa6653c // > ColorSelectLiveOverlay::init @ 0xa665e8 // > @ 0x15465f0 // // 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 13:00:17 +0000 // __int64 __fastcall ColorSelectLiveOverlay::onSelectTab(ColorSelectLiveOverlay *this, cocos2d::CCObject *a2) { __int64 result; // x0 int v5; // w2 __int64 v6; // x3 __int64 v7; // x1 unsigned int v8; // w19 ButtonSprite *v9; // x20 int v10; // w23 const char *v11; // x1 bool v12; // cf unsigned int v13; // w1 char *v14; // x1 __int64 v15; // [xsp+58h] [xbp+58h] result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); v5 = result != 1; if ( *((unsigned __int8 *)this + 856) != v5 ) { v6 = *((_QWORD *)this + 86); v7 = *((_QWORD *)this + 87); *((_BYTE *)this + 856) = v5; if ( (_DWORD)result == 1 ) v7 = v6; v8 = 0; *((_DWORD *)this + 182) = *(_DWORD *)(v7 + 96); LOWORD(v15) = *(_WORD *)(v7 + 72); BYTE2(v15) = *(_BYTE *)(v7 + 74); ColorSelectLiveOverlay::selectColor((__int64)this, v15); while ( 1 ) { v12 = v8 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85)); v13 = v8++; if ( v12 ) break; v9 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v13); v10 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); if ( v10 == (*(unsigned int (__fastcall **)(ButtonSprite *))(*(_QWORD *)v9 + 64LL))(v9) ) v11 = "GJ_button_01.png"; else v11 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v9, v11); } v14 = (char *)this + 707; if ( !*((_BYTE *)this + 856) ) v14 = (char *)this + 704; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 99) + 960LL))(*((_QWORD *)this + 99), v14); return ColorSelectLiveOverlay::updateColorLabel(this); } return result; }