// // EmotePickerPopup::layoutEmoteGrid from 0x778e40 to 0x778fee (430 bytes) // // 2 xrefs: // > EmotePickerPopup::onWindowResized @ 0x778ff8 // > EmotePickerPopup::onBuildWindowContent @ 0x7798ac // // 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:59:21 +0000 // void __fastcall EmotePickerPopup::layoutEmoteGrid(EmotePickerPopup *this) { EmotePickerPopup *v1; // r7 unsigned int v2; // r10 float v3; // s16 int v4; // r9 int v5; // r4 float v6; // s18 float v7; // s16 int v8; // r2 bool v9; // cc int v10; // r5 int v11; // s15 int (__fastcall *v12)(int, _BYTE *); // r11 int v13; // r10 int v14; // r8 int v15; // r5 int v16; // r1 EmotePickerPopup *v17; // r11 bool v18; // cc int v19; // s15 int (__fastcall *v20)(EmotePickerPopup *, _BYTE *); // r8 int v21; // [sp+4h] [bp-18h] _BYTE v22[8]; // [sp+Ch] [bp-10h] BYREF v1 = this; if ( *((_DWORD *)this + 182) && *((_DWORD *)this + 181) ) { v2 = 0; v3 = *((float *)this + 183); v4 = 0; v5 = (int)(float)((float)(v3 - 8.0) / 26.0); if ( v5 < 3 ) v5 = 3; v6 = (float)(v3 - (float)((float)v5 * 26.0)) * 0.5; v7 = -4.0; while ( 1 ) { v8 = *((_DWORD *)v1 + 219); if ( v2 >= (*((_DWORD *)v1 + 220) - v8) >> 2 ) break; v9 = v4 < v5; v10 = *(_DWORD *)(v8 + 4 * v2); if ( v4 >= v5 ) v4 = 0; ++v2; v11 = v4++; v12 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92); if ( !v9 ) v7 = v7 - 26.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, v6 + (float)((float)((float)v11 + 0.5) * 26.0), v7 - 13.0); this = (EmotePickerPopup *)v12(v10, v22); } if ( v4 ) v7 = v7 - 38.0; v13 = 0; v14 = 0; v15 = 0; while ( v13 < EmoteSprite::defCount(this) ) { this = (EmotePickerPopup *)EmoteSprite::defAtIndex(v13, v16); if ( *(_DWORD *)this ) { if ( !*((_BYTE *)this + 23) ) { v21 = *((unsigned __int8 *)this + 23); this = (EmotePickerPopup *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 182) + 240))( *((_DWORD *)v1 + 182), v13); v17 = this; if ( this ) { v18 = v15 < v5; if ( v15 >= v5 ) v15 = v21; v19 = v15; v20 = *(int (__fastcall **)(EmotePickerPopup *, _BYTE *))(*(_DWORD *)this + 92); if ( !v18 ) v7 = v7 - 26.0; ++v15; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v22, v6 + (float)((float)((float)v19 + 0.5) * 26.0), v7 - 13.0); this = (EmotePickerPopup *)v20(v17, v22); v14 = 1; } } } else if ( v14 ) { if ( v15 ) v7 = v7 - 26.0; v15 = 0; v7 = v7 - 12.0; } ++v13; } if ( v15 ) v7 = v7 - 26.0; ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)v1 + 181), 5.0 - v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source