//
// AchievementManager::percentageForCount from 0x552898 to 0x5528c8 (48 bytes)
//
// 1 xrefs:
// > ??> @ 0x8dc48
//
// 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; // w0
float v4; // s0
result = 100;
v4 = floorf((float)((float)a2 / (float)a3) * 100.0);
if ( v4 < 100.0 )
return (int)v4;
return result;
}