//
// GJRewardItem::createWithCoder from 0x100055df0 to 0x100055e80 (144 bytes)
//
// 1 xrefs:
// > GJObjectDecoder::getDecodedObject @ 0x1008037e9
//
// 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:36 +0000
//
_QWORD *__fastcall GJRewardItem::createWithCoder(__int64 a1)
{
_QWORD *v1; // rbx
__int64 ArrayForKey; // rax
__int64 v3; // rdi
__int64 v4; // r14
__int128 v6; // [rsp+8h] [rbp-28h] BYREF
LOWORD(v6) = 0;
v1 = GJRewardItem::create(0, 0, &v6);
*((_DWORD *)v1 + 14) = DS_Dictionary::getIntegerForKey(a1, "1");
*((_DWORD *)v1 + 16) = DS_Dictionary::getIntegerForKey(a1, "2");
ArrayForKey = DS_Dictionary::getArrayForKey(a1, "3", 0);
v3 = v1[9];
if ( v3 != ArrayForKey )
{
v4 = ArrayForKey;
if ( ArrayForKey )
{
cocos2d::CCObject::retain(ArrayForKey);
v3 = v1[9];
}
if ( v3 )
cocos2d::CCObject::release(v3);
v1[9] = v4;
}
return v1;
}