//
// LevelLeaderboard::onChangeMode from 0xa83d48 to 0xa83d98 (80 bytes)
//
// 4 xrefs:
// > ??> @ 0xdab18
// > LevelLeaderboard::init @ 0xa82eb8
// > LevelLeaderboard::init @ 0xa82f58
// > ??> @ 0x15468b0
//
// This function is hookable on this platform (idp: arm, 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 13:00:33 +0000
//
__int64 __fastcall LevelLeaderboard::onChangeMode(LevelLeaderboard *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
unsigned int v4; // w19
GameManager *v5; // x0
v3 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = (unsigned int)v3;
v5 = (GameManager *)GameManager::sharedState(v3);
GameManager::setIntGameVariable(v5, "0164", v4);
return LevelLeaderboard::reloadLeaderboard((GJGameLevel **)this, *((_DWORD *)this + 172), v4);
}