//
// GJItemIcon::create from 0x50d73c to 0x50d7f4 (184 bytes)
//
// 9 xrefs:
// > AchievementCell::loadFromDict @ 0x42cd0a
// > GJItemIcon::createStoreItem @ 0x50d832
// > GJItemIcon::createBrowserItem @ 0x50d87e
// > AchievementBar::init @ 0x5379dc
// > RewardUnlockLayer::playRewardEffect @ 0x618dbe
// > RewardUnlockLayer::playRewardEffect @ 0x619232
// > ShardsPage::init @ 0x62c12a
// > CommunityCreditsPage::init @ 0x6389c4
// > GJPathPage::init @ 0x6d385e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:29 +0000
//
int *__fastcall GJItemIcon::create(int a1, int a2, int a3, char a4, unsigned __int8 a5, unsigned __int8 a6, char a7)
{
int *v9; // r4
int v10; // r3
int *v11; // r0
v9 = (int *)operator new(0x218u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v9);
v9[127] = 0;
v9[128] = 0;
*v9 = (int)&off_CA75A0;
v9[66] = (int)&off_CA7814;
v9[70] = (int)&off_CA7854;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v9 + 129));
*((_BYTE *)v9 + 524) = 0;
v9[132] = 0;
v9[133] = 0;
if ( GJItemIcon::init(v9, a1, a2, a3, a4, a5, a6, a7) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
v10 = *v9;
v11 = v9;
v9 = nullptr;
(*(void (__fastcall **)(int *))(v10 + 8))(v11);
}
return v9;
}