//
// AchievementManager::percentageForCount from 0x100785090 to 0x1007850bc (44 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 __fastcall AchievementManager::percentageForCount(AchievementManager *a1, int a2, int a3)
{
__m128 v3; // xmm0
v3.f32[0] = (float)((float)a2 / (float)a3) * 100.0;
return (int)fminf(_mm_round_ss(v3, v3, 9).f32[0], 100.0);
}