//
// GameStatsManager::collectReward from 0x41c73c to 0x41c7a4 (104 bytes)
//
// 1 xrefs:
// > RewardsPage::rewardsStatusFinished @ 0x4e9d00
//
// 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
//
void GameStatsManager::collectReward(GameStatsManager *a1, GJRewardType a2, GJRewardItem *a3)
{
cocos2d::CCDictionary *m_dailyChests; // r8
_DWORD v7[3]; // [sp+0h] [bp-Ch] BYREF
v7[0] = a1;
v7[1] = a2;
v7[2] = a3;
if ( a3 )
{
if ( !GameStatsManager::hasRewardBeenCollected(a1, a2, a3->m_chestID) )
{
GameStatsManager::registerRewardsFromItem(a1, a3);
m_dailyChests = a1->m_dailyChests;
GameStatsManager::getRewardKey((int)v7, (int)a1, a2, a3->m_chestID);
cocos2d::CCDictionary::setObject((int)m_dailyChests, a3);
sub_774008(v7);
}
}
}