// // EmoteSprite::attachToLabel from 0x1004dcfb8 to 0x1004dd1fc (580 bytes) // // 6 xrefs: // > CommentCell::loadFromComment @ 0x10012bd0c // > CCTextInputNode::updateLabel @ 0x1001fb544 // > sub_1004D5758 @ 0x1004d5bfc // > InvitesPopup::buildRows @ 0x10050fb10 // > sub_100518264 @ 0x1005186c4 // > sub_10051FFE8 @ 0x1005205b4 // // 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 11:06:35 +0000 // void __fastcall EmoteSprite::attachToLabel(__int64 a1, __int64 a2, __int64 *a3, float a4) { float v5; // s8 float v8; // s9 float v9; // s9 float v10; // s10 __int64 v11; // x0 char *v12; // x0 __int64 v13; // x8 __int64 v14; // x24 unsigned __int64 v15; // x25 __int64 v16; // x0 __int64 v17; // x23 _QWORD *v18; // x22 float32x2_t *v19; // x0 double v20; // d0 float32x2_t *v21; // x23 float v22; // s0 double v23; // d0 float v24; // s0 int v25; // w0 float32x2_t v26; // [xsp+8h] [xbp-98h] BYREF float32x2_t v27; // [xsp+10h] [xbp-90h] BYREF float32x2_t v28; // [xsp+18h] [xbp-88h] BYREF void *__p[2]; // [xsp+20h] [xbp-80h] BYREF char v30; // [xsp+37h] [xbp-69h] float32x2_t v31; // [xsp+38h] [xbp-68h] BYREF if ( a1 && a2 ) { v5 = a4; if ( a4 <= 0.0 ) { v5 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) + 4); ensureEmotesAreLoaded(); } v8 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 304LL))(a1); v9 = v8 * *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); v10 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 304LL))(a1) + 4); v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); sub_1000262BC((float *)&v31, v9, v10 * *(float *)(v11 + 4)); v12 = (char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 944LL))(a1); sub_100009900(__p, v12); v13 = *a3; if ( a3[1] != *a3 ) { v14 = 0; v15 = 0; do { v16 = EmoteSprite::charIndexForByte((__int64)__p, *(_DWORD *)(v13 + v14)); v17 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, v16); if ( v17 ) { v18 = EmoteSprite::createWithDef(*(_QWORD *)(*a3 + v14 + 16)); if ( v18 ) { v19 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17); *(float32x2_t *)&v20 = sub_10002632C(v19, &v31, &v28); v21 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 192LL))(a1, v20); v22 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 168LL))(a1); sub_100026350(&v28, &v26, v22); *(float32x2_t *)&v23 = sub_100026318(v21, &v26, &v27); (*(void (__fastcall **)(_QWORD *, float32x2_t *, double))(*v18 + 184LL))(v18, &v27, v23); v24 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 168LL))(a1); EmoteSprite::fitToHeight(v18, v5 * v24, 0.0); v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 104LL))(a1); (*(void (__fastcall **)(__int64, _QWORD *, _QWORD))(*(_QWORD *)a2 + 464LL))( a2, v18, (unsigned int)(v25 + 1)); } } ++v15; v13 = *a3; v14 += 24; } while ( v15 < 0xAAAAAAAAAAAAAAABLL * ((a3[1] - *a3) >> 3) ); } if ( v30 < 0 ) operator delete(__p[0]); } }