//
// GJStoreItem::create from 0x7ae3d0 to 0x7ae4d0 (256 bytes)
//
// 2 xrefs:
// > GameStatsManager::addStoreItem @ 0x7b74b4
// > ??> @ 0x7bf30
//
// 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
//
GJStoreItem *GJStoreItem::create(int a1, int a2, int a3, int a4, ShopType a5)
{
__int64 v10; // x19
v10 = operator new(0x170u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v10);
*(_DWORD *)(v10 + 316) = 0;
*(_DWORD *)(v10 + 320) = 0;
*(_QWORD *)v10 = &off_117B910;
*(_DWORD *)(v10 + 324) = 0;
*(_DWORD *)(v10 + 328) = 0;
*(_DWORD *)(v10 + 332) = 0;
*(_DWORD *)(v10 + 336) = 0;
*(_DWORD *)(v10 + 340) = 0;
*(_DWORD *)(v10 + 344) = 0;
*(_DWORD *)(v10 + 348) = 0;
*(_DWORD *)(v10 + 352) = 0;
*(_DWORD *)(v10 + 356) = 0;
*(_DWORD *)(v10 + 360) = 0;
*(_DWORD *)(v10 + 364) = 0;
if ( GJStoreItem::init((GJStoreItem *)v10, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);
return (GJStoreItem *)v10;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 16LL))(v10);
return nullptr;
}
}