//
// LeaderboardsLayer::create from 0x94fd60 to 0x94fe6c (268 bytes)
//
// 2 xrefs:
// > LeaderboardsLayer::scene @ 0x94fe98
// > ??> @ 0x104590
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:22 +0000
//
__int64 __fastcall LeaderboardsLayer::create(unsigned int a1, unsigned int a2)
{
__int64 v4; // x19
v4 = operator new(0x200u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v4);
*(_QWORD *)(v4 + 424) = 0;
*(_QWORD *)v4 = &off_146A070;
*(_QWORD *)(v4 + 320) = off_146A528;
*(_QWORD *)(v4 + 328) = &off_146A598;
*(_QWORD *)(v4 + 336) = off_146A5B0;
*(_QWORD *)(v4 + 344) = off_146A5D0;
*(_QWORD *)(v4 + 352) = off_146A5F8;
*(_QWORD *)(v4 + 408) = off_146A628;
*(_QWORD *)(v4 + 416) = &off_146A658;
*(_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 ( (unsigned __int8)LeaderboardsLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return 0;
}
}