//
// GJItemIcon::create from 0x1003079b4 to 0x100307a60 (172 bytes)
//
// 12 xrefs:
// > AchievementCell::loadFromDict @ 0x100101ac8
// > CommunityCreditsPage::init @ 0x1001a1ac4
// > RewardUnlockLayer::playRewardEffect @ 0x1001c626c
// > RewardUnlockLayer::playRewardEffect @ 0x1001c671c
// > AchievementBar::init @ 0x10026b694
// > GJGarageLayer::setupSpecialPage @ 0x1003054c4
// > GJGarageLayer::getItems @ 0x100305754
// > GJGarageLayer::dialogClosed @ 0x100306da4
// > GJItemIcon::createStoreItem @ 0x1003079b0
// > ItemInfoPopup::init @ 0x1003085f0
// > ShardsPage::init @ 0x1003a291c
// > GJPathPage::init @ 0x1003b95b8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
GJItemIcon *__fastcall GJItemIcon::create(
UnlockType a1,
int a2,
cocos2d::ccColor3B a3,
cocos2d::ccColor3B a4,
bool a5,
bool a6,
bool a7,
cocos2d::ccColor3B a8)
{
int v10; // w23
int v11; // w25
GJItemIcon *v14; // x19
cocos2d::ccColor3B v16; // [xsp+0h] [xbp-50h]
v10 = *(_DWORD *)&a4.r;
v11 = *(_DWORD *)&a3.r;
v14 = (GJItemIcon *)operator new(0x278u);
GJItemIcon::GJItemIcon(v14);
if ( GJItemIcon::init(
v14,
a1,
a2,
(cocos2d::ccColor3B)(v11 & 0xFFFFFF),
(cocos2d::ccColor3B)(v10 & 0xFFFFFF),
a5,
0,
a7,
v16) )
{
cocos2d::CCObject::autorelease(v14);
}
else
{
((void (__fastcall *)(GJItemIcon *))v14->~GJItemIcon_0)(v14);
return nullptr;
}
return v14;
}