//
// LevelInfoLayer::onLevelLeaderboard from 0x499cc0 to 0x499cfe (62 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:44 +0000
//
int __fastcall LevelInfoLayer::onLevelLeaderboard(int this, cocos2d::CCObject *a2)
{
int v2; // r5
GameManager *v3; // r0
GameManager *IntGameVariable; // r4
GameManager *v5; // r0
int v6; // r0
int v7; // r0
if ( !*(_BYTE *)(this + 356) )
{
v2 = *(_DWORD *)(this + 364);
v3 = (GameManager *)GameManager::sharedState((GameManager *)this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v3, "0098");
v5 = (GameManager *)GameManager::sharedState(IntGameVariable);
v6 = GameManager::getIntGameVariable(v5, "0164");
v7 = LevelLeaderboard::create(v2, IntGameVariable, v6);
return (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 656))(v7);
}
return this;
}