//
// LeaderboardsLayer::loadLeaderboardFinished from 0x1402c3870 to 0x1402c3928 (184 bytes)
//
// 2 xrefs:
// > ??> @ 0x140582c18
// > ??> @ 0x1406d2a74
//
// 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 LeaderboardsLayer::loadLeaderboardFinished(LeaderboardsLayer *a1, cocos2d::CCArray *a2, const char *a3)
{
size_t v6; // r8
cocos2d::CCObject *v7; // rcx
__int128 v8; // [rsp+20h] [rbp-28h] BYREF
__int64 v9; // [rsp+30h] [rbp-18h]
__int64 v10; // [rsp+38h] [rbp-10h]
v9 = 0;
v10 = 0;
v6 = -1;
v8 = 0;
do
++v6;
while ( a3[v6] );
sub_14003A930(&v8, a3, v6);
if ( (unsigned __int8)LeaderboardsLayer::isCorrect(&a1[-1].m_obAnchorPoint.y, &v8) )
{
v7 = *(cocos2d::CCObject **)&a1->m_uAutoReleaseCount;
if ( v7 )
cocos2d::CCObject::release(v7);
*(_QWORD *)&a1->m_uAutoReleaseCount = a2;
cocos2d::CCObject::retain(a2);
LeaderboardsLayer::setupLevelBrowser(
(LeaderboardsLayer *)((char *)a1 - 408),
*(cocos2d::CCArray **)&a1->m_uAutoReleaseCount);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fVertexZ + 320LL))(*(_QWORD *)&a1->m_fVertexZ, 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_obPosition.y + 320LL))(
*(_QWORD *)&a1->m_obPosition.y,
0);
}
}