//
// NotificationsPage::notificationRewardFinished from 0x10098c4b0 to 0x10098c60d (349 bytes)
//
// 2 xrefs:
// > sub_10098C690 @ 0x10098c69c
// > ??> @ 0x100bd4820
//
// 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:39:06 +0000
//
void __fastcall NotificationsPage::notificationRewardFinished(_QWORD *a1, int a2, double a3)
{
__int64 v4; // rax
__int64 v5; // r14
bool isSpecialChestUnlocked; // r14
__int64 v7; // rax
__int64 v8; // rdi
__int64 v9; // r14
__int64 v10; // r14
__int64 v11; // rax
__int64 v12; // rdi
char *v13; // r15
__int128 v14; // [rsp+0h] [rbp-70h] BYREF
void *__p; // [rsp+10h] [rbp-60h]
__int128 v16; // [rsp+20h] [rbp-50h] BYREF
void *v17; // [rsp+30h] [rbp-40h]
__int128 v18; // [rsp+40h] [rbp-30h] BYREF
void *v19; // [rsp+50h] [rbp-20h]
v4 = GameStatsManager::sharedState();
GameStatsManager::getNotificationRewardKey((size_t *)&v18, v4, a2);
v5 = GameStatsManager::sharedState();
if ( (v18 & 1) != 0 )
{
sub_10001AD30(&v14, v19, *((unsigned __int64 *)&v18 + 1));
}
else
{
__p = v19;
a3 = *(double *)&v18;
v14 = v18;
}
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v5, (__int64)&v14);
if ( (v14 & 1) != 0 )
operator delete(__p);
if ( isSpecialChestUnlocked )
{
v7 = a1[86];
if ( v7 )
{
v8 = *(_QWORD *)(v7 + 544);
if ( v8 )
CustomListView::reloadAll(v8, (__int64)&v14, a3);
}
}
else
{
v9 = GameStatsManager::sharedState();
if ( (v18 & 1) != 0 )
{
sub_10001AD30(&v16, v19, *((unsigned __int64 *)&v18 + 1));
}
else
{
v17 = v19;
a3 = *(double *)&v18;
v16 = v18;
}
v10 = GameStatsManager::unlockOnlineChest(v9, &v16);
if ( (v16 & 1) != 0 )
operator delete(v17);
if ( v10 )
{
v11 = a1[86];
if ( v11 )
{
v12 = *(_QWORD *)(v11 + 544);
if ( v12 )
CustomListView::reloadAll(v12, (__int64)&v16, a3);
}
v13 = RewardUnlockLayer::create(*(_DWORD *)(v10 + 64), 0);
(*(void (__fastcall **)(_QWORD *, char *, __int64))(*a1 + 464LL))(a1, v13, 100);
RewardUnlockLayer::showCollectReward((__int64)v13, v10);
}
}
if ( (v18 & 1) != 0 )
operator delete(v19);
}