//
// GJItemIcon::createStoreItem from 0x1403832d0 to 0x1403833f9 (297 bytes)
//
// 3 xrefs:
// > GJShopLayer::init @ 0x1403b157e
// > PurchaseItemPopup::init @ 0x1403b52b2
// > ??> @ 0x140922a00
//
// 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 11:31:06 +0000
//
// Hidden C++ exception states: #wind=2
char *__fastcall GJItemIcon::createStoreItem(int a1, int a2, char a3)
{
char *v6; // r15
__int16 v8; // [rsp+50h] [rbp-48h] BYREF
char v9; // [rsp+52h] [rbp-46h]
__int16 v10; // [rsp+60h] [rbp-38h] BYREF
char v11; // [rsp+62h] [rbp-36h]
v8 = -256;
v6 = (char *)operator new(0x278u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v6);
*(_QWORD *)v6 = &GJItemIcon::`vftable';
*((_QWORD *)v6 + 40) = &GJItemIcon::`vftable';
*((_QWORD *)v6 + 43) = &GJItemIcon::`vftable';
*((_QWORD *)v6 + 75) = 0;
*((_DWORD *)v6 + 152) = 0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v6 + 612));
v6[620] = 0;
*((_QWORD *)v6 + 78) = 0;
v9 = -1;
v10 = -1;
v11 = -1;
if ( (unsigned __int8)GJItemIcon::init((_DWORD)v6, a1, a2, (unsigned int)&v10, (__int64)&v8, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);
return nullptr;
}
}