// // GJWriteMessagePopup::updateCharCountLabel from 0x5d4a84 to 0x5d4b4c (200 bytes) // // 1 xrefs: // > GJWriteMessagePopup::updateText @ 0x5de01a // // 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:08 +0000 // int __fastcall GJWriteMessagePopup::updateCharCountLabel(GJWriteMessagePopup *this, int a2, int a3) { int v3; // r4 int v4; // r6 int *v5; // r5 int v6; // r4 int v7; // r4 int v8; // r3 int (__fastcall *v9)(int *, int); // r7 cocos2d::CCString *v10; // r0 int CString; // r0 if ( a2 ) { v7 = *((unsigned __int8 *)this + 552); v4 = 200; v5 = *((int **)this + 144); if ( (v7 & 1) != 0 ) v6 = *((_DWORD *)this + 139); else v6 = v7 >> 1; } else { v3 = *((unsigned __int8 *)this + 564); v4 = 35; v5 = *((int **)this + 145); a3 = v3 << 31; if ( (v3 & 1) != 0 ) v6 = *((_DWORD *)this + 142); else v6 = v3 >> 1; } v8 = *v5; if ( (float)v6 >= (float)((float)v4 * 0.7) ) { (*(void (__fastcall **)(int *, int, int))(v8 + 512))(v5, 255, a3); if ( (float)v6 >= (float)((float)v4 * 0.9) ) (*(void (__fastcall **)(int *, void *))(*v5 + 536))(v5, &unk_BEE20B); else (*(void (__fastcall **)(int *, __int16 *))(*v5 + 536))(v5, &word_BEE208); } else { (*(void (__fastcall **)(int *, int, int))(v8 + 512))(v5, 100, a3); (*(void (__fastcall **)(int *, __int16 *))(*v5 + 536))(v5, &word_BEE208); } v9 = *(int (__fastcall **)(int *, int))(*v5 + 464); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(v4 - v6)); CString = cocos2d::CCString::getCString(v10); return v9(v5, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source