// // sub_180066F20 from 0x180066f20 to 0x180066f7c (92 bytes) // // 1 xrefs: // > @ 0x1801ac930 // // 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:26 +0000 // __int64 __fastcall sub_180066F20(__int64 *a1, int a2, unsigned int a3) { __int64 v3; // r9 float v4; // xmm1_4 __int64 result; // rax unsigned int v6; // edx int v7; // ecx v3 = *a1; v4 = *(float *)(*a1 + 636); if ( v4 < 0.0 ) return 0; if ( a2 ) { v6 = *(_DWORD *)(v3 + 632); if ( !v6 ) return 11; } else { v6 = (int)(float)((float)*(int *)(*(_QWORD *)(v3 + 168) + 1744LL) * v4); } result = 0; v7 = v6 - a3; if ( v6 <= a3 ) v7 = 0; *(_DWORD *)(v3 + 632) = v7; return result; }