// // sub_18006A160 from 0x18006a160 to 0x18006a1f5 (149 bytes) // // 2 xrefs: // > sub_18006A810 @ 0x18006a93b // > @ 0x1801acc48 // // 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 // float __fastcall sub_18006A160(__int64 a1, float a2) { int v2; // edx __int64 v3; // rdx float v4; // xmm1_4 v2 = (int)(float)(a2 * 32768.0); if ( v2 < 0 ) v2 = -v2; v3 = v2 & 0x7FFF; if ( (unsigned int)v3 >> 13 ) { switch ( (unsigned int)v3 >> 13 ) { case 1u: v4 = -*(float *)(a1 + 4 * (16692LL - (unsigned int)v3)); break; case 2u: v4 = -*(float *)(a1 + 4 * v3 - 64300); break; case 3u: v4 = *(float *)(a1 + 4 * (33076LL - (unsigned int)v3)); break; default: v4 = 0.0; break; } } else { v4 = *(float *)(a1 + 4 * v3 + 1236); } return 0.54000002 - (float)(v4 * 0.46000001); }
GD Web Decomp Icon

GD Web Decomp

Raw Source