//
// GJMoreGamesLayer::customSetup from 0x100875ef0 to 0x100875ff3 (259 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ba1138
//
// This function is hookable on this platform (idp: pc, 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:36:53 +0000
//
__int64 __fastcall GJMoreGamesLayer::customSetup(__int64 a1)
{
void *MoreGamesList; // rax
char *v2; // rax
__int64 result; // rax
__int64 v4; // rax
void *v5; // r14
float v6; // [rsp+0h] [rbp-20h] BYREF
__int64 v7; // [rsp+8h] [rbp-18h] BYREF
MoreGamesList = GJMoreGamesLayer::getMoreGamesList();
*(_QWORD *)(a1 + 608) = MoreGamesList;
cocos2d::CCObject::retain((__int64)MoreGamesList);
v2 = CustomListView::create(*(_QWORD *)(a1 + 608), 0, 0, 0xAu, 220.0, 356.0, 0.0);
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 568) + 464LL))(*(_QWORD *)(a1 + 568), v2, 6);
result = sub_1007FEF90(*(_QWORD *)(a1 + 608));
if ( !(_DWORD)result )
{
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v7, v4);
v5 = cocos2d::CCLabelBMFont::create_3((__int64)"Nothing here yet... sorry :(", (__int64)"bigFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v5 + 160LL))(v5, 0.60000002);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 576) + 464LL))(*(_QWORD *)(a1 + 576), v5, 10);
sub_100278250(&v6, *(float *)&v7 * 0.5, 0.5 * *((float *)&v7 + 1));
return (*(__int64 (__fastcall **)(void *, float *))(*(_QWORD *)v5 + 184LL))(v5, &v6);
}
return result;
}