// // ShareCommentLayer::updateCharCountLabel from 0x90e2e0 to 0x90e3fc (284 bytes) // // 2 xrefs: // > ShareCommentLayer::updateDescText @ 0x90eb20 // > @ 0x62638 // // 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:57:14 +0000 // __int64 __fastcall ShareCommentLayer::updateCharCountLabel(ShareCommentLayer *this) { EmoteSprite *v2; // x0 int v3; // w0 int v4; // w20 int v5; // w21 void (*v6)(void); // x2 __int64 v7; // x19 const char *v8; // x1 __int64 (__fastcall *v9)(__int64, __int64); // x20 cocos2d::CCString *v10; // x0 __int64 CString; // x0 v2 = (EmoteSprite *)*((unsigned __int8 *)this + 700); if ( (_DWORD)v2 ) { v3 = EmoteSprite::maxEmotesComment(v2); v4 = EmoteSprite::effectiveLength((char *)this + 728, v3); } else { v4 = EmoteSprite::characterCount((__int64)this + 728); } v5 = *((_DWORD *)this + 172); if ( (float)v4 < (float)((float)v5 * 0.7) ) { v6 = *(void (**)(void))(**((_QWORD **)this + 97) + 1024LL); goto LABEL_7; } v6 = *(void (**)(void))(**((_QWORD **)this + 97) + 1024LL); if ( (float)v4 < (float)((float)v5 * 0.9) ) { LABEL_7: v6(); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 97) + 1072LL))(*((_QWORD *)this + 97), &unk_1152658); goto LABEL_8; } v6(); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 97) + 1072LL))(*((_QWORD *)this + 97), &unk_1152660); LABEL_8: v7 = *((_QWORD *)this + 97); v8 = (const char *)(unsigned int)(v5 - v4); v9 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 928LL); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v8); CString = cocos2d::CCString::getCString(v10); return v9(v7, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source