//
// GameStatsManager::collectReward from 0x52a9fc to 0x52aa66 (106 bytes)
//
// 1 xrefs:
// > RewardsPage::rewardsStatusFinished @ 0x619574
//
// 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:51:59 +0000
//
int __fastcall GameStatsManager::collectReward(int result, int a2, int *a3)
{
unsigned int v3; // r7
int v6; // r8
int v7[3]; // [sp+0h] [bp-14h] BYREF
v3 = result;
if ( a3 )
{
result = GameStatsManager::hasRewardBeenCollected(result, a2, a3[13]);
if ( !result )
{
GameStatsManager::registerRewardsFromItem(v3, (GJRewardItem *)a3);
v6 = *(_DWORD *)(v3 + 344);
GameStatsManager::getRewardKey(v7, v3, a2, a3[13]);
cocos2d::CCDictionary::setObject(v6, (cocos2d::CCObject *)a3);
return std::string::~string((int)v7);
}
}
return result;
}