//
// GameStatsManager::collectReward from 0x8eac8c to 0x8ead64 (216 bytes)
//
// 2 xrefs:
// > RewardsPage::rewardsStatusFinished @ 0xa88f68
// > ??> @ 0xbd3a0
//
// This function is hookable on this platform (idp: arm, 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:56:55 +0000
//
__int64 __fastcall GameStatsManager::collectReward(GameStatsManager *a1, unsigned int a2, unsigned int *a3)
{
__int64 v7; // x24
unsigned __int64 v8[3]; // [xsp+40h] [xbp+40h] BYREF
if ( a3 )
{
if ( !GameStatsManager::hasRewardBeenCollected((__int64)a1, a2, a3[14]) )
{
GameStatsManager::registerRewardsFromItem(a1, (GJRewardItem *)a3);
v7 = *((_QWORD *)a1 + 60);
GameStatsManager::getRewardKey(a2, a3[14], v8);
cocos2d::CCDictionary::setObject(v7, (cocos2d::CCObject *)a3);
if ( (v8[0] & 1) != 0 )
operator delete((void *)v8[2]);
}
}
return _stack_chk_guard;
}