// // sub_1004F9F40 from 0x1004f9f40 to 0x1004f9fd8 (152 bytes) // // 0 xrefs: // // 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_1004F9F40(__int64 a1, float a2) { float v2; // s1 float v3; // s0 float v4; // s1 if ( a2 >= 22000.0 ) { *(_DWORD *)(a1 + 796) = 0; return 0; } else { v2 = (float)*(int *)(*(_QWORD *)(a1 + 168) + 1744LL); if ( (float)(v2 / 3.1416) >= a2 ) { v3 = 1.0 / (float)(a2 * 6.2832); v4 = v3 + (float)(1.0 / v2); } else { v3 = 22000.0 - a2; v4 = (float)(22000.0 - (float)(v2 / 3.1416)) * 3.0; } *(float *)(a1 + 796) = v3 / v4; return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source