//
// LeaderboardsLayer::create from 0x1003b04ac to 0x1003b056c (192 bytes)
//
// 1 xrefs:
// > LeaderboardsLayer::scene @ 0x1003b0480
//
// 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 *__fastcall LeaderboardsLayer::create(LeaderboardType a1, LeaderboardStat a2)
{
char *v4; // x19
v4 = (char *)operator new(0x200u);
cocos2d::CCLayer::CCLayer((__int64)v4);
*(_QWORD *)v4 = off_10080E0D0;
*((_QWORD *)v4 + 40) = off_10080E578;
*((_QWORD *)v4 + 41) = &off_10080E5E8;
*((_QWORD *)v4 + 42) = off_10080E600;
*((_QWORD *)v4 + 43) = &off_10080E620;
*((_QWORD *)v4 + 44) = off_10080E640;
*((_QWORD *)v4 + 51) = off_10080E668;
*((_QWORD *)v4 + 52) = &off_10080E698;
*((_QWORD *)v4 + 63) = 0;
*((_QWORD *)v4 + 61) = 0;
*(_OWORD *)(v4 + 424) = 0u;
*(_OWORD *)(v4 + 440) = 0u;
*(_OWORD *)(v4 + 456) = 0u;
*(_OWORD *)(v4 + 472) = 0u;
if ( LeaderboardsLayer::init((LeaderboardsLayer *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (LeaderboardsLayer *)v4;
}