// // sub_92858 from 0x92858 to 0x92a0c (436 bytes) // // 1 xrefs: // > sub_92CBC @ 0x92de8 // // 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 // int __fastcall sub_92858(int a1, int a2, int a3, unsigned int a4, float *a5, int a6, int a7, int a8, float *a9) { int v10; // r0 int v11; // r10 int v12; // r11 float v13; // s20 int v14; // r9 float v15; // s18 int v16; // r10 float *v17; // r8 float v18; // s22 float v19; // r0 float *v20; // r9 signed int v21; // r5 float *v22; // r6 int v23; // r8 int v24; // r0 float v25; // s0 int v26; // r0 float v27; // s4 float v28; // s6 float v29; // s10 float v30; // s0 float v31; // s4 unsigned int v34; // [sp+8h] [bp-50h] int v35; // [sp+Ch] [bp-4Ch] int v36; // [sp+10h] [bp-48h] int v37; // [sp+14h] [bp-44h] v10 = a6; v11 = 0; while ( v10 >= 2 ) { ++v11; v10 = (unsigned int)v10 >> 1; } v12 = a6; v13 = 0.0; v14 = *(_DWORD *)(a1 + 376); v34 = a4; v35 = v11; v15 = 1.0 / (float)a6; while ( v12 ) { v36 = v12; if ( a3 + v12 > a4 ) v12 = a4 - a3; v16 = 0; v37 = a3; v17 = (float *)(a2 + 4 * a3); while ( v16 < v12 ) { v18 = *v17; v19 = ((float (__fastcall *)(int, _DWORD))*(&off_E5C84 + a7))(a1, LODWORD(v13)); *(_DWORD *)(v14 + 4) = 841731191; ++v17; v13 = v13 + v15; ++v16; *(float *)v14 = (float)(v18 * v15) * v19; v14 += 8; } a4 = v34; a3 = v37 + v12; if ( v37 + v12 >= v34 ) a3 = 0; v11 = v35; v12 = v36 - v12; } sub_92564(a1, v11); v20 = a5; v21 = 0; v22 = a5; v23 = a6 / 2 - 1; while ( v21 < v23 ) { v24 = sub_9268C(a1, v21++, v11); v25 = sqrtf( (float)(*(float *)(*(_DWORD *)(a1 + 376) + 8 * v24) * *(float *)(*(_DWORD *)(a1 + 376) + 8 * v24)) + (float)(*(float *)(*(_DWORD *)(a1 + 376) + 8 * v24 + 4) * *(float *)(*(_DWORD *)(a1 + 376) + 8 * v24 + 4))) * 2.5; if ( v25 > 1.0 ) v25 = 1.0; *v22++ = v25; } if ( a9 ) { v26 = 0; v27 = 0.0; v28 = 0.0; while ( v26 < v23 ) { v29 = *v20; if ( *v20 > 0.0001 ) { v28 = v29 + v28; v27 = v27 + (float)((float)((float)((float)((float)a8 * 0.5) * (float)v26) * v29) * (float)(1.0 / (float)v23)); } ++v20; ++v26; } v30 = v27 / v28; v31 = 0.0; if ( v28 > 0.001 ) v31 = v30; *a9 = v31; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source