//
// LeaderboardsLayer::dLeaderboardsLayer from 0x100511f70 to 0x100512048 (216 bytes)
//
// 4 xrefs:
// > sub_100512050 @ 0x100512055
// > sub_100512060 @ 0x10051206c
// > sub_100512080 @ 0x100512089
// > sub_1005120A0 @ 0x1005120b3
//
// 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
//
__int64 __fastcall LeaderboardsLayer::dLeaderboardsLayer(LeaderboardManagerDelegate *a1)
{
cocos2d::CCObject *v2; // rdi
cocos2d::CCObject *v3; // rdi
a1->__vftable = (LeaderboardManagerDelegate_vtbl *)off_10095E828;
a1[40].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10095ECD0;
a1[41].__vftable = (LeaderboardManagerDelegate_vtbl *)&off_10095ED40;
a1[42].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10095ED58;
a1[43].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10095ED78;
a1[44].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10095ED98;
a1[51].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10095EDC0;
a1[52].__vftable = (LeaderboardManagerDelegate_vtbl *)&off_10095EDF0;
if ( GameLevelManager::sharedState()->m_leaderboardManagerDelegate == &a1[51] )
{
GameLevelManager::sharedState()->m_leaderboardManagerDelegate = nullptr;
v2 = (cocos2d::CCObject *)a1[62].__vftable;
if ( !v2 )
goto LABEL_6;
goto LABEL_5;
}
v2 = (cocos2d::CCObject *)a1[62].__vftable;
if ( v2 )
LABEL_5:
cocos2d::CCObject::release(v2);
LABEL_6:
v3 = (cocos2d::CCObject *)a1[63].__vftable;
if ( v3 )
cocos2d::CCObject::release(v3);
return cocos2d::CCLayer::dCCLayer(a1);
}