//
// GJStoreItem::create from 0x1000668e0 to 0x100066986 (166 bytes)
//
// 0 xrefs:
//
// 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 *__fastcall GJStoreItem::create(int a1, int a2, int a3, int a4, ShopType a5)
{
char *v7; // rbx
v7 = (char *)operator new(0x170u);
cocos2d::CCNode::CCNode(v7);
*(_QWORD *)v7 = off_1008B39B0;
*(_OWORD *)(v7 + 316) = 0;
*(_OWORD *)(v7 + 332) = 0;
*(_OWORD *)(v7 + 348) = 0;
*((_DWORD *)v7 + 91) = 0;
if ( GJStoreItem::init((GJStoreItem *)v7, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
return (GJStoreItem *)v7;
}