//
// LevelLeaderboard::onChangeType from 0x615f0c to 0x615f4e (66 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:55 +0000
//
int __fastcall LevelLeaderboard::onChangeType(LevelLeaderboard *this, cocos2d::CCObject *a2)
{
int result; // r0
GameManager *v5; // r4
GameManager *v6; // r0
int v7; // r3
result = GJAccountManager::sharedState(this);
if ( *(_DWORD *)(result + 280) - *(_DWORD *)(result + 284) > 0 )
{
v5 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v6 = (GameManager *)GameManager::sharedState(v5);
GameManager::setIntGameVariable(v6, "0098", (const char *)v5, v7);
return LevelLeaderboard::reloadLeaderboard((GJGameLevel **)this, (int)v5, *((_DWORD *)this + 134));
}
return result;
}