// // EditorCommandsPopup::layoutCommandButtons from 0x1004c58ac to 0x1004c5a14 (360 bytes) // // 2 xrefs: // > EditorCommandsPopup::onBuildWindowContent @ 0x1004c57fc // > EditorCommandsPopup::onWindowResized @ 0x1004c5bfc // // 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:22 +0000 // __int64 __fastcall EditorCommandsPopup::layoutCommandButtons(__int64 a1) { __int64 result; // x0 float v3; // s8 __int64 v4; // x20 float v5; // s10 float v6; // s9 float v7; // s11 int v8; // w21 __n128 v9; // q0 unsigned int i; // w22 __int64 v11; // x0 float *v12; // x23 float v13; // s1 float v14; // [xsp+8h] [xbp-78h] BYREF result = *(_QWORD *)(a1 + 1048); if ( result && *(_QWORD *)(a1 + 1040) ) { v3 = (float)(*(float *)(a1 + 1056) / 160.0) >= 0.6 ? *(float *)(a1 + 1056) / 160.0 : 0.6; result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 488LL))(result); if ( result ) { v4 = result; v5 = v3 * 16.0; v6 = v3 * 5.0; v7 = v3 * 8.0; v8 = sub_1002E757C(result); if ( v8 >= 1 ) { for ( i = 0; i != v8; ++i ) { v11 = sub_1002E75A0(v4, i); if ( v11 ) { v12 = (float *)v11; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 160LL))(v11, v3); v12[101] = v3; sub_1000262BC( &v14, *(float *)(a1 + 1056) * 0.5, (float)((float)(v5 * -0.5) - v7) - (float)((float)i * (float)(v5 + v6))); (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v12 + 184LL))(v12, &v14); } } } v13 = v6 * (float)(unsigned int)(v8 - 1); if ( v8 <= 0 ) v13 = 0.0; v9.n128_f32[0] = (float)((float)(v5 * (float)v8) + (float)(v7 * 2.0)) + v13; return ScrollableContentLayer::setContentHeight(*(_QWORD *)(a1 + 1040), v9); } } return result; }