//
// GJRewardItem::createWithObjects from 0x100072080 to 0x1000720e3 (99 bytes)
//
// 1 xrefs:
// > GameStatsManager::completedDailyLevel @ 0x10007435d
//
// 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 *__fastcall GJRewardItem::createWithObjects(GJRewardType a1, cocos2d::CCArray *a2)
{
__int64 v2; // r14
cocos2d::CCArray *v3; // rdi
_WORD v5[24]; // [rsp+0h] [rbp-30h] BYREF
v5[0] = 0;
v2 = GJRewardItem::create(0, 0, v5);
*(_DWORD *)(v2 + 64) = a1;
v3 = *(cocos2d::CCArray **)(v2 + 72);
if ( v3 != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v3 = *(cocos2d::CCArray **)(v2 + 72);
}
if ( v3 )
cocos2d::CCObject::release(v3);
*(_QWORD *)(v2 + 72) = a2;
}
return (GJRewardItem *)v2;
}