//
// LevelLeaderboard::loadLeaderboardFinished from 0x614f00 to 0x614f64 (100 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelLeaderboard::loadLeaderboardFinished @ 0x614f68
//
// 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:54 +0000
//
int __fastcall LevelLeaderboard::loadLeaderboardFinished(cocos2d::CCArray **this, cocos2d::CCArray *a2, const char *a3)
{
int result; // r0
cocos2d::CCObject *v6; // r0
result = LevelLeaderboard::isCorrect((LevelLeaderboard *)this, a3);
if ( result )
{
v6 = *(this + 135);
if ( v6 )
cocos2d::CCObject::release(v6);
*(this + 135) = a2;
cocos2d::CCObject::retain(a2);
LevelLeaderboard::setupLeaderboard((LevelLeaderboard *)this, *(this + 135));
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 137) + 172))(*(this + 137), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 138) + 172))(*(this + 138), 0);
return (*(int (__fastcall **)(_DWORD, bool))(*(_DWORD *)*(this + 139) + 172))(
*(this + 139),
*(this + 133) != (cocos2d::CCArray *)((char *)&dword_0 + 3));
}
return result;
}