//
// LevelInfoLayer::onLevelLeaderboard from 0x1002ae570 to 0x1002ae5d4 (100 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x1002aae3b
//
// 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:28:00 +0000
//
void __fastcall LevelInfoLayer::onLevelLeaderboard(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rbx
__int64 v4; // rax
__int64 v5; // rdi
unsigned int v6; // eax
unsigned int v7; // r14d
__int64 v8; // rdx
__int64 v9; // rax
double v10; // xmm0_8
unsigned int v11; // eax
__int64 v12; // rax
if ( !*(_BYTE *)(a1 + 488) )
{
v3 = *(_QWORD *)(a1 + 504);
GameManager::sharedState(a1, a2, a3);
v5 = v4;
GameManager::getIntGameVariable(v4, "0098");
v7 = v6;
GameManager::sharedState(v5, "0098", v8);
*(_QWORD *)&v10 = GameManager::getIntGameVariable(v9, "0164").u64[0];
v12 = LevelLeaderboard::create(v3, v7, v11, v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12);
}
}