//
// GJMoreGamesLayer::customSetup from 0x140280620 to 0x14028073b (283 bytes)
//
// 4 xrefs:
// > ??> @ 0x14056c618
// > ??> @ 0x140687ca4
// > ??> @ 0x140687cb4
// > ??> @ 0x1406d13dc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJMoreGamesLayer::customSetup(GJMoreGamesLayer *a1)
{
cocos2d::CCArray *MoreGamesList; // rax
CustomListView *v3; // rax
__int64 v4; // rcx
cocos2d::CCDirector *v5; // rax
struct cocos2d::CCLabelBMFont *v6; // rdi
float v7; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v8; // rbx
const cocos2d::CCPoint *v9; // rax
int v10; // [rsp+20h] [rbp-28h]
float v11; // [rsp+50h] [rbp+8h]
MoreGamesList = GJMoreGamesLayer::getMoreGamesList(a1);
a1->m_moreGamesList = MoreGamesList;
cocos2d::CCObject::retain(MoreGamesList);
v3 = CustomListView::create(a1->m_moreGamesList, nullptr, 220.0, 356.0, v10, List|0x1, 0.0);
a1->m_listLayer->addChild_0(a1->m_listLayer, v3, 6);
if ( !cocos2d::CCArray::count(a1->m_moreGamesList) )
{
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize(v5);
v6 = cocos2d::CCLabelBMFont::create("Nothing here yet... sorry :(", (const char *)&qword_14052A4D8);
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v6->setScale_0)(v6);
v7 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v6,
10);
v8 = v6->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v7, v11 * 0.5);
v8->setPosition_0(v6, v9);
}
}