//
// GJShopLayer::create from 0x10014a594 to 0x10014a658 (196 bytes)
//
// 1 xrefs:
// > GJShopLayer::scene @ 0x10014a56c
//
// 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
//
GJShopLayer *__fastcall GJShopLayer::create(ShopType a1)
{
char *v2; // x19
v2 = (char *)operator new(0x210u);
cocos2d::CCLayer::CCLayer((__int64)v2);
*(_QWORD *)v2 = off_1007988A8;
*((_QWORD *)v2 + 40) = off_100798D40;
*((_QWORD *)v2 + 41) = &off_100798DB0;
*((_QWORD *)v2 + 42) = off_100798DC8;
*((_QWORD *)v2 + 43) = &off_100798DE8;
*((_QWORD *)v2 + 44) = off_100798E08;
*((_QWORD *)v2 + 51) = &off_100798E30;
*((_QWORD *)v2 + 52) = &off_100798E48;
*((_QWORD *)v2 + 53) = off_100798E60;
v2[432] = 0;
*((_DWORD *)v2 + 114) = 0;
*(_OWORD *)(v2 + 440) = 0u;
*((_OWORD *)v2 + 29) = 0u;
*((_OWORD *)v2 + 30) = 0u;
*(_OWORD *)(v2 + 490) = 0u;
*((_OWORD *)v2 + 32) = 0u;
if ( GJShopLayer::init((GJShopLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (GJShopLayer *)v2;
}