//
// GameStatsManager::getBonusDiamonds from 0x8cb814 to 0x8cb864 (80 bytes)
//
// 5 xrefs:
// > GameStatsManager::completedDailyLevel @ 0x8eb580
// > GameStatsManager::completedDailyLevel @ 0x8eb6c8
// > DailyLevelNode::init @ 0xa6e488
// > DailyLevelPage::claimLevelReward @ 0xa6efc4
// > ??> @ 0xb1580
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:56:36 +0000
//
__int64 __fastcall GameStatsManager::getBonusDiamonds(GameStatsManager *this, int a2)
{
unsigned int v2; // w2
v2 = 0;
if ( (unsigned int)(a2 - 2) > 8 )
return v2;
v2 = 20;
if ( a2 == 10 )
return v2;
else
return vcvtms_s32_f32((float)(int)GameStatsManager::getBaseDiamonds(this, a2) * 0.5);
}