// // ColorSelectLiveOverlay::updateColorLabel from 0x6019cc to 0x601ad4 (264 bytes) // // 2 xrefs: // > sub_601AE0 @ 0x6024e0 // > ColorSelectLiveOverlay::onSelectTab @ 0x6027b2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:41 +0000 // void __fastcall ColorSelectLiveOverlay::updateColorLabel(ColorSelectLiveOverlay *this) { int v1; // r6 int v3; // r1 GJSpecialColorSelect *v4; // r4 int v5; // r3 cocos2d::CCString *v6; // r0 const char *CString; // r0 const char *v8; // r9 size_t v9; // r0 char *v10; // r1 unsigned int v11; // r4 cocos2d::CCArray **v12; // r0 int v13; // r1 _DWORD v14[2]; // [sp+0h] [bp-14h] BYREF void *v15; // [sp+8h] [bp-Ch] v1 = *((_DWORD *)this + 134); v3 = *((unsigned __int8 *)this + 644); if ( !*((_BYTE *)this + 644) ) v1 = *((_DWORD *)this + 133); if ( v1 ) { v4 = *(GJSpecialColorSelect **)(v1 + 88); } else { v5 = *((_DWORD *)this + 130); if ( !v5 ) { LABEL_22: (*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 160) + 464))(*((_DWORD *)this + 160), " "); return; } v4 = *(GJSpecialColorSelect **)(v5 + 888); } if ( (int)v4 <= 0 ) goto LABEL_22; v14[1] = 0; v15 = nullptr; v14[0] = 0; if ( (int)v4 >= 1000 ) { CString = GJSpecialColorSelect::textForColorIdx(v4, v3); } else { v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v4); CString = (const char *)cocos2d::CCString::getCString(v6); } v8 = CString; v9 = strlen(CString); std::string::assign(v14, v8, v9); if ( (v14[0] & 1) != 0 ) v10 = (char *)v15; else v10 = (char *)v14 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 160) + 464))( *((_DWORD *)this + 160), v10, LOBYTE(v14[0]) << 31); if ( v1 ) { if ( (int)v4 <= 1004 || (v11 = (unsigned int)v4 - 1009, v11 <= 5) && ((1 << v11) & 0x31) != 0 ) { v12 = (cocos2d::CCArray **)this; v13 = 1; } else { v12 = (cocos2d::CCArray **)this; v13 = 0; } ColorSelectLiveOverlay::toggleControls(v12, v13); } if ( (v14[0] & 1) != 0 ) operator delete(v15); }