//
// GJItemIcon::create from 0x79486c to 0x7949ac (320 bytes)
//
// 10 xrefs:
// > AchievementCell::loadFromDict @ 0x60e208
// > GJItemIcon::createStoreItem @ 0x7949e0
// > GJItemIcon::createBrowserItem @ 0x794a30
// > AchievementBar::init @ 0x7d82b8
// > RewardUnlockLayer::playRewardEffect @ 0x93949c
// > RewardUnlockLayer::playRewardEffect @ 0x9396c8
// > ShardsPage::init @ 0x95cd98
// > CommunityCreditsPage::init @ 0x971b70
// > GJPathPage::init @ 0xa6fd98
// > ??> @ 0x55a70
//
// 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 *GJItemIcon::create(
UnlockType a1,
int a2,
cocos2d::ccColor3B a3,
cocos2d::ccColor3B a4,
bool a5,
bool a6,
bool a7,
cocos2d::ccColor3B a8)
{
__int64 v13; // x19
int v15; // [xsp+58h] [xbp+48h]
int v16; // [xsp+60h] [xbp+50h]
int v17; // [xsp+68h] [xbp+58h]
v17 = *(_DWORD *)&a3.r;
v16 = *(_DWORD *)&a4.r;
v15 = *(_DWORD *)&a8.r;
v13 = operator new(0x278u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v13);
*(_QWORD *)(v13 + 600) = 0;
*(_QWORD *)v13 = &off_1179250;
*(_QWORD *)(v13 + 320) = &off_1179728;
*(_QWORD *)(v13 + 344) = &off_11797A8;
*(_DWORD *)(v13 + 608) = 0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v13 + 612));
*(_BYTE *)(v13 + 620) = 0;
*(_DWORD *)(v13 + 624) = 0;
*(_DWORD *)(v13 + 628) = 0;
if ( GJItemIcon::init(
(GJItemIcon *)v13,
a1,
a2,
(cocos2d::ccColor3B)v17,
(cocos2d::ccColor3B)v16,
a5,
a6,
a7,
(cocos2d::ccColor3B)v15) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v13);
return (GJItemIcon *)v13;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 16LL))(v13);
return nullptr;
}
}