// // sub_90074 from 0x90074 to 0x9012a (182 bytes) // // 1 xrefs: // > @ 0x908ee // // 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_90074(__int16 *result, int a2, int a3, int a4, int a5) { int v5; // r12 __int16 *v6; // r5 float v7; // s10 int v8; // r4 int v9; // lr int i; // r6 int j; // r4 float v12; // s14 int v13; // r3 v5 = a5; v6 = &result[a4 * a2]; v7 = 1.0 / (float)(a5 + 1); while ( v5 ) { v8 = a4 + v5; if ( a4 + v5 >= a3 ) v8 = a3; v9 = v8 - a4; for ( i = v8 - a4; i; --i ) { for ( j = 0; j < a2; ++j ) { v12 = (float)(v7 * 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; } v7 = v7 + (float)(1.0 / (float)(a5 + 1)); } v5 -= v9; a4 = 0; v6 = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source