// // sub_AE704 from 0xae704 to 0xae7c0 (188 bytes) // // 1 xrefs: // > sub_AEEFC @ 0xaf0ec // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int16 *__fastcall sub_AE704(__int16 *result, int a2, int a3, int a4, int a5) { float v5; // s3 __int16 *v6; // x8 float i; // s5 int v8; // w9 int v9; // w9 int j; // w10 int v11; // w11 float v12; // s7 int v13; // w12 v5 = 1.0 / (float)(a5 + 1); v6 = &result[a4 * a2]; for ( i = v5; a5; v6 = result ) { v8 = a4 + a5; if ( a4 + a5 >= a3 ) v8 = a3; v9 = v8 - a4; for ( j = v9; j; i = i + v5 ) { v11 = 0; --j; while ( v11 < a2 ) { v12 = (float)(i * 0.000030519) * (float)*v6; if ( v12 <= 1.0 ) { if ( v12 >= -1.0 ) v13 = (int)(float)(v12 * 32767.0); else LOWORD(v13) = 0x8000; } else { LOWORD(v13) = 0x7FFF; } *v6++ = v13; ++v11; } } a4 = 0; a5 -= v9; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source