//
// GJShopLayer::create from 0x100322f30 to 0x10032302c (252 bytes)
//
// 0 xrefs:
//
// 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 *v1; // rbx
v1 = (char *)operator new(0x210u);
cocos2d::CCLayer::CCLayer(v1);
*(_QWORD *)v1 = off_1009136F8;
*((_QWORD *)v1 + 40) = off_100913B90;
*((_QWORD *)v1 + 41) = &off_100913C00;
*((_QWORD *)v1 + 42) = off_100913C18;
*((_QWORD *)v1 + 43) = off_100913C38;
*((_QWORD *)v1 + 44) = off_100913C58;
*((_QWORD *)v1 + 51) = &off_100913C80;
*((_QWORD *)v1 + 52) = &off_100913C98;
*((_QWORD *)v1 + 53) = off_100913CB0;
v1[432] = 0;
*(_OWORD *)(v1 + 440) = 0;
*((_DWORD *)v1 + 114) = 0;
*((_OWORD *)v1 + 29) = 0;
*((_OWORD *)v1 + 30) = 0;
*(_OWORD *)(v1 + 490) = 0;
*((_OWORD *)v1 + 32) = 0;
if ( GJShopLayer::init((GJShopLayer *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (GJShopLayer *)v1;
}