//
// ChallengesPage::canCollectQuests from 0x100387990 to 0x1003879fe (110 bytes)
//
// 5 xrefs:
// > CreatorLayer::init @ 0x1002826ab
// > CreatorLayer::checkQuestsStatus @ 0x100283b52
// > CreatorLayer::sceneWillResume @ 0x1002848f7
// > PauseLayer::customSetup @ 0x1003c0110
// > PauseLayer::checkQuestsStatus @ 0x1003c18fc
//
// This function is hookable on this platform (idp: pc, 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:29:10 +0000
//
char ChallengesPage::canCollectQuests()
{
__int64 v0; // rax
__int64 Challenge; // rax
__int64 v2; // rcx
char result; // al
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rcx
v0 = GameStatsManager::sharedState();
Challenge = GameStatsManager::getChallenge(v0);
if ( !Challenge || (v2 = Challenge, result = 1, !*(_BYTE *)(v2 + 100)) )
{
v4 = GameStatsManager::sharedState();
v5 = GameStatsManager::getChallenge(v4);
if ( !v5 || (v6 = v5, result = 1, !*(_BYTE *)(v6 + 100)) )
{
v7 = GameStatsManager::sharedState();
v8 = GameStatsManager::getChallenge(v7);
if ( !v8 )
return 0;
v9 = v8;
result = 1;
if ( !*(_BYTE *)(v9 + 100) )
return 0;
}
}
return result;
}