//
// GJMoreGamesLayer::customSetup from 0x5383ec to 0x5384aa (190 bytes)
//
// 0 xrefs:
//
// 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:09 +0000
//
int __fastcall GJMoreGamesLayer::customSetup(cocos2d::CCObject **this)
{
cocos2d::CCObject *MoreGamesList; // r0
cocos2d::CCLayer *v3; // r0
int result; // r0
const char *v5; // r2
int v6; // r5
int (__fastcall *v7)(int, _BYTE *); // r7
float v8[2]; // [sp+14h] [bp-18h] BYREF
_BYTE v9[8]; // [sp+1Ch] [bp-10h] BYREF
MoreGamesList = GJMoreGamesLayer::getMoreGamesList((GJMoreGamesLayer *)this);
*(this + 120) = MoreGamesList;
cocos2d::CCObject::retain(MoreGamesList);
v3 = CustomListView::create(*(this + 120), 0, 1130102784, 1135738880, 0, 10, 0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLayer *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v3, 6);
result = cocos2d::CCArray::count(*(this + 120));
if ( !result )
{
cocos2d::CCDirector::sharedDirector(nullptr);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v8);
v6 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Nothing here yet... sorry :(", "bigFont.fnt", v5);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 80))(v6, 1058642330);
(*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 116) + 232))(*(this + 116), v6, 10);
v7 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v8[0] * 0.5, v8[1] * 0.5);
return v7(v6, v9);
}
return result;
}