//
// AchievementManager::percentageForCount from 0x2da210 to 0x2da258 (72 bytes)
//
// 0 xrefs:
//
// 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 AchievementManager::percentageForCount(AchievementManager *a1, int a2, int a3)
{
int result; // r0
int v4; // s15
bool v5; // fnf
*(float *)&result = floorf((float)((float)a2 / (float)a3) * 100.0);
v4 = result;
v5 = *(float *)&result < 100.0;
if ( *(float *)&result >= 100.0 )
result = 100;
else
v4 = (int)*(float *)&result;
if ( v5 )
return v4;
return result;
}