//
// TopArtistsLayer::setupLeaderboard from 0xaac804 to 0xaac974 (368 bytes)
//
// 4 xrefs:
// > TopArtistsLayer::loadListFinished @ 0xaac9d0
// > TopArtistsLayer::init @ 0xaad0e0
// > TopArtistsLayer::loadPage @ 0xaad588
// > ??> @ 0x5c338
//
// This function is hookable on this platform (idp: arm, 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 13:00:54 +0000
//
__int64 __fastcall TopArtistsLayer::setupLeaderboard(TopArtistsLayer *this, cocos2d::CCArray *a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
cocos2d::CCDirector *v7; // x0
__int64 v8; // x0
cocos2d::CCLayerColor *v9; // x0
__int64 v10; // x19
void (__fastcall *v11)(__int64, _BYTE *); // x21
__int64 v13; // [xsp+58h] [xbp+58h] BYREF
_BYTE v14[8]; // [xsp+60h] [xbp+60h] BYREF
v4 = *((cocos2d::CCDirector **)this + 85);
if ( v4 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *((cocos2d::CCObject **)this + 85));
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 85) + 536LL))(*((_QWORD *)this + 85));
*((_QWORD *)this + 85) = 0;
}
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize(&v13, v7);
if ( a2 )
v8 = CustomListView::create(a2, 0, 0, 19, 220.0, 340.0, 0.0);
else
v8 = 0;
v9 = GJCommentListLayer::create(v8, (__int64)&byte_11B8890, -12684609, 1u, 340.0, 220.0);
*((_QWORD *)this + 85) = v9;
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayerColor *))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
v9);
v10 = *((_QWORD *)this + 85);
v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v14,
(float)(*(float *)&v13 - 340.0) * 0.5,
(float)((float)(*((float *)&v13 + 1) - 220.0) * 0.5) + -10.0);
v11(v10, v14);
return _stack_chk_guard;
}