//
// GameStatsManager::collectReward from 0x10033353c to 0x1003335c0 (132 bytes)
//
// 1 xrefs:
// > RewardsPage::rewardsStatusFinished @ 0x1001c4b30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GameStatsManager::collectReward(GameStatsManager *a1, GJRewardType a2, GJRewardItem *a3)
{
__int64 v4; // x20
cocos2d::CCDictionary *m_dailyChests; // x21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v8; // [xsp+1Fh] [xbp-21h]
if ( a3 )
{
v4 = *(_QWORD *)&a2;
if ( !GameStatsManager::hasRewardBeenCollected(a1, a2, a3->m_chestID) )
{
GameStatsManager::registerRewardsFromItem(a1, a3);
m_dailyChests = a1->m_dailyChests;
GameStatsManager::getRewardKey(v4, (unsigned int)a3->m_chestID, __p);
cocos2d::CCDictionary::setObject_1(m_dailyChests, a3, __p);
if ( v8 < 0 )
operator delete(__p[0]);
}
}
}