//
// RewardsPage::rewardsStatusFinished from 0x61951c to 0x6195ca (174 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'RewardsPage::rewardsStatusFinished @ 0x6195d4
//
// 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:54:58 +0000
//
int __fastcall RewardsPage::rewardsStatusFinished(RewardUnlockLayer **this, int a2)
{
int v4; // r0
GameStatsManager *RewardItem; // r0
int *v6; // r5
int v7; // r0
GameStatsManager *v8; // r0
cocos2d::CCObject *v9; // r0
GameStatsManager *v10; // r0
int v11; // r0
if ( *(this + 137) )
{
if ( (unsigned int)(a2 - 1) <= 1 )
{
v4 = GameStatsManager::sharedState((GameStatsManager *)this);
RewardItem = (GameStatsManager *)GameStatsManager::getRewardItem(v4, a2);
v6 = (int *)RewardItem;
if ( RewardItem )
{
v7 = GameStatsManager::sharedState(RewardItem);
if ( !GameStatsManager::hasRewardBeenCollected(v7, a2, v6[13]) )
{
v8 = (GameStatsManager *)RewardUnlockLayer::readyToCollect(*(this + 137), (GJRewardItem *)v6);
if ( v8 )
{
v9 = (cocos2d::CCObject *)GameStatsManager::sharedState(v8);
GameStatsManager::preProcessReward(v9, (GJRewardItem *)v6);
v10 = (GameStatsManager *)RewardUnlockLayer::showCollectReward(*(this + 137), (GJRewardItem *)v6);
if ( v10 )
{
v11 = GameStatsManager::sharedState(v10);
GameStatsManager::collectReward(v11, a2, v6);
}
}
}
}
}
}
RewardsPage::updateTimers((int **)this, 0.0);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 132) + 172))(*(this + 132), 1);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 133) + 172))(*(this + 133), 1);
cocos2d::CCNode::unschedule(this, RewardsPage::updateTimers, 0);
return cocos2d::CCNode::schedule(this, RewardsPage::updateTimers, 0, 1065353216);
}