//
// ChallengesPage::tryGetChallenges from 0xa62390 to 0xa623d4 (68 bytes)
//
// 4 xrefs:
// > ChallengesPage::updateTimers @ 0xa62968
// > ??> @ 0x1036a8
// > ChallengesPage::challengeStatusFailed @ 0xa62268
// > ??> @ 0x1547eb8
//
// 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::tryGetChallenges(ChallengesPage *this)
{
__int64 result; // x0
GameLevelManager *v2; // x0
if ( *((_BYTE *)this + 712) )
{
result = *((_QWORD *)this + 88);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
}
else
{
*((_BYTE *)this + 712) = 1;
v2 = (GameLevelManager *)GameLevelManager::sharedState(this);
return GameLevelManager::getGJChallenges(v2);
}
return result;
}