// // sub_B7FC0 from 0xb7fc0 to 0xb81b8 (504 bytes) // // 1 xrefs: // > sub_B7FC0 @ 0xb8168 // // 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 // __int64 __fastcall sub_B7FC0(float *a1, __int64 a2, __int64 a3, int a4, unsigned int a5) { float v5; // s0 float v6; // s1 float v7; // s2 unsigned int v8; // w8 int i; // w9 unsigned int v10; // w11 __int64 v11; // x12 float v12; // s4 float v13; // s5 float v14; // s4 unsigned int v15; // w11 __int64 v16; // x12 if ( a2 ) { v5 = a1[142]; v6 = a1[140]; v7 = a1[141]; v8 = 0; for ( i = 0; i != a4; ++i ) { v10 = v8; v11 = a5; v12 = fmaxf(a1[136] - v5, v6); a1[136] = v12; if ( a5 ) { do { v13 = fabsf(*(float *)(a2 + 4LL * v10)); if ( v13 > v12 ) { v12 = v13; a1[136] = v13; } --v11; ++v10; } while ( v11 ); } v14 = fminf(1.0 / v12, v7); v15 = v8; v16 = a5; if ( a5 ) { do { --v16; *(float *)(a3 + 4LL * v15) = *(float *)(a2 + 4LL * v15) * v14; ++v15; } while ( v16 ); } v8 += a5; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source