//
// LevelLeaderboard::create from 0x1003c6e30 to 0x1003c703e (526 bytes)
//
// 4 xrefs:
// > EditLevelLayer::onLevelLeaderboard @ 0x1001df88b
// > LevelInfoLayer::onLevelLeaderboard @ 0x1002ae5bf
// > LevelLeaderboard::reloadLeaderboard @ 0x1003c8d86
// > EndLevelLayer::onLevelLeaderboard @ 0x1004bb276
//
// This function is hookable on this platform (idp: pc, 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:29:35 +0000
//
char *__fastcall LevelLeaderboard::create(__int64 a1, unsigned int a2, unsigned int a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x2F0u);
cocos2d::CCLayerColor::CCLayerColor(v4);
*(_QWORD *)v4 = off_100B4FB70;
*((_QWORD *)v4 + 40) = off_100B500C0;
*((_QWORD *)v4 + 41) = &off_100B50130;
*((_QWORD *)v4 + 42) = off_100B50148;
*((_QWORD *)v4 + 43) = off_100B50168;
*((_QWORD *)v4 + 44) = off_100B50190;
*((_QWORD *)v4 + 51) = off_100B501C0;
*((_QWORD *)v4 + 54) = off_100B50240;
*((_QWORD *)v4 + 68) = off_100B50260;
*(_OWORD *)(v4 + 552) = 0;
*(_OWORD *)(v4 + 561) = 0;
*(_OWORD *)(v4 + 584) = 0;
sub_1002782A0((_QWORD *)v4 + 75);
*((_OWORD *)v4 + 38) = 0;
*((_QWORD *)v4 + 78) = 0;
*((_DWORD *)v4 + 158) = -1;
*((_WORD *)v4 + 318) = 0;
*((_DWORD *)v4 + 160) = -1;
v4[644] = 0;
*((_QWORD *)v4 + 81) = 0;
v4[656] = 0;
*(_QWORD *)v4 = off_100B3A9F8;
*((_QWORD *)v4 + 40) = off_100B3AF70;
*((_QWORD *)v4 + 41) = &off_100B3AFE0;
*((_QWORD *)v4 + 42) = off_100B3AFF8;
*((_QWORD *)v4 + 43) = off_100B3B018;
*((_QWORD *)v4 + 44) = off_100B3B040;
*((_QWORD *)v4 + 51) = off_100B3B070;
*((_QWORD *)v4 + 54) = off_100B3B0F0;
*((_QWORD *)v4 + 68) = off_100B3B110;
*((_QWORD *)v4 + 83) = off_100B3B158;
*((_QWORD *)v4 + 84) = &off_100B3B188;
*((_QWORD *)v4 + 85) = 0;
*((_DWORD *)v4 + 172) = 0;
*(_OWORD *)(v4 + 712) = 0;
*(_OWORD *)(v4 + 696) = 0;
*((_OWORD *)v4 + 46) = 0;
if ( (unsigned __int8)LevelLeaderboard::init(v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}