//
// sub_1002DF638 from 0x1002df638 to 0x1002df67c (68 bytes)
//
// 1 xrefs:
// > sub_1002DEB7C @ 0x1002df124
//
// This function is hookable on this platform (idp: arm, 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 11:02:46 +0000
//
__int64 __fastcall sub_1002DF638(__int64 a1, double a2, double a3)
{
__int64 v3; // x8
int v4; // w9
if ( (*(_BYTE *)(a1 + 196) & 1) != 0 )
return 1;
if ( a2 <= 0.0 )
v4 = 0;
else
v4 = (int)(a3 / a2 * 100.0);
v3 = 0;
*(_DWORD *)(a1 + 200) = v4;
return v3;
}