//
// GJItemIcon::create from 0x10035a460 to 0x10035a547 (231 bytes)
//
// 13 xrefs:
// > RewardUnlockLayer::playRewardEffect @ 0x100200da6
// > RewardUnlockLayer::playRewardEffect @ 0x1002014ef
// > AchievementCell::loadFromDict @ 0x100229104
// > GJPathPage::init @ 0x1002eac9c
// > CommunityCreditsPage::init @ 0x10030b6e4
// > GJGarageLayer::setupSpecialPage @ 0x100356bf3
// > GJGarageLayer::getItems @ 0x100357030
// > GJItemIcon::createBrowserItem @ 0x10035728e
// > GJGarageLayer::dialogClosed @ 0x10035907b
// > GJItemIcon::createStoreItem @ 0x10035a449
// > ItemInfoPopup::init @ 0x10035b3bb
// > ShardsPage::init @ 0x1004c0e4b
// > AchievementBar::init @ 0x1006f6b00
//
// 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:28:53 +0000
//
_QWORD *__fastcall GJItemIcon::create(int a1, int a2, int a3, int a4, unsigned __int8 a5, _DWORD a6, char a7)
{
_QWORD *v9; // rbx
v9 = operator new(0x278u);
cocos2d::CCSprite::CCSprite((__int64)v9);
*v9 = off_100B24488;
v9[40] = off_100B24970;
v9[43] = off_100B249F0;
v9[75] = 0;
*((_DWORD *)v9 + 152) = 0;
sub_100278600((_QWORD *)((char *)v9 + 612));
*((_BYTE *)v9 + 620) = 0;
v9[78] = 0;
if ( (unsigned __int8)GJItemIcon::init((_DWORD)v9, a1, a2, a3, a4, a5, 0, a7) )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v9 + 16LL))(v9);
return nullptr;
}
return v9;
}