//
// GameStatsManager::storeEventChest from 0x8cc7d4 to 0x8cc878 (164 bytes)
//
// 3 xrefs:
// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x83bc30
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x859aa8
// > ??> @ 0x4eb50
//
// 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:36 +0000
//
__int64 __fastcall GameStatsManager::storeEventChest(GameStatsManager *this, const char *a2, GJRewardItem *a3)
{
__int64 v3; // x21
__int64 v6[3]; // [xsp+40h] [xbp+40h] BYREF
if ( a3 )
{
v3 = *((_QWORD *)this + 93);
GameStatsManager::getDailyLevelKey(a2, v6);
cocos2d::CCDictionary::setObject(v3, a3);
if ( (v6[0] & 1) != 0 )
operator delete((void *)v6[2]);
}
return _stack_chk_guard;
}