//
// LevelCell::recallChestReady from 0x737450 to 0x7374cc (124 bytes)
//
// 2 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x747bbc
// > ??> @ 0xd2028
//
// 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:52:39 +0000
//
GameStatsManager *__fastcall LevelCell::recallChestReady(LevelCell *this)
{
int v1; // w19
GameStatsManager *result; // x0
GameStatsManager *v3; // x0
GameStatsManager *isDailyRecall; // x0
GameStatsManager *v5; // x0
GameStatsManager *v6; // x0
v1 = *(_DWORD *)(*((_QWORD *)this + 70) + 1292LL);
if ( v1 <= (int)&elf_hash_bucket[24874] )
return nullptr;
v3 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)&elf_hash_bucket[24874]);
isDailyRecall = (GameStatsManager *)(unsigned __int8)GameStatsManager::isDailyRecall(v3, v1);
if ( !(_BYTE)isDailyRecall )
return nullptr;
v5 = (GameStatsManager *)GameStatsManager::sharedState(isDailyRecall);
result = (GameStatsManager *)(unsigned __int8)GameStatsManager::hasCompletedDailyStars(v5, v1);
if ( (_BYTE)result )
{
v6 = (GameStatsManager *)GameStatsManager::sharedState(result);
return (GameStatsManager *)((unsigned __int8)GameStatsManager::hasCompletedDailyLevel(v6, v1) ^ 1u);
}
return result;
}