//
// GameStatsManager::getBonusDiamonds from 0x40d340 to 0x40d376 (54 bytes)
//
// 3 xrefs:
// > GameStatsManager::completedDailyLevel @ 0x4206c6
// > DailyLevelNode::init @ 0x4d48c8
// > DailyLevelPage::claimLevelReward @ 0x4d573e
//
// 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 GameStatsManager::getBonusDiamonds(GameStatsManager *a1, int a2)
{
unsigned int BaseDiamonds; // r0
if ( (unsigned int)(a2 - 2) > 8 )
return 0;
if ( a2 == 10 )
return 20;
BaseDiamonds = GameStatsManager::getBaseDiamonds(a1, a2);
return (int)floorf(vcvts_n_f32_s32(BaseDiamonds, 1u));
}