//
// LeaderboardsLayer::loadLeaderboardFinished from 0x564454 to 0x5644f0 (156 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LeaderboardsLayer::loadLeaderboardFinished @ 0x5644f8
//
// 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:52:27 +0000
//
int __fastcall LeaderboardsLayer::loadLeaderboardFinished(
LeaderboardsLayer *this,
cocos2d::CCArray *a2,
const char *a3,
int a4)
{
size_t v7; // r0
char *v8; // r2
int v9; // r3
_BOOL4 isCorrect; // r8
int result; // r0
cocos2d::CCObject *v12; // r0
int v13[4]; // [sp+0h] [bp-10h] BYREF
v13[3] = a4;
memset(v13, 0, 12);
v7 = strlen(a3);
std::string::__init(v13, a3, v7);
isCorrect = LeaderboardsLayer::isCorrect((int)this, (unsigned __int8 *)v13, v8, v9);
result = std::string::~string((int)v13);
if ( isCorrect )
{
v12 = *((cocos2d::CCObject **)this + 82);
if ( v12 )
cocos2d::CCObject::release(v12);
*((_DWORD *)this + 82) = a2;
cocos2d::CCObject::retain(a2);
LeaderboardsLayer::setupLevelBrowser((cocos2d::CCArray **)this, *((cocos2d::CCArray **)this + 82));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 89) + 172))(*((_DWORD *)this + 89), 0);
return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 90) + 172))(*((_DWORD *)this + 90), 0);
}
return result;
}