//
// ChallengesPage::tryGetChallenges from 0x100387e60 to 0x100387e9d (61 bytes)
//
// 1 xrefs:
// > ChallengesPage::challengeStatusFailed @ 0x100387dfb
//
// 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
//
void __fastcall ChallengesPage::tryGetChallenges(__int64 a1, double a2)
{
__int64 v2; // rdi
__int64 v3; // rax
if ( *(_BYTE *)(a1 + 712) == 1 )
{
v2 = *(_QWORD *)(a1 + 704);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
}
else
{
*(_BYTE *)(a1 + 712) = 1;
v3 = GameLevelManager::sharedState(a2);
GameLevelManager::getGJChallenges(v3);
}
}