//
// sub_180017960 from 0x180017960 to 0x18001799a (58 bytes)
//
// 1 xrefs:
// > sub_180017BA0 @ 0x180017fe6
//
// 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_180017960(__int64 a1, double a2, double a3)
{
if ( *(_BYTE *)(a1 + 204) )
return 1;
if ( a2 <= 0.0 )
{
*(_DWORD *)(a1 + 208) = 0;
return 0;
}
else
{
*(_DWORD *)(a1 + 208) = (int)(a3 / a2 * 100.0);
return 0;
}
}