//
// GJShopLayer::scene from 0x100322df0 to 0x100322f1d (301 bytes)
//
// 4 xrefs:
// > GJGarageLayer::onShop @ 0x10036c094
// > SecretRewardsLayer::onShop @ 0x100632907
// > SecretRewardsLayer::showShop @ 0x10063a11b
// > SecretRewardsLayer::dialogClosed @ 0x10063a256
//
// 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
//
cocos2d::CCScene *__fastcall GJShopLayer::scene(ShopType a1)
{
cocos2d::CCScene *v1; // rbx
char *v2; // r14
v1 = cocos2d::CCScene::create();
AppDelegate::get()->m_runningScene = v1;
v2 = (char *)operator new(0x210u);
cocos2d::CCLayer::CCLayer(v2);
*(_QWORD *)v2 = off_1009136F8;
*((_QWORD *)v2 + 40) = off_100913B90;
*((_QWORD *)v2 + 41) = &off_100913C00;
*((_QWORD *)v2 + 42) = off_100913C18;
*((_QWORD *)v2 + 43) = off_100913C38;
*((_QWORD *)v2 + 44) = off_100913C58;
*((_QWORD *)v2 + 51) = &off_100913C80;
*((_QWORD *)v2 + 52) = &off_100913C98;
*((_QWORD *)v2 + 53) = off_100913CB0;
v2[432] = 0;
*(_OWORD *)(v2 + 440) = 0;
*((_DWORD *)v2 + 114) = 0;
*((_OWORD *)v2 + 29) = 0;
*((_OWORD *)v2 + 30) = 0;
*(_OWORD *)(v2 + 490) = 0;
*((_OWORD *)v2 + 32) = 0;
if ( GJShopLayer::init((GJShopLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
v2 = nullptr;
}
((void (__fastcall *)(cocos2d::CCScene *, char *))v1->addChild)(v1, v2);
return v1;
}