//
// NotificationsPage::notificationRewardFinished from 0x743f2c to 0x743ff8 (204 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'NotificationsPage::notificationRewardFinished @ 0x744000
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:40 +0000
//
int __fastcall NotificationsPage::notificationRewardFinished(NotificationsPage *this, int a2)
{
int v4; // r0
GameStatsManager *NotificationRewardKey; // r0
int v6; // r8
int isSpecialChestUnlocked; // r8
GameStatsManager *v8; // r0
int *v9; // r8
RewardUnlockLayer **v10; // r8
RewardsPage *v11; // r2
FLAlertLayer *v12; // r4
_BYTE v14[12]; // [sp+0h] [bp-28h] BYREF
int v15[3]; // [sp+Ch] [bp-1Ch] BYREF
int v16[3]; // [sp+18h] [bp-10h] BYREF
v4 = GameStatsManager::sharedState(this);
NotificationRewardKey = GameStatsManager::getNotificationRewardKey((GameStatsManager *)v14, v4, a2);
v6 = GameStatsManager::sharedState(NotificationRewardKey);
std::string::basic_string(v15, (int)v14);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v6, (int)v15);
v8 = (GameStatsManager *)std::string::~string((int)v15);
if ( isSpecialChestUnlocked )
{
NotificationsPage::reloadCells(this);
}
else
{
v9 = (int *)GameStatsManager::sharedState(v8);
std::string::basic_string(v16, (int)v14);
v10 = (RewardUnlockLayer **)GameStatsManager::unlockOnlineChest(v9, (int)v16);
std::string::~string((int)v16);
if ( v10 )
{
NotificationsPage::reloadCells(this);
v12 = RewardUnlockLayer::create(v10[15], nullptr, v11);
(*(void (__fastcall **)(NotificationsPage *, FLAlertLayer *, int))(*(_DWORD *)this + 232))(this, v12, 100);
RewardUnlockLayer::showCollectReward(v12, (GJRewardItem *)v10);
}
}
return std::string::~string((int)v14);
}