//
// LeaderboardsLayer::create from 0x81f744 to 0x81f850 (268 bytes)
//
// 2 xrefs:
// > LeaderboardsLayer::scene @ 0x81f87c
// > ??> @ 0xc8340
//
// 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)
{
__int64 v4; // x19
v4 = operator new(0x200u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v4);
*(_QWORD *)(v4 + 424) = 0;
*(_QWORD *)v4 = &off_11866A0;
*(_QWORD *)(v4 + 320) = off_1186B48;
*(_QWORD *)(v4 + 328) = &off_1186BB8;
*(_QWORD *)(v4 + 336) = &off_1186BD0;
*(_QWORD *)(v4 + 344) = &off_1186BF0;
*(_QWORD *)(v4 + 352) = off_1186C10;
*(_QWORD *)(v4 + 408) = off_1186C38;
*(_QWORD *)(v4 + 416) = &off_1186C68;
*(_QWORD *)(v4 + 432) = 0;
*(_DWORD *)(v4 + 440) = 0;
*(_DWORD *)(v4 + 444) = 0;
*(_QWORD *)(v4 + 448) = 0;
*(_QWORD *)(v4 + 456) = 0;
*(_QWORD *)(v4 + 464) = 0;
*(_QWORD *)(v4 + 472) = 0;
*(_QWORD *)(v4 + 480) = 0;
*(_QWORD *)(v4 + 488) = 0;
*(_QWORD *)(v4 + 504) = 0;
if ( LeaderboardsLayer::init((LeaderboardsLayer *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (LeaderboardsLayer *)v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}