// // EmoteSprite::attachToLabel from 0x3f4478 to 0x3f4634 (444 bytes) // // 6 xrefs: // > CCTextInputNode::updateLabel @ 0x3e3162 // > CommentCell::loadFromComment @ 0x433362 // > NewsPopup::rebuildPage @ 0x6c1ea8 // > InvitesPopup::buildRows @ 0x759736 // > EditorSoundConfigUploadPopup::init @ 0x7897b8 // > ReportPopup::init @ 0x7a0b06 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:47:16 +0000 // int __fastcall EmoteSprite::attachToLabel(int result, int a2, _DWORD *a3, float a4) { int v6; // r4 float v7; // s16 float *v8; // r0 float v9; // s16 unsigned int v10; // r5 float v11; // s17 float v12; // s15 float v13; // s18 int v14; // r0 const char *v15; // r0 const char *v16; // r6 size_t v17; // r0 int (__fastcall *v18)(int, int); // r10 int v19; // r0 int v20; // r10 cocos2d::CCSprite *v21; // r6 int v22; // r0 int v23; // r0 float v24; // r0 void (__fastcall *v25)(int, cocos2d::CCSprite *, int); // r10 int v26; // r0 void (__fastcall *v27)(cocos2d::CCSprite *, _BYTE *); // [sp+4h] [bp-40h] int v28; // [sp+8h] [bp-3Ch] _BYTE v29[8]; // [sp+10h] [bp-34h] BYREF _BYTE v30[8]; // [sp+18h] [bp-2Ch] BYREF _BYTE v31[8]; // [sp+20h] [bp-24h] BYREF _BYTE v32[8]; // [sp+28h] [bp-1Ch] BYREF int v33[3]; // [sp+30h] [bp-14h] BYREF v6 = result; v7 = a4; if ( result && a2 ) { if ( a4 <= 0.0 ) { v8 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)result + 164))(result); v9 = v8[1]; v7 = v9 * COERCE_FLOAT(EmoteSprite::heightFactor((EmoteSprite *)v8)); } v10 = 0; v11 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 152))(v6); v12 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 164))(v6); v13 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v6 + 152))(v6) + 4); v14 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 164))(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, v11 * v12, v13 * *(float *)(v14 + 4)); v15 = (const char *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 472))(v6); memset(v33, 0, sizeof(v33)); v16 = v15; v17 = strlen(v15); std::string::__init(v33, v16, v17); while ( v10 < -1431655765 * ((a3[1] - *a3) >> 2) ) { v18 = *(int (__fastcall **)(int, int))(*(_DWORD *)v6 + 240); v19 = EmoteSprite::charIndexForByte((unsigned __int8 *)v33, *(_DWORD *)(*a3 + 12 * v10)); v20 = v18(v6, v19); if ( v20 ) { v21 = EmoteSprite::createWithDef(*(_DWORD *)(12 * v10 + *a3 + 8)); if ( v21 ) { v22 = (*(int (__fastcall **)(int))(*(_DWORD *)v20 + 96))(v20); cocos2d::CCPoint::operator-(v30, v22, v29); v27 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v21 + 92); v28 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 96))(v6); v23 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 84))(v6); cocos2d::CCPoint::operator*(v31, v30, v23); cocos2d::CCPoint::operator+(v32, v28, v31); v27(v21, v32); v24 = (*(float (__fastcall **)(int))(*(_DWORD *)v6 + 84))(v6); EmoteSprite::fitToHeight(v21, v7 * v24, 0.0); v25 = *(void (__fastcall **)(int, cocos2d::CCSprite *, int))(*(_DWORD *)a2 + 232); v26 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 52))(v6); v25(a2, v21, v26 + 1); } } ++v10; } return std::string::~string((int)v33); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source