// // EmoteSprite::attachToLabel from 0x140080140 to 0x14008044d (781 bytes) // // 7 xrefs: // > CCTextInputNode::updateLabel @ 0x1400562e5 // > ReportPopup::init @ 0x1400c10a1 // > InvitesPopup::buildRows @ 0x1400f8ae3 // > CommentCell::loadFromComment @ 0x140153364 // > EditorSoundConfigUploadPopup::init @ 0x14019afbd // > NewsPopup::rebuildPage @ 0x14049eec3 // > @ 0x140911f30 // // 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 void __fastcall EmoteSprite::attachToLabel(_QWORD *a1, __int64 *a2, __int64 *a3, double a4) { float v4; // xmm6_4 float v7; // xmm6_4 float *v8; // rsi float *v9; // rdi __int64 v10; // rbx __int64 v11; // rax _BYTE *v12; // rax size_t v13; // r8 unsigned __int64 v14; // r13 __int64 v15; // r8 int v16; // r11d int v17; // ecx __int64 v18; // rdi unsigned __int64 v19; // rsi __int128 *v20; // rbp int v21; // r10d __int64 v22; // rdx __int64 v23; // r8 int v24; // eax __int64 v25; // r9 __int128 *v26; // rax unsigned int v27; // ecx __int64 v28; // rbx _QWORD *v29; // r12 __int64 v30; // rax __int64 v31; // rax double v32; // xmm0_8 __int64 v33; // rbx int v34; // eax int v35; // [rsp+20h] [rbp-C8h] char v37[8]; // [rsp+30h] [rbp-B8h] BYREF char v38[8]; // [rsp+38h] [rbp-B0h] BYREF char v39[8]; // [rsp+40h] [rbp-A8h] BYREF char v40[8]; // [rsp+48h] [rbp-A0h] BYREF __int128 v41; // [rsp+50h] [rbp-98h] BYREF __int128 v42; // [rsp+60h] [rbp-88h] if ( a1 ) { v4 = *(float *)&a4; if ( a2 ) { if ( *(float *)&a4 <= 0.0 ) { ensureEmotesAreLoaded((__int64)a1, (__int64)a2, (__int64)a3, a4); v7 = *(float *)&dword_1408FE390; v4 = v7 * *(float *)((*(__int64 (__fastcall **)(_QWORD *))(*a1 + 320LL))(a1) + 4); } v8 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 296LL))(a1); v9 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 320LL))(a1); v10 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 320LL))(a1); v11 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 296LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, *v9 * *v8, *(float *)(v10 + 4) * *(float *)(v11 + 4)); v12 = (_BYTE *)(*(__int64 (__fastcall **)(_QWORD *))(a1[45] + 8LL))(a1 + 45); v41 = 0; v42 = 0; v13 = -1; do ++v13; while ( v12[v13] ); sub_14003D230(&v41, v12, v13); v14 = 0; v15 = *a3; if ( (a3[1] - *a3) / 24 ) { v16 = v42; v17 = v42 - 1; v35 = v42 - 1; v18 = 0; v19 = *((_QWORD *)&v42 + 1); v20 = (__int128 *)v41; do { v21 = *(_DWORD *)(v18 + v15); v22 = 0; v23 = 0; v24 = v21; if ( v21 >= v16 ) v24 = v17; v25 = v24; if ( v24 >= 0 ) { do { v26 = &v41; if ( v19 > 0xF ) v26 = v20; v27 = v22 + 1; if ( (*((_BYTE *)v26 + v23) & 0xC0) == 0x80 ) v27 = v22; v22 = v27; ++v23; } while ( v23 <= v25 ); } if ( v21 < v16 ) v22 = (unsigned int)(v22 - 1); v28 = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64, __int64))(*a1 + 472LL))(a1, v22, v23, v25); if ( v28 ) { v29 = EmoteSprite::createWithDef(*(_QWORD *)(v18 + *a3 + 16)); if ( v29 ) { v30 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 200LL))(v28); cocos2d::CCPoint::operator-(v30, v38, v37); (*(void (__fastcall **)(_QWORD *))(*a1 + 168LL))(a1); cocos2d::CCPoint::operator*(v38, v39); v31 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 200LL))(a1); cocos2d::CCPoint::operator+(v31, v40, v39); (*(void (__fastcall **)(_QWORD *, char *))(*v29 + 184LL))(v29, v40); v32 = (*(double (__fastcall **)(_QWORD *))(*a1 + 168LL))(a1); EmoteSprite::fitToHeight(v29, *(float *)&v32 * v4, 0.0); v33 = *a2; v34 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 96LL))(a1); (*(void (__fastcall **)(__int64 *, _QWORD *, _QWORD))(v33 + 456))(a2, v29, (unsigned int)(v34 + 1)); } } ++v14; v18 += 24; v15 = *a3; v16 = v42; v17 = v35; } while ( v14 < (a3[1] - *a3) / 24 ); } sub_14003D310((__int64)&v41); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source