//
// LevelInfoLayer::onLevelLeaderboard from 0x7e5204 to 0x7e5268 (100 bytes)
//
// 3 xrefs:
// > ??> @ 0xe4aa8
// > LevelInfoLayer::init @ 0x7ec788
// > ??> @ 0x1546df0
//
// 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:54:28 +0000
//
__int64 __fastcall LevelInfoLayer::onLevelLeaderboard(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x20
GameManager *v3; // x0
GameManager *IntGameVariable; // x0
unsigned int v5; // w19
GameManager *v6; // x0
unsigned int v7; // w0
__int64 v8; // x0
if ( !*(_BYTE *)(this + 488) )
{
v2 = *(_QWORD *)(this + 504);
v3 = (GameManager *)GameManager::sharedState((GameManager *)this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v3, "0098");
v5 = (unsigned int)IntGameVariable;
v6 = (GameManager *)GameManager::sharedState(IntGameVariable);
v7 = GameManager::getIntGameVariable(v6, "0164");
v8 = LevelLeaderboard::create(v2, v5, v7);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
}
return this;
}