//
// ChallengesPage::tryGetChallenges from 0x5ff402 to 0x5ff432 (48 bytes)
//
// 1 xrefs:
// > ChallengesPage::updateTimers @ 0x6009a8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:39 +0000
//
int __fastcall ChallengesPage::tryGetChallenges(ChallengesPage *this)
{
int result; // r0
GameLevelManager *v2; // r0
if ( *((_BYTE *)this + 544) )
{
result = *((_DWORD *)this + 135);
if ( result )
return (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)result + 172))(result, 0);
}
else
{
*((_BYTE *)this + 544) = 1;
v2 = (GameLevelManager *)GameLevelManager::sharedState(this);
return GameLevelManager::getGJChallenges(v2);
}
return result;
}