//
// LeaderboardsLayer::create from 0x452914 to 0x4529c8 (180 bytes)
//
// 1 xrefs:
// > LeaderboardsLayer::scene @ 0x4529e2
//
// 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
//
LeaderboardsLayer *LeaderboardsLayer::create(LeaderboardType a1, LeaderboardStat a2)
{
LeaderboardsLayer *v4; // r4
LeaderboardsLayer_vtbl *v5; // r3
int *v6; // r0
v4 = (LeaderboardsLayer *)operator new(0x174u);
cocos2d::CCLayer::CCLayer(v4);
v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LeaderboardsLayer_vtbl *)&off_A64560;
v4->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A647B4;
v4->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A647EC;
v4->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A647F8;
v4->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A64808;
v4->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A64818;
v4->LeaderboardManagerDelegate::__vftable = (LeaderboardManagerDelegate_vtbl *)&off_A6482C;
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A64844;
v4->m_list = nullptr;
v4->m_userScores = nullptr;
v4->m_type = Default;
v4->m_stat = Stars;
v4->m_topBtn = nullptr;
v4->m_globalBtn = nullptr;
v4->m_creatorsBtn = nullptr;
v4->m_friendsBtn = nullptr;
v4->m_circle = nullptr;
v4->m_noInternet = nullptr;
v4->m_modeButtons = nullptr;
if ( LeaderboardsLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = (int *)v4;
v4 = nullptr;
v5->~LeaderboardsLayer_0((LeaderboardsLayer *)v6);
}
return v4;
}