//
// LevelLeaderboard::loadLeaderboardFinished from 0x140302b90 to 0x140302c26 (150 bytes)
//
// 2 xrefs:
// > ??> @ 0x140588580
// > ??> @ 0x1406d43f4
//
// 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
//
void LevelLeaderboard::loadLeaderboardFinished(LevelLeaderboard *a1, cocos2d::CCArray *a2, const char *a3)
{
cocos2d::CCObject *v5; // rcx
__int64 v6; // rdx
if ( LevelLeaderboard::isCorrect((LevelLeaderboard *)((char *)a1 - 632), a3) )
{
v5 = *(cocos2d::CCObject **)&a1->m_uIndexInArray;
if ( v5 )
cocos2d::CCObject::release(v5);
*(_QWORD *)&a1->m_uIndexInArray = a2;
cocos2d::CCObject::retain(a2);
LevelLeaderboard::setupLeaderboard(
(LevelLeaderboard *)((char *)a1 - 632),
*(cocos2d::CCArray **)&a1->m_uIndexInArray);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uOrderOfArrival + 320LL))(
*(_QWORD *)&a1->m_uOrderOfArrival,
0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fRotationX + 320LL))(*(_QWORD *)&a1->m_fRotationX, 0);
LOBYTE(v6) = a1->m_uAutoReleaseCount != 3;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_fScaleX + 320LL))(*(_QWORD *)&a1->m_fScaleX, v6);
}
}