//
// GJRewardItem::createWithObjects from 0x100037b60 to 0x100037bc3 (99 bytes)
//
// 1 xrefs:
// > GameStatsManager::completedDailyLevel @ 0x100039e2b
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:19:32 +0000
//
__int64 __fastcall GJRewardItem::createWithObjects(int a1, __int64 a2)
{
__int64 v2; // r14
__int64 v3; // rdi
_WORD v5[24]; // [rsp+0h] [rbp-30h] BYREF
v5[0] = 0;
v2 = GJRewardItem::create(0, 0, v5);
*(_DWORD *)(v2 + 64) = a1;
v3 = *(_QWORD *)(v2 + 72);
if ( v3 != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v3 = *(_QWORD *)(v2 + 72);
}
if ( v3 )
cocos2d::CCObject::release(v3);
*(_QWORD *)(v2 + 72) = a2;
}
return v2;
}