//
// LevelLeaderboard::onChangeType from 0x1403026f0 to 0x140302789 (153 bytes)
//
// 2 xrefs:
// > LevelLeaderboard::init @ 0x1403018a9
// > ??> @ 0x1406d43c4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void LevelLeaderboard::onChangeType(LevelLeaderboard *a1, cocos2d::CCObject *a2)
{
GJAccountManager *v4; // rax
LevelLeaderboardType v5; // ebx
GameManager *v6; // rcx
void *v7; // [rsp+40h] [rbp+18h]
v4 = GJAccountManager::sharedState();
if ( v4->m_accountID - v4->m_unkInt1 > 0 )
{
v5 = a2->getTag(a2);
v6 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v6 = (GameManager *)qword_1406C2ED8;
}
GameManager::setIntGameVariable(v6, "0098", v5);
LevelLeaderboard::reloadLeaderboard(a1, v5, a1->m_mode);
}
}