// // EmoteSprite::effectiveLength from 0x14007fc10 to 0x14007fd3c (300 bytes) // // 26 xrefs: // > ThreadViewPopup::insertShareToken @ 0x1400dce0c // > ThreadViewPopup::onSend @ 0x1400dddb6 // > sub_1400E0600 @ 0x1400e080e // > ThreadViewPopup::updateComposeCount @ 0x1400e3858 // > NewThreadPopup::applyMode @ 0x1400f0efc // > NewThreadPopup::textChanged @ 0x1400f127d // > NewThreadPopup::insertShareToken @ 0x1400f180b // > NewThreadPopup::onSend @ 0x1400f2787 // > ThreadDescPopup::onSave @ 0x1400fdd57 // > EmotePickerPopup::canAddEmote @ 0x1401245bc // > CommentCell::loadFromComment @ 0x140152c7f // > CommentCell::loadFromComment @ 0x140152c97 // > EditLevelLayer::textChanged @ 0x14017aef5 // > SoundPackDescPopup::onSave @ 0x14019a428 // > FriendRequestPopup::loadFromGJFriendRequest @ 0x1403a2018 // > FriendRequestPopup::loadFromGJFriendRequest @ 0x1403a2035 // > SetTextPopup::onClose @ 0x1403a85d5 // > InfoLayer::init @ 0x1403cea2a // > InfoLayer::init @ 0x1403cea3a // > ShareListLayer::init @ 0x140432211 // > ShareListLayer::init @ 0x14043222e // > ShareCommentLayer::onShare @ 0x14062f4b1 // > ShareCommentLayer::updateCharCountLabel @ 0x14062fe12 // > ShareLevelLayer::init @ 0x140630abe // > ShareLevelLayer::init @ 0x140630adb // > @ 0x140911f0c // // 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 11:25:55 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall EmoteSprite::effectiveLength(_QWORD *a1, int a2, __int64 a3, double a4) { unsigned int v5; // ebx unsigned __int64 v6; // r9 unsigned __int64 i; // rdx _QWORD *v8; // rax unsigned int v9; // ecx void *v10; // r8 signed __int64 v11; // rdx _DWORD *v12; // rcx void *Block[2]; // [rsp+30h] [rbp-28h] BYREF __int64 v15; // [rsp+40h] [rbp-18h] *(_OWORD *)Block = 0; v15 = 0; EmoteSprite::parseTokens(a1, (__int64)Block, a2, a4); v5 = 0; v6 = a1[2]; for ( i = 0; i < v6; ++i ) { v8 = a1; if ( a1[3] > 0xFu ) v8 = (_QWORD *)*a1; v9 = v5 + 1; if ( (*((_BYTE *)v8 + i) & 0xC0) == 0x80 ) v9 = v5; v5 = v9; } v10 = Block[0]; v11 = ((char *)Block[1] - (char *)Block[0]) / 24; if ( v11 ) { v12 = (char *)Block[0] + 8; do { v5 += 1 - *v12; v12 += 6; --v11; } while ( v11 ); } if ( Block[0] ) { if ( (unsigned __int64)(24 * ((signed __int64)(v15 - (unsigned __int64)Block[0]) / 24)) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } return v5; }