//
// GJMoreGamesLayer::customSetup from 0x8ffc00 to 0x8ffd28 (296 bytes)
//
// 2 xrefs:
// > ??> @ 0xf8ff8
// > ??> @ 0x14637a8
//
// 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 12:57:06 +0000
//
__int64 __fastcall GJMoreGamesLayer::customSetup(cocos2d::CCObject **this)
{
cocos2d::CCObject *MoreGamesList; // x0
__int64 v3; // x0
cocos2d::CCDirector *v4; // x0
cocos2d::CCDirector *v5; // x0
const char *v6; // x2
__int64 v7; // x22
void (__fastcall *v8)(__int64, _BYTE *); // x19
__int64 v10; // [xsp+48h] [xbp+48h] BYREF
_BYTE v11[8]; // [xsp+50h] [xbp+50h] BYREF
MoreGamesList = GJMoreGamesLayer::getMoreGamesList((GJMoreGamesLayer *)this);
*(this + 76) = MoreGamesList;
cocos2d::CCObject::retain(MoreGamesList);
v3 = CustomListView::create(*(this + 76), 0, 0, 10, 220.0, 356.0, 0.0);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 71) + 464LL))(*(this + 71), v3, 6);
v4 = (cocos2d::CCDirector *)cocos2d::CCArray::count(*(this + 76));
if ( !(_DWORD)v4 )
{
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize(&v10, v5);
v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Nothing here yet... sorry :(", "bigFont.fnt", v6);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 0.6);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 72) + 464LL))(*(this + 72), v7, 10);
v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, *(float *)&v10 * 0.5, *((float *)&v10 + 1) * 0.5);
v8(v7, v11);
}
return _stack_chk_guard;
}