//
// GJGameLevel::levelHasDiamonds from 0x4abc08 to 0x4abc3e (54 bytes)
//
// 4 xrefs:
// > PlayLayer::destroyPlayer @ 0x405e28
// > PlayLayer::levelComplete @ 0x4080cc
// > LevelInfoLayer::updateLabelValues @ 0x49c262
// > LevelInfoLayer::setupLevelInfo @ 0x49ca48
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:58 +0000
//
int __fastcall GJGameLevel::levelHasDiamonds(GJGameLevel *this)
{
int result; // r0
GameStatsManager *v3; // r0
result = *((unsigned __int8 *)this + 477);
if ( result )
return 1;
if ( *((_DWORD *)this + 186) - *((_DWORD *)this + 187) > 0 )
{
v3 = (GameStatsManager *)GameStatsManager::sharedState(nullptr);
return (unsigned __int8)GameStatsManager::isDailyRecall(v3, *((_DWORD *)this + 186) - *((_DWORD *)this + 187)) ^ 1;
}
return result;
}