//
// EndLevelLayer::onLevelLeaderboard from 0x1004bb220 to 0x1004bb290 (112 bytes)
//
// 1 xrefs:
// > EndLevelLayer::customSetup @ 0x1004ba15b
//
// 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:31:03 +0000
//
void __fastcall EndLevelLayer::onLevelLeaderboard(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rbx
__int64 v3; // rax
unsigned int IntGameVariable; // r14d
__int64 v5; // rax
unsigned int v6; // eax
char *v7; // rax
if ( !*(_BYTE *)(a1 + 619) )
{
v1 = *(_QWORD *)(a1 + 608);
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 1936);
v3 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v3, "0098");
v5 = GameManager::sharedState();
v6 = GameManager::getIntGameVariable(v5, "0164");
v7 = LevelLeaderboard::create(v2, IntGameVariable, v6);
(*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 1312LL))(v7);
}
}
}