//
// GJRewardItem::createWithObjects from 0x1401f3f20 to 0x1401f3f9d (125 bytes)
//
// 147 xrefs:
// > GameStatsManager::createSpecialChestItems @ 0x1401e5f99
// > GameStatsManager::createSpecialChestItems @ 0x1401e6088
// > GameStatsManager::createSpecialChestItems @ 0x1401e611a
// > GameStatsManager::createSpecialChestItems @ 0x1401e61aa
// > GameStatsManager::createSpecialChestItems @ 0x1401e623c
// > GameStatsManager::createSpecialChestItems @ 0x1401e62ce
// > GameStatsManager::createSpecialChestItems @ 0x1401e635e
// > GameStatsManager::createSpecialChestItems @ 0x1401e63ee
// > GameStatsManager::createSpecialChestItems @ 0x1401e647e
// > GameStatsManager::createSpecialChestItems @ 0x1401e6510
// > GameStatsManager::createSpecialChestItems @ 0x1401e65be
// > GameStatsManager::createSpecialChestItems @ 0x1401e666b
// > GameStatsManager::createSpecialChestItems @ 0x1401e66fb
// > GameStatsManager::createSpecialChestItems @ 0x1401e678d
// > GameStatsManager::createSpecialChestItems @ 0x1401e681f
// > GameStatsManager::createSpecialChestItems @ 0x1401e68b1
// > GameStatsManager::createSpecialChestItems @ 0x1401e6941
// > GameStatsManager::createSpecialChestItems @ 0x1401e69d4
// > GameStatsManager::createSpecialChestItems @ 0x1401e6a64
// > GameStatsManager::createSpecialChestItems @ 0x1401e6af6
// > GameStatsManager::createSpecialChestItems @ 0x1401e6b88
// > GameStatsManager::createSpecialChestItems @ 0x1401e6c1a
// > GameStatsManager::createSpecialChestItems @ 0x1401e6cac
// > GameStatsManager::createSpecialChestItems @ 0x1401e6d24
// > GameStatsManager::createSpecialChestItems @ 0x1401e6db4
// > GameStatsManager::createSpecialChestItems @ 0x1401e6e46
// > GameStatsManager::createSpecialChestItems @ 0x1401e6ed8
// > GameStatsManager::createSpecialChestItems @ 0x1401e6f68
// > GameStatsManager::createSpecialChestItems @ 0x1401e6ff8
// > GameStatsManager::createSpecialChestItems @ 0x1401e7088
// > GameStatsManager::createSpecialChestItems @ 0x1401e7118
// > GameStatsManager::createSpecialChestItems @ 0x1401e71aa
// > GameStatsManager::createSpecialChestItems @ 0x1401e723c
// > GameStatsManager::createSpecialChestItems @ 0x1401e72ce
// > GameStatsManager::createSpecialChestItems @ 0x1401e7360
// > GameStatsManager::createSpecialChestItems @ 0x1401e73f2
// > GameStatsManager::createSpecialChestItems @ 0x1401e7484
// > GameStatsManager::createSpecialChestItems @ 0x1401e7514
// > GameStatsManager::createSpecialChestItems @ 0x1401e75bf
// > GameStatsManager::createSpecialChestItems @ 0x1401e766a
// > GameStatsManager::createSpecialChestItems @ 0x1401e76fa
// > GameStatsManager::createSpecialChestItems @ 0x1401e77a7
// > GameStatsManager::createSpecialChestItems @ 0x1401e7852
// > GameStatsManager::createSpecialChestItems @ 0x1401e78ff
// > GameStatsManager::createSpecialChestItems @ 0x1401e79aa
// > GameStatsManager::createSpecialChestItems @ 0x1401e7a56
// > GameStatsManager::createSpecialChestItems @ 0x1401e7b01
// > GameStatsManager::createSpecialChestItems @ 0x1401e7b93
// > GameStatsManager::createSpecialChestItems @ 0x1401e7c23
// > GameStatsManager::createSpecialChestItems @ 0x1401e7cce
// > GameStatsManager::createSpecialChestItems @ 0x1401e7d79
// > GameStatsManager::createSpecialChestItems @ 0x1401e7e24
// > GameStatsManager::createSpecialChestItems @ 0x1401e7ed1
// > GameStatsManager::createSpecialChestItems @ 0x1401e820a
// > GameStatsManager::createSpecialChestItems @ 0x1401e829a
// > GameStatsManager::createSpecialChestItems @ 0x1401e8382
// > GameStatsManager::createSpecialChestItems @ 0x1401e83de
// > GameStatsManager::createSpecialChestItems @ 0x1401e843a
// > GameStatsManager::createSecretChestRewards @ 0x1401ed87d
// > GameStatsManager::createSecretChestRewards @ 0x1401ed8d3
// > GameStatsManager::createSecretChestRewards @ 0x1401ed948
// > GameStatsManager::createSecretChestRewards @ 0x1401ed9a2
// > GameStatsManager::createSecretChestRewards @ 0x1401ed9fa
// > GameStatsManager::createSecretChestRewards @ 0x1401eda6f
// > GameStatsManager::createSecretChestRewards @ 0x1401edac9
// > GameStatsManager::createSecretChestRewards @ 0x1401edb1f
// > GameStatsManager::createSecretChestRewards @ 0x1401edb92
// > GameStatsManager::createSecretChestRewards @ 0x1401edbea
// > GameStatsManager::createSecretChestRewards @ 0x1401edc40
// > GameStatsManager::createSecretChestRewards @ 0x1401edcb3
// > GameStatsManager::createSecretChestRewards @ 0x1401edd0b
// > GameStatsManager::createSecretChestRewards @ 0x1401edd61
// > GameStatsManager::createSecretChestRewards @ 0x1401eddd4
// > GameStatsManager::createSecretChestRewards @ 0x1401ede2c
// > GameStatsManager::createSecretChestRewards @ 0x1401ede82
// > GameStatsManager::createSecretChestRewards @ 0x1401edef5
// > GameStatsManager::createSecretChestRewards @ 0x1401edf4d
// > GameStatsManager::createSecretChestRewards @ 0x1401edfa3
// > GameStatsManager::createSecretChestRewards @ 0x1401ee016
// > GameStatsManager::createSecretChestRewards @ 0x1401ee06e
// > GameStatsManager::createSecretChestRewards @ 0x1401ee0c4
// > GameStatsManager::createSecretChestRewards @ 0x1401ee137
// > GameStatsManager::createSecretChestRewards @ 0x1401ee18f
// > GameStatsManager::createSecretChestRewards @ 0x1401ee202
// > GameStatsManager::createSecretChestRewards @ 0x1401ee25a
// > GameStatsManager::createSecretChestRewards @ 0x1401ee2b0
// > GameStatsManager::createSecretChestRewards @ 0x1401ee323
// > GameStatsManager::createSecretChestRewards @ 0x1401ee37b
// > GameStatsManager::createSecretChestRewards @ 0x1401ee3d1
// > GameStatsManager::createSecretChestRewards @ 0x1401ee444
// > GameStatsManager::createSecretChestRewards @ 0x1401ee49c
// > GameStatsManager::createSecretChestRewards @ 0x1401ee4f2
// > GameStatsManager::createSecretChestRewards @ 0x1401ee565
// > GameStatsManager::createSecretChestRewards @ 0x1401ee5bd
// > GameStatsManager::createSecretChestRewards @ 0x1401ee615
// > GameStatsManager::createSecretChestRewards @ 0x1401ee66d
// > GameStatsManager::createSecretChestRewards @ 0x1401ee6c5
// > GameStatsManager::createSecretChestRewards @ 0x1401ee71d
// > GameStatsManager::createSecretChestRewards @ 0x1401ee775
// > GameStatsManager::createSecretChestRewards @ 0x1401ee7cd
// > GameStatsManager::createSecretChestRewards @ 0x1401ee825
// > GameStatsManager::createSecretChestRewards @ 0x1401ee87d
// > GameStatsManager::createSecretChestRewards @ 0x1401ee8d5
// > GameStatsManager::createSecretChestRewards @ 0x1401ee92d
// > GameStatsManager::createSecretChestRewards @ 0x1401ee985
// > GameStatsManager::createSecretChestRewards @ 0x1401ee9dd
// > GameStatsManager::createSecretChestRewards @ 0x1401eea35
// > GameStatsManager::createSecretChestRewards @ 0x1401eea8d
// > GameStatsManager::createSecretChestRewards @ 0x1401eeae5
// > GameStatsManager::createSecretChestRewards @ 0x1401eeb3d
// > GameStatsManager::createSecretChestRewards @ 0x1401eeb95
// > GameStatsManager::createSecretChestRewards @ 0x1401eebed
// > GameStatsManager::createSecretChestRewards @ 0x1401eec45
// > GameStatsManager::createSecretChestRewards @ 0x1401eec9d
// > GameStatsManager::createSecretChestRewards @ 0x1401eecf5
// > GameStatsManager::createSecretChestRewards @ 0x1401eed4d
// > GameStatsManager::createSecretChestRewards @ 0x1401eeda5
// > GameStatsManager::createSecretChestRewards @ 0x1401eedfd
// > GameStatsManager::createSecretChestRewards @ 0x1401ef17c
// > GameStatsManager::createSecretChestRewards @ 0x1401ef206
// > GameStatsManager::createSecretChestRewards @ 0x1401ef290
// > GameStatsManager::createSecretChestRewards @ 0x1401ef993
// > GameStatsManager::createSecretChestRewards @ 0x1401efa02
// > GameStatsManager::createSecretChestRewards @ 0x1401efa71
// > GameStatsManager::createSecretChestRewards @ 0x1401efae0
// > GameStatsManager::createSecretChestRewards @ 0x1401efb51
// > GameStatsManager::createSecretChestRewards @ 0x1401efcc6
// > GameStatsManager::createSecretChestRewards @ 0x1401efd6b
// > GameStatsManager::createSecretChestRewards @ 0x1401efe10
// > GameStatsManager::createSecretChestRewards @ 0x1401efeb3
// > GameStatsManager::createSecretChestRewards @ 0x1401eff5a
// > GameStatsManager::createSecretChestRewards @ 0x1401efffd
// > GameStatsManager::createSecretChestRewards @ 0x1401f00a4
// > GameStatsManager::createSecretChestRewards @ 0x1401f0149
// > GameStatsManager::createSecretChestRewards @ 0x1401f01f0
// > GameStatsManager::createSecretChestRewards @ 0x1401f0293
// > GameStatsManager::createSecretChestRewards @ 0x1401f0338
// > GameStatsManager::createSecretChestRewards @ 0x1401f03dd
// > GameStatsManager::createSecretChestRewards @ 0x1401f04f1
// > GameStatsManager::createSecretChestRewards @ 0x1401f05b3
// > GameStatsManager::createSecretChestRewards @ 0x1401f0673
// > GameStatsManager::createSecretChestRewards @ 0x1401f0735
// > GameStatsManager::createSecretChestRewards @ 0x1401f07f5
// > GameStatsManager::createSecretChestRewards @ 0x1401f08b7
// > GameStatsManager::createSecretChestRewards @ 0x1401f0979
// > GameStatsManager::createSecretChestRewards @ 0x1401f0a39
// > ??> @ 0x1406cc75c
//
// 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
//
GJRewardItem *GJRewardItem::createWithObjects(GJRewardType a1, cocos2d::CCArray *a2)
{
GJRewardItem *result; // rax
GJRewardItem *v5; // rdi
cocos2d::CCObject *m_rewardObjects; // rcx
__int128 v7; // [rsp+20h] [rbp-28h] BYREF
__int64 v8; // [rsp+30h] [rbp-18h]
__int64 v9; // [rsp+38h] [rbp-10h]
v8 = 0;
v9 = 15;
v7 = 0;
LOBYTE(v7) = 0;
result = (GJRewardItem *)GJRewardItem::create(0, 0, &v7);
v5 = result;
result->m_rewardType = a1;
if ( result->m_rewardObjects != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
m_rewardObjects = v5->m_rewardObjects;
if ( m_rewardObjects )
cocos2d::CCObject::release(m_rewardObjects);
v5->m_rewardObjects = a2;
return v5;
}
return result;
}