//
// GJRewardItem::dataLoaded from 0x10008f360 to 0x10008f3d2 (114 bytes)
//
// 0 xrefs:
//
// 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 __fastcall GJRewardItem::dataLoaded(GJRewardItem *a1, DS_Dictionary *a2)
{
cocos2d::CCArray *ArrayForKey; // rax
cocos2d::CCArray *m_rewardObjects; // rdi
cocos2d::CCArray *v5; // r14
a1->m_chestID = DS_Dictionary::getIntegerForKey(a2, "1");
a1->m_rewardType = DS_Dictionary::getIntegerForKey(a2, "2");
ArrayForKey = DS_Dictionary::getArrayForKey(a2, "3", 0);
m_rewardObjects = a1->m_rewardObjects;
if ( m_rewardObjects != ArrayForKey )
{
v5 = ArrayForKey;
if ( ArrayForKey )
{
cocos2d::CCObject::retain(ArrayForKey);
m_rewardObjects = a1->m_rewardObjects;
}
if ( m_rewardObjects )
cocos2d::CCObject::release(m_rewardObjects);
a1->m_rewardObjects = v5;
}
}