// // EmotePickerPopup::layoutEmoteGrid from 0x1004db810 to 0x1004dba40 (560 bytes) // // 2 xrefs: // > EmotePickerPopup::onBuildWindowContent @ 0x1004db6b0 // > EmotePickerPopup::onWindowResized @ 0x1004dbbb4 // // 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:34 +0000 // __int64 __fastcall EmotePickerPopup::layoutEmoteGrid(__int64 result) { __int64 v1; // x19 float v2; // s0 int v3; // w22 float v4; // s8 __int64 v5; // x8 unsigned __int64 v6; // x23 int v7; // w21 float v8; // s11 int v9; // w24 __int64 v10; // x20 float v11; // s9 __n128 v12; // q0 __int64 v13; // x20 char v14; // w24 int v15; // w23 __int64 v16; // x0 __int64 v17; // x21 float v18; // s0 bool v19; // cc float v20; // [xsp+8h] [xbp-78h] BYREF if ( *(_QWORD *)(result + 1048) ) { v1 = result; if ( *(_QWORD *)(result + 1040) ) { v2 = *(float *)(result + 1056); if ( (int)(float)((float)(v2 + -8.0) / 26.0) <= 3 ) v3 = 3; else v3 = (int)(float)((float)(v2 + -8.0) / 26.0); v4 = (float)(v2 - (float)((float)(unsigned int)v3 * 26.0)) * 0.5; v5 = *(_QWORD *)(result + 1216); if ( *(_QWORD *)(result + 1224) == v5 ) { v7 = 0; v11 = -4.0; } else { v6 = 0; v7 = 0; v8 = -4.0; do { if ( v7 >= v3 ) v9 = 0; else v9 = v7; v10 = *(_QWORD *)(v5 + 8 * v6); if ( v7 >= v3 ) v8 = v8 + -26.0; sub_1000262BC(&v20, v4 + (float)((float)((float)v9 + 0.5) * 26.0), v8 + -13.0); result = (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v10 + 184LL))(v10, &v20); v7 = v9 + 1; ++v6; v5 = *(_QWORD *)(v1 + 1216); } while ( v6 < (*(_QWORD *)(v1 + 1224) - v5) >> 3 ); if ( v9 >= 0 ) v11 = v8 + -38.0; else v11 = v8; } if ( (int)EmoteSprite::defCount(result) >= 1 ) { v13 = 0; v14 = 0; v15 = v7 & (v7 >> 31); while ( 1 ) { v16 = EmoteSprite::defAtIndex(v13); if ( *(_QWORD *)v16 ) { if ( (*(_BYTE *)(v16 + 27) & 1) != 0 ) goto LABEL_33; v16 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v1 + 1048) + 480LL))( *(_QWORD *)(v1 + 1048), v13); if ( !v16 ) goto LABEL_33; v17 = v16; if ( v15 >= v3 ) { v15 = 0; v11 = v11 + -26.0; } sub_1000262BC(&v20, v4 + (float)((float)((float)v15 + 0.5) * 26.0), v11 + -13.0); v16 = (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v17 + 184LL))(v17, &v20); ++v15; } else { if ( (v14 & 1) == 0 ) { v14 = 0; goto LABEL_33; } v18 = v11 + -26.0; v19 = v15 <= 0; v15 &= v15 >> 31; if ( v19 ) v18 = v11; v11 = v18 + -12.0; } v14 = 1; LABEL_33: v13 = (unsigned int)(v13 + 1); if ( (int)v13 >= (int)EmoteSprite::defCount(v16) ) { if ( v15 > 0 ) v11 = v11 + -26.0; break; } } } v12.n128_f32[0] = 5.0 - v11; return ScrollableContentLayer::setContentHeight(*(_QWORD *)(v1 + 1040), v12); } } return result; }