//
// GameStatsManager::storeEventChest from 0x516d5c to 0x516db2 (86 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x4ca600
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x4da39a
//
// 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:43 +0000
//
int __fastcall GameStatsManager::storeEventChest(int this, const char *a2, GJRewardItem *a3, int a4)
{
int v5; // r8
_DWORD v6[4]; // [sp+0h] [bp-10h] BYREF
v6[0] = this;
v6[1] = a2;
v6[2] = a3;
v6[3] = a4;
if ( a3 )
{
v5 = *(_DWORD *)(this + 480);
GameStatsManager::getDailyLevelKey((GameStatsManager *)v6, this, a2);
cocos2d::CCDictionary::setObject(v5, a3);
return std::string::~string((int)v6);
}
return this;
}