//
// GameStatsManager::addSimpleSpecialChestReward from 0x7a7118 to 0x7a718c (116 bytes)
//
// 19 xrefs:
// > GameStatsManager::createSpecialChestItems @ 0x7c1e04
// > GameStatsManager::createSpecialChestItems @ 0x7c1e44
// > GameStatsManager::createSpecialChestItems @ 0x7c1e84
// > GameStatsManager::createSpecialChestItems @ 0x7c1ec4
// > GameStatsManager::createSpecialChestItems @ 0x7c1f04
// > GameStatsManager::createSpecialChestItems @ 0x7c1f44
// > GameStatsManager::createSpecialChestItems @ 0x7c1f84
// > GameStatsManager::createSpecialChestItems @ 0x7c1fc4
// > GameStatsManager::createSpecialChestItems @ 0x7c2004
// > GameStatsManager::createSpecialChestItems @ 0x7c2044
// > GameStatsManager::createSpecialChestItems @ 0x7c2084
// > GameStatsManager::createSpecialChestItems @ 0x7c20c4
// > GameStatsManager::createSpecialChestItems @ 0x7c2104
// > GameStatsManager::createSpecialChestItems @ 0x7c2144
// > GameStatsManager::createSpecialChestItems @ 0x7c2184
// > GameStatsManager::createSpecialChestItems @ 0x7c21c4
// > GameStatsManager::createSpecialChestItems @ 0x7c2204
// > GameStatsManager::createSpecialChestItems @ 0x7c2244
// > ??> @ 0x966f0
//
// 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
//
__int64 __fastcall GameStatsManager::addSimpleSpecialChestReward(__int64 a1, __int64 a2, UnlockType a3, int a4)
{
cocos2d::CCArray *v5; // x19
GJRewardObject *ItemUnlock; // x0
__int64 v7; // x21
GJRewardItem *v8; // x0
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
ItemUnlock = GJRewardObject::createItemUnlock(a3, a4);
cocos2d::CCArray::addObject(v5, ItemUnlock);
v7 = *(_QWORD *)(a1 + 360);
v8 = GJRewardItem::createWithObjects(Large, v5);
return cocos2d::CCDictionary::setObject(v7, v8);
}