//
// GameStatsManager::addSimpleSpecialChestReward from 0x40e902 to 0x40e93e (60 bytes)
//
// 18 xrefs:
// > GameStatsManager::createSpecialChestItems @ 0x41f9da
// > GameStatsManager::createSpecialChestItems @ 0x41f9fe
// > GameStatsManager::createSpecialChestItems @ 0x41fa22
// > GameStatsManager::createSpecialChestItems @ 0x41fa44
// > GameStatsManager::createSpecialChestItems @ 0x41fa66
// > GameStatsManager::createSpecialChestItems @ 0x41fa8a
// > GameStatsManager::createSpecialChestItems @ 0x41faac
// > GameStatsManager::createSpecialChestItems @ 0x41fad0
// > GameStatsManager::createSpecialChestItems @ 0x41faf4
// > GameStatsManager::createSpecialChestItems @ 0x41fb16
// > GameStatsManager::createSpecialChestItems @ 0x41fb3a
// > GameStatsManager::createSpecialChestItems @ 0x41fb5e
// > GameStatsManager::createSpecialChestItems @ 0x41fb82
// > GameStatsManager::createSpecialChestItems @ 0x41fba6
// > GameStatsManager::createSpecialChestItems @ 0x41fbc8
// > GameStatsManager::createSpecialChestItems @ 0x41fbec
// > GameStatsManager::createSpecialChestItems @ 0x41fc0e
// > GameStatsManager::createSpecialChestItems @ 0x41fc30
//
// 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
//
int __fastcall GameStatsManager::addSimpleSpecialChestReward(cocos2d::CCArray *a1, int a2, UnlockType a3, int a4)
{
cocos2d::CCArray *v7; // r4
GJRewardObject *ItemUnlock; // r0
int m_uID; // r6
GJRewardItem *v10; // r1
v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
ItemUnlock = GJRewardObject::createItemUnlock(a3, a4);
cocos2d::CCArray::addObject(v7, ItemUnlock);
m_uID = a1[5].m_uID;
v10 = GJRewardItem::createWithObjects(Large, v7);
return cocos2d::CCDictionary::setObject(m_uID, v10);
}