// // ShareCommentLayer::updateCharCountLabel from 0x1006b36f0 to 0x1006b380c (284 bytes) // // 5 xrefs: // > ShareCommentLayer::init @ 0x1006b2426 // > ShareCommentLayer::onClear @ 0x1006b295b // > ShareCommentLayer::updateDescText @ 0x1006b30fe // > ShareCommentLayer::textInputClosed @ 0x1006b34da // > ShareCommentLayer::textChanged @ 0x1006b3654 // // 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:35:26 +0000 // __int64 __fastcall ShareCommentLayer::updateCharCountLabel(__int64 a1, __int64 a2) { char v2; // al unsigned int v3; // eax int v4; // eax float v5; // xmm1_4 float v6; // xmm2_4 void *v7; // rsi __int64 v8; // rbx __int64 v9; // rax __int64 CString; // rax float v12; // [rsp+0h] [rbp-20h] LOBYTE(v12) = v2; if ( *(_BYTE *)(a1 + 700) == 1 ) { v3 = EmoteSprite::maxEmotesComment(a1, a2); v4 = EmoteSprite::effectiveLength(a1 + 728, v3); } else { v4 = sub_100904E50(a1 + 728); } v5 = (float)v4; v6 = (float)*(int *)(a1 + 688); if ( (float)(0.69999999 * v6) <= (float)v4 ) { v12 = (float)v4; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 776) + 1024LL))(*(_QWORD *)(a1 + 776), 255); if ( (float)(v6 * 0.89999998) <= v5 ) v7 = &unk_100A107B2; else v7 = &unk_100A107AF; (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 776) + 1072LL))(*(_QWORD *)(a1 + 776), v7); } else { (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 776) + 1024LL))(*(_QWORD *)(a1 + 776), 125); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 776) + 1072LL))(*(_QWORD *)(a1 + 776), &unk_100A107AF); } v8 = *(_QWORD *)(a1 + 776); v9 = sub_10088E820("%i", SLOBYTE(v12)); CString = cocos2d::CCString::getCString(v9); return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 928LL))(v8, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source