//
// sub_1002FBD20 from 0x1002fbd20 to 0x1002fbd7f (95 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b18158
//
// This function is hookable on this platform (idp: pc, 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 12:28:30 +0000
//
__int64 __fastcall sub_1002FBD20(__int64 a1, __int64 a2)
{
_QWORD *v3; // r15
__int64 v4; // rdi
__int64 result; // rax
if ( a2 )
{
v3 = (_QWORD *)(a1 - 664);
v4 = *(_QWORD *)(a1 + 8);
if ( v4 )
cocos2d::CCObject::release(v4);
*(_QWORD *)(a1 + 8) = a2;
cocos2d::CCObject::retain(a2);
TopArtistsLayer::setupLeaderboard(v3, *(_QWORD *)(a1 + 8));
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 24) + 344LL))(*(_QWORD *)(a1 + 24), 0);
}
return result;
}