// // GJWriteMessagePopup::updateCharCountLabel from 0x100297130 to 0x100297250 (288 bytes) // // 1 xrefs: // > GJWriteMessagePopup::updateText @ 0x1002970b4 // // 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 12:27:51 +0000 // __int64 __fastcall GJWriteMessagePopup::updateCharCountLabel(__int64 a1, int a2) { char v2; // al unsigned int v3; // r15d __int64 v4; // r15 unsigned int v5; // r15d int v6; // ebx __int64 v7; // rax __int64 v8; // r14 void *v9; // rsi __int64 v10; // rax __int64 CString; // rax float v13; // [rsp+0h] [rbp-20h] LOBYTE(v13) = v2; if ( a2 ) { v3 = *(unsigned __int8 *)(a1 + 720); if ( (v3 & 1) != 0 ) v4 = *(_QWORD *)(a1 + 728); else LODWORD(v4) = v3 >> 1; v6 = 200; v7 = 768; } else { v5 = *(unsigned __int8 *)(a1 + 744); if ( (v5 & 1) != 0 ) v4 = *(_QWORD *)(a1 + 752); else LODWORD(v4) = v5 >> 1; v6 = 35; v7 = 776; } v8 = *(_QWORD *)(a1 + v7); if ( (float)(0.69999999 * (float)v6) <= (float)(int)v4 ) { v13 = (float)(int)v4; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 1024LL))(v8, 255); if ( (float)((float)v6 * 0.89999998) <= (float)(int)v4 ) v9 = &unk_100A073D2; else v9 = &unk_100A073CF; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v8 + 1072LL))(v8, v9); } else { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 1024LL))(v8, 100); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v8 + 1072LL))(v8, &unk_100A073CF); } v10 = sub_10088E820("%i", SLOBYTE(v13)); CString = cocos2d::CCString::getCString(v10); return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 928LL))(v8, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source