// // sub_18006A200 from 0x18006a200 to 0x18006a295 (149 bytes) // // 2 xrefs: // > sub_18006A810 @ 0x18006a93b // > @ 0x1801acc48 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 10:53:27 +0000 // float __fastcall sub_18006A200(__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 (float)(1.0 - v4) * 0.5; }