// // GJWriteMessagePopup::updateCharCountLabel from 0xa1ff24 to 0xa20034 (272 bytes) // // 2 xrefs: // > GJWriteMessagePopup::updateText @ 0xa2f518 // > @ 0x653b0 // // 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:59:39 +0000 // __int64 __fastcall GJWriteMessagePopup::updateCharCountLabel( GJWriteMessagePopup *this, int a2, long double a3, long double a4) { __int64 v4; // x20 float v5; // s2 __int64 v6; // x19 int v7; // w21 __int64 v8; // x0 __int64 v9; // x1 void (__fastcall *v10)(__int64, __int64, long double, long double); // x2 const char *v11; // x1 __int64 (__fastcall *v12)(__int64, __int64); // x20 cocos2d::CCString *v13; // x0 __int64 CString; // x0 if ( a2 ) { LODWORD(v4) = *((_BYTE *)this + 720) >> 1; if ( (*((_BYTE *)this + 720) & 1) != 0 ) v4 = *((_QWORD *)this + 91); v5 = 140.0; v6 = *((_QWORD *)this + 96); LODWORD(a3) = 1128792064; v7 = 200; } else { LODWORD(v4) = *((_BYTE *)this + 744) >> 1; if ( (*((_BYTE *)this + 744) & 1) != 0 ) v4 = *((_QWORD *)this + 94); v5 = 24.5; v6 = *((_QWORD *)this + 97); LODWORD(a3) = 1108082688; v7 = 35; } *(float *)&a4 = (float)(int)v4; if ( (float)(int)v4 < v5 ) { v8 = v6; v9 = 100; v10 = *(void (__fastcall **)(__int64, __int64, long double, long double))(*(_QWORD *)v6 + 1024LL); goto LABEL_9; } v8 = v6; v9 = 0xFFFFFFFFLL; *(float *)&a3 = *(float *)&a3 * 0.9; v10 = *(void (__fastcall **)(__int64, __int64, long double, long double))(*(_QWORD *)v6 + 1024LL); if ( *(float *)&a4 < *(float *)&a3 ) { LABEL_9: v10(v8, v9, a3, a4); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 1072LL))(v6, &qword_116D880); goto LABEL_10; } ((void (__fastcall *)(__int64, __int64))v10)(v6, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 1072LL))(v6, &unk_116D888); LABEL_10: v11 = (const char *)(unsigned int)(v7 - v4); v12 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL); v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v11); CString = cocos2d::CCString::getCString(v13); return v12(v6, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source