//
// GameStatsManager::getBaseDiamonds from 0x8cb800 to 0x8cb814 (20 bytes)
//
// 7 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x74761c
// > LevelInfoLayer::setupLevelInfo @ 0x7e9940
// > GameStatsManager::getBonusDiamonds @ 0x8cb844
// > GameStatsManager::getAwardedDiamondsForLevel @ 0x8ce374
// > GameStatsManager::getTotalCollectedDiamonds @ 0x8ceb18
// > GameStatsManager::awardDiamondsForLevel @ 0x8ea498
// > ??> @ 0x80470
//
// 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::getBaseDiamonds(GameStatsManager *this, int a2)
{
unsigned int v2; // w0
unsigned int v3; // w1
v2 = a2 - 2;
v3 = a2 + 2;
if ( v2 > 8 )
return 0;
else
return v3;
}