//
// sub_725F58 from 0x725f58 to 0x725f9e (70 bytes)
//
// 4 xrefs:
// > sub_71D1A8 @ 0x71d2b6
// > sub_722188 @ 0x722556
// > sub_722188 @ 0x7226cc
// > sub_722E08 @ 0x723414
//
// 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
//
int __fastcall sub_725F58(_DWORD *a1, int a2)
{
int v2; // r5
int v3; // r2
int v4; // r1
v2 = a1[8];
if ( !a2 || !*(_DWORD *)(*(_DWORD *)(v2 + 4) + 96) )
return 1;
v3 = a1[75];
if ( v3 > 0 )
v4 = a1[76] + (v3 - a1[74]) * a2 / v3;
else
v4 = a1[76];
return sub_7329F8(*(_DWORD *)(v2 + 4), v4, v2 + 368);
}