//
// EndLevelLayer::onLevelLeaderboard from 0x534034 to 0x534078 (68 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:52:06 +0000
//
int __fastcall EndLevelLayer::onLevelLeaderboard(int this, cocos2d::CCObject *a2)
{
int v2; // r3
int v3; // r5
GameManager *v4; // r0
GameManager *IntGameVariable; // r4
GameManager *v6; // r0
int v7; // r0
int v8; // r0
if ( !*(_BYTE *)(this + 487) )
{
v2 = *(_DWORD *)(this + 480);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 1408);
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v4, "0098");
v6 = (GameManager *)GameManager::sharedState(IntGameVariable);
v7 = GameManager::getIntGameVariable(v6, "0164");
v8 = LevelLeaderboard::create(v3, IntGameVariable, v7);
return (*(int (__fastcall **)(int))(*(_DWORD *)v8 + 656))(v8);
}
}
return this;
}