//
// ChallengesPage::canCollectQuests from 0x100036194 to 0x1000361e8 (84 bytes)
//
// 3 xrefs:
// > CreatorLayer::init @ 0x1000dafb8
// > CreatorLayer::sceneWillResume @ 0x1000dc79c
// > sub_1001BFE2C @ 0x1001bfe58
//
// 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 10:57:32 +0000
//
bool __fastcall ChallengesPage::canCollectQuests(__int64 Challenge)
{
bool v1; // w20
__int64 v2; // x19
__int64 v3; // x0
int v4; // w8
v1 = 1;
v2 = 1;
do
{
v3 = GameStatsManager::sharedState(Challenge);
Challenge = GameStatsManager::getChallenge(v3, v2);
if ( Challenge && (*(_BYTE *)(Challenge + 100) & 1) != 0 )
break;
v4 = v2 + 1;
v1 = (unsigned int)v2 < 3;
v2 = (unsigned int)(v2 + 1);
}
while ( v4 != 4 );
return v1;
}