//
// GJRewardItem::createWithObject from 0x100052f50 to 0x100052fbb (107 bytes)
//
// 0 xrefs:
//
// 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:35 +0000
//
_QWORD *__fastcall GJRewardItem::createWithObject(int a1, __int64 a2)
{
__int64 v2; // rbx
_QWORD *v3; // r14
__int64 v4; // rdi
__int128 v6[3]; // [rsp+0h] [rbp-30h] BYREF
v2 = sub_1007FE9A0(a2);
LOWORD(v6[0]) = 0;
v3 = GJRewardItem::create(0, 0, v6);
*((_DWORD *)v3 + 16) = a1;
v4 = v3[9];
if ( v4 != v2 )
{
if ( v2 )
{
cocos2d::CCObject::retain(v2);
v4 = v3[9];
}
if ( v4 )
cocos2d::CCObject::release(v4);
v3[9] = v2;
}
return v3;
}