//
// sub_1800178E0 from 0x1800178e0 to 0x18001791a (58 bytes)
//
// 1 xrefs:
// > sub_180017B30 @ 0x180017f77
//
// 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 12:15:42 +0000
//
__int64 __fastcall sub_1800178E0(__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;
}
}