//
// LeaderboardsLayer::scene from 0x1005120d0 to 0x1005121ef (287 bytes)
//
// 1 xrefs:
// > CreatorLayer::onLeaderboards @ 0x100298509
//
// 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 LeaderboardsLayer::scene(LeaderboardType a1, LeaderboardStat a2)
{
cocos2d::CCScene *v2; // rbx
char *v3; // r14
v2 = cocos2d::CCScene::create();
AppDelegate::get()->m_runningScene = v2;
v3 = (char *)operator new(0x200u);
cocos2d::CCLayer::CCLayer((__int64)v3);
*(_QWORD *)v3 = off_10095E828;
*((_QWORD *)v3 + 40) = off_10095ECD0;
*((_QWORD *)v3 + 41) = &off_10095ED40;
*((_QWORD *)v3 + 42) = off_10095ED58;
*((_QWORD *)v3 + 43) = off_10095ED78;
*((_QWORD *)v3 + 44) = off_10095ED98;
*((_QWORD *)v3 + 51) = off_10095EDC0;
*((_QWORD *)v3 + 52) = &off_10095EDF0;
*((_QWORD *)v3 + 63) = 0;
*(_OWORD *)(v3 + 424) = 0;
*(_OWORD *)(v3 + 440) = 0;
*(_OWORD *)(v3 + 456) = 0;
*(_OWORD *)(v3 + 472) = 0;
*((_QWORD *)v3 + 61) = 0;
if ( LeaderboardsLayer::init((LeaderboardsLayer *)v3, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 16LL))(v3);
v3 = nullptr;
}
((void (__fastcall *)(cocos2d::CCScene *, char *))v2->addChild)(v2, v3);
return v2;
}