// // EmoteSprite::fitToHeight from 0x3f351c to 0x3f3626 (266 bytes) // // 20 xrefs: // > MultilineBitmapFont::initWithFont @ 0x3d65de // > EmoteSprite::attachToLabel @ 0x3f45ea // > GJThreadCell::loadFromThread @ 0x42ae4a // > GJNotificationCell::loadFromNotification @ 0x432144 // > EditLevelLayer::init @ 0x4a1526 // > ShareCommentLayer::init @ 0x541ea8 // > SetTextPopup::init @ 0x5de796 // > ThreadViewPopup::layoutTitleRow @ 0x74d14c // > NewThreadPopup::refreshIconSlot @ 0x74d4e8 // > ThreadDescPopup::refreshIconSlot @ 0x74d710 // > ThreadDescPopup::buildUI @ 0x754430 // > NewThreadPopup::init @ 0x756f78 // > ThreadRequestPopup::init @ 0x757f28 // > InvitesPopup::buildRows @ 0x758f26 // > ThreadViewPopup::init @ 0x75c90e // > EmotePickerPopup::addCell @ 0x778dfa // > EditorSoundConfigCell::loadFromConfig @ 0x783d9e // > SoundPackDescPopup::refreshIconSlot @ 0x785ce8 // > SoundPackDescPopup::init @ 0x786b54 // > EditorSoundConfigInfoLayer::init @ 0x787300 // // 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:15 +0000 // int __fastcall EmoteSprite::fitToHeight(EmoteSprite *this, float a2, float a3) { int result; // r0 float v7; // s16 float v8; // s16 float v9; // s17 int v10; // r3 float v11; // s16 int (__fastcall *v12)(EmoteSprite *, _BYTE *); // r8 int v13; // r9 int v14; // r0 float v15; // s17 float v16; // s15 float v17; // r0 _BYTE v18[8]; // [sp+4h] [bp-18h] BYREF _BYTE v19[8]; // [sp+Ch] [bp-10h] BYREF result = (*(int (__fastcall **)(EmoteSprite *, _DWORD, _DWORD))(*(_DWORD *)this + 164))( this, LODWORD(a2), LODWORD(a3)); v7 = *(float *)(result + 4); if ( v7 > 0.0 ) { v8 = a2 / v7; if ( a3 > 0.0 ) { v9 = a2 * a3; if ( v8 > (float)(v9 / *(float *)(*(int (__fastcall **)(EmoteSprite *))(*(_DWORD *)this + 164))(this)) ) v8 = v9 / *(float *)(*(int (__fastcall **)(EmoteSprite *))(*(_DWORD *)this + 164))(this); } (*(void (__fastcall **)(EmoteSprite *, _DWORD))(*(_DWORD *)this + 80))( this, v8 * *(float *)(*((_DWORD *)this + 127) + 8)); v10 = *((_DWORD *)this + 127); v11 = *(float *)(v10 + 12); if ( *(_BYTE *)(v10 + 28) ) v11 = -v11; v12 = *(int (__fastcall **)(EmoteSprite *, _BYTE *))(*(_DWORD *)this + 92); v13 = (*(int (__fastcall **)(EmoteSprite *))(*(_DWORD *)this + 96))(this); v14 = (*(int (__fastcall **)(EmoteSprite *))(*(_DWORD *)this + 84))(this); v15 = *(float *)(*((_DWORD *)this + 127) + 16); v16 = *(float *)&v14; v17 = (*(float (__fastcall **)(EmoteSprite *))(*(_DWORD *)this + 84))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v11 * v16, v15 * v17); cocos2d::CCPoint::operator+(v19, v13, v18); return v12(this, v19); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source