//
// GJNotificationCell::onClaimReward from 0x14015c810 to 0x14015c886 (118 bytes)
//
// 2 xrefs:
// > GJNotificationCell::loadFromNotification @ 0x14015bb5a
// > ??> @ 0x140917b70
//
// 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:27:23 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJNotificationCell::onClaimReward(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rcx
void *v4; // [rsp+30h] [rbp+8h]
result = *(_QWORD *)(a1 + 568);
if ( result && *(int *)(result + 248) > 0 )
{
v3 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v4 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v4);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v3 = *(_QWORD *)&qword_14090BFB0;
}
return GameLevelManager::claimNotificationReward(v3, *(unsigned int *)(*(_QWORD *)(a1 + 568) + 56LL));
}
return result;
}