//
// ChallengesPage::canCollectQuests from 0xa62574 to 0xa625c8 (84 bytes)
//
// 3 xrefs:
// > PauseLayer::checkQuestsStatus @ 0x7d5834
// > CreatorLayer::checkQuestsStatus @ 0x7dbc9c
// > ??> @ 0xa8b80
//
// 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 13:00:15 +0000
//
__int64 __fastcall ChallengesPage::canCollectQuests(ChallengesPage *this)
{
unsigned int v1; // w19
GameStatsManager *v2; // x0
const char *v3; // x1
v1 = 1;
while ( 1 )
{
v2 = (GameStatsManager *)GameStatsManager::sharedState(this);
v3 = (const char *)v1++;
this = (ChallengesPage *)GameStatsManager::getChallenge(v2, v3);
if ( this )
{
this = (ChallengesPage *)*((unsigned __int8 *)this + 100);
if ( (_DWORD)this )
break;
}
if ( v1 == 4 )
return 0;
}
return 1;
}