//
// ChallengesPage::tryGetChallenges from 0x14009e710 to 0x14009e78c (124 bytes)
//
// 2 xrefs:
// > ChallengesPage::challengeStatusFailed @ 0x14009e6a1
// > ??> @ 0x140912fe0
//
// 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 11:26:05 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall ChallengesPage::tryGetChallenges(__int64 a1)
{
__int64 v1; // rcx
void *v2; // [rsp+30h] [rbp+8h]
if ( *(_BYTE *)(a1 + 712) )
{
v1 = *(_QWORD *)(a1 + 704);
if ( v1 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v1 + 336LL))(v1, 0);
}
else
{
*(_BYTE *)(a1 + 712) = 1;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v2 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v2);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
}
GameLevelManager::getGJChallenges();
}
}