//
// LevelLeaderboard::onChangeMode from 0x1003c82c0 to 0x1003c8302 (66 bytes)
//
// 2 xrefs:
// > LevelLeaderboard::init @ 0x1003c754e
// > LevelLeaderboard::init @ 0x1003c7617
//
// 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:29:35 +0000
//
__int64 __fastcall LevelLeaderboard::onChangeMode(__int64 a1, __int64 a2)
{
unsigned int v2; // r14d
__int64 v3; // rax
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v3 = GameManager::sharedState();
GameManager::setIntGameVariable(v3, "0164");
return LevelLeaderboard::reloadLeaderboard(a1, *(unsigned int *)(a1 + 688), v2);
}