//
// LeaderboardsLayer::setupLevelBrowser from 0x563074 to 0x563186 (274 bytes)
//
// 3 xrefs:
// > LeaderboardsLayer::selectLeaderboard @ 0x563446
// > LeaderboardsLayer::selectLeaderboard @ 0x56346a
// > LeaderboardsLayer::loadLeaderboardFinished @ 0x5644b2
//
// 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:26 +0000
//
unsigned int __fastcall LeaderboardsLayer::setupLevelBrowser(cocos2d::CCArray **this, cocos2d::CCArray *a2)
{
cocos2d::CCArray **v2; // r4
int v4; // r0
cocos2d::CCTouchDispatcher *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCLayerColor *v7; // r0
cocos2d::CCArray *v8; // r3
cocos2d::CCArray *v9; // r7
void (__fastcall *v10)(cocos2d::CCArray *, _BYTE *); // r8
float v12[2]; // [sp+14h] [bp-14h] BYREF
_BYTE v13[8]; // [sp+1Ch] [bp-Ch] BYREF
v2 = this;
if ( *(this + 81) )
{
v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, v2[81]);
this = (cocos2d::CCArray **)(*(int (__fastcall **)(cocos2d::CCArray *))(*(_DWORD *)v2[81] + 268))(v2[81]);
v2[81] = nullptr;
}
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v12);
if ( a2 )
v6 = CustomListView::create(a2, 0, 1130102784, 1135738880, 0, 12, 0);
else
v6 = nullptr;
v7 = GJListLayer::create(v6, nullptr, -12684609, 356.0, 220.0, 0);
v8 = *v2;
v2[81] = v7;
(*((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCLayerColor *))v8 + 57))(v2, v7);
v9 = v2[81];
v10 = *(void (__fastcall **)(cocos2d::CCArray *, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v13,
(float)(v12[0] - 356.0) * 0.5,
(float)((float)((float)(v12[1] - 220.0) * 0.5) - 10.0) + 5.0);
v10(v9, v13);
return LeaderboardsLayer::refreshTabs(v2);
}