//
// LevelLeaderboard::onChangeType from 0x1003c84f0 to 0x1003c854d (93 bytes)
//
// 1 xrefs:
// > LevelLeaderboard::init @ 0x1003c7e60
//
// 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::onChangeType(__int64 a1, __int64 a2)
{
__int64 result; // rax
unsigned int v3; // r14d
__int64 v4; // rax
result = GJAccountManager::sharedState(a1, a2);
if ( *(_DWORD *)(result + 352) > *(_DWORD *)(result + 356) )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = GameManager::sharedState();
GameManager::setIntGameVariable(v4, "0098");
return LevelLeaderboard::reloadLeaderboard(a1, v3, *(unsigned int *)(a1 + 692));
}
return result;
}