//
// sub_100311200 from 0x100311200 to 0x10031125f (95 bytes)
//
// 1 xrefs:
// > ??> @ 0x100910558
//
// 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
//
__int64 __fastcall sub_100311200(__int64 a1, cocos2d::CCObject *a2)
{
TopArtistsLayer *v3; // r15
cocos2d::CCObject *v4; // rdi
__int64 result; // rax
if ( a2 )
{
v3 = (TopArtistsLayer *)(a1 - 632);
v4 = *(cocos2d::CCObject **)(a1 + 8);
if ( v4 )
cocos2d::CCObject::release(v4);
*(_QWORD *)(a1 + 8) = a2;
cocos2d::CCObject::retain(a2);
TopArtistsLayer::setupLeaderboard(v3, *(cocos2d::CCArray **)(a1 + 8));
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 24) + 328LL))(*(_QWORD *)(a1 + 24), 0);
}
return result;
}