//
// LevelLeaderboard::loadLeaderboardFinished from 0xa8282c to 0xa828d0 (164 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelLeaderboard::loadLeaderboardFinished @ 0xa828d4
// > ??> @ 0xa3b40
// > ??> @ 0x14977c0
//
// 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:32 +0000
//
__int64 __fastcall LevelLeaderboard::loadLeaderboardFinished(cocos2d::CCArray **this, cocos2d::CCArray *a2, char *a3)
{
__int64 result; // x0
cocos2d::CCObject *v6; // x0
result = LevelLeaderboard::isCorrect((LevelLeaderboard *)this, a3);
if ( (_BYTE)result )
{
v6 = *(this + 87);
if ( v6 )
cocos2d::CCObject::release(v6);
*(this + 87) = a2;
cocos2d::CCObject::retain(a2);
LevelLeaderboard::setupLeaderboard((LevelLeaderboard *)this, *(this + 87));
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 89) + 344LL))(*(this + 89), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 90) + 344LL))(*(this + 90), 0);
return (*(__int64 (__fastcall **)(_QWORD, bool))(*(_QWORD *)*(this + 91) + 344LL))(
*(this + 91),
*((_DWORD *)this + 172) != 3);
}
return result;
}