//
// RewardsPage::tryGetRewards from 0x140563040 to 0x14056308d (77 bytes)
//
// 2 xrefs:
// > RewardsPage::rewardsStatusFailed @ 0x140562fe2
// > ??> @ 0x14092c4d4
//
// 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:34:15 +0000
//
// Hidden C++ exception states: #wind=1
char RewardsPage::tryGetRewards()
{
__int64 v0; // rcx
void *v2; // [rsp+38h] [rbp+10h]
v0 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v2 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v2);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v0 = *(_QWORD *)&qword_14090BFB0;
}
return GameLevelManager::getGJRewards(v0, 0);
}