//
// GJLevelList::showListInfo from 0x81da4c to 0x81de78 (1068 bytes)
//
// 4 xrefs:
// > LevelListCell::onListInfo @ 0x735f78
// > InfoLayer::onLevelInfo @ 0x90a450
// > LevelListLayer::onListInfo @ 0xba8abc
// > ??> @ 0x50698
//
// 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:54:59 +0000
//
__int64 __fastcall GJLevelList::showListInfo(GJLevelList *this)
{
size_t v2; // x2
char *v3; // x1
size_t v4; // x2
size_t v5; // x2
char *v6; // x1
size_t v7; // x2
char *v8; // x1
int v9; // w0
char *v10; // x1
size_t v11; // x2
const char *v12; // x1
size_t v13; // x0
__int64 v14; // x19
char *v16; // x1
char *v17; // [xsp+48h] [xbp+48h]
__int64 v18[2]; // [xsp+50h] [xbp+50h] BYREF
void *v19; // [xsp+60h] [xbp+60h]
__int64 v20; // [xsp+68h] [xbp+68h] BYREF
size_t v21; // [xsp+70h] [xbp+70h]
void *v22; // [xsp+78h] [xbp+78h]
__int64 v23; // [xsp+80h] [xbp+80h] BYREF
size_t v24; // [xsp+88h] [xbp+88h]
void *v25; // [xsp+90h] [xbp+90h]
unsigned __int64 v26[2]; // [xsp+98h] [xbp+98h] BYREF
void *v27; // [xsp+A8h] [xbp+A8h]
__int64 v28[2]; // [xsp+B0h] [xbp+B0h] BYREF
void *v29; // [xsp+C0h] [xbp+C0h]
__int64 v30[2]; // [xsp+C8h] [xbp+C8h] BYREF
void *v31; // [xsp+D8h] [xbp+D8h]
__int64 v32[2]; // [xsp+E0h] [xbp+E0h] BYREF
void *v33; // [xsp+F0h] [xbp+F0h]
v18[0] = 0;
v18[1] = 0;
v19 = nullptr;
std::string::__init(v18, &byte_11B8890, 0);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "(No description provided)", 0x19u);
GJLevelList::getUnpackedDescription(this, &v23);
if ( (v23 & 1) != 0 )
{
v2 = v24;
if ( !v24 )
goto LABEL_3;
v16 = (char *)v25;
}
else
{
LODWORD(v2) = (int)(unsigned __int8)v23 >> 1;
if ( !(_DWORD)v2 )
goto LABEL_3;
v2 = (int)v2;
v16 = (char *)&v23 + 1;
}
std::string::assign(&v20, v16, v2);
LABEL_3:
if ( (v20 & 1) != 0 )
{
v3 = (char *)v22;
v4 = v21;
}
else
{
v4 = (unsigned __int8)v20 >> 1;
v3 = (char *)&v20 + 1;
}
std::string::append((__int64)v18, v3, v4);
if ( *((_DWORD *)this + 136) != 2 && (*((int *)this + 86) > 0 || *((int *)this + 132) > 0) )
{
std::string::append((__int64)v18, "\n\n", 2u);
if ( *((int *)this + 86) > 0 )
{
std::string::append((__int64)v18, "List ID: ", 0xDu);
GameToolbox::intToString(v26, (GameToolbox *)*((unsigned int *)this + 86));
if ( (v26[0] & 1) != 0 )
{
v6 = (char *)v27;
v5 = v26[1];
}
else
{
v5 = LOBYTE(v26[0]) >> 1;
v6 = (char *)v26 + 1;
}
std::string::append((__int64)v18, v6, v5);
if ( (v26[0] & 1) != 0 )
operator delete(v27);
std::string::append((__int64)v18, "\n", 5u);
}
if ( *((int *)this + 132) > 0 )
{
std::string::append((__int64)v18, "Uploaded: ", 0xEu);
GameToolbox::timestampToHumanReadable((GameToolbox *)*((int *)this + 132), v28);
if ( (v28[0] & 1) != 0 )
{
v8 = (char *)v29;
v7 = v28[1];
}
else
{
v7 = LOBYTE(v28[0]) >> 1;
v8 = (char *)v28 + 1;
}
std::string::append((__int64)v18, v8, v7);
if ( (v28[0] & 1) != 0 )
operator delete(v29);
std::string::append((__int64)v18, "", 4u);
v9 = *((_DWORD *)this + 133);
if ( v9 > 0 && v9 != *((_DWORD *)this + 132) )
{
std::string::append((__int64)v18, "\nUpdated: ", 0xEu);
GameToolbox::timestampToHumanReadable((GameToolbox *)*((int *)this + 133), v30);
if ( (v30[0] & 1) != 0 )
{
v10 = (char *)v31;
v11 = v30[1];
}
else
{
v11 = LOBYTE(v30[0]) >> 1;
v10 = (char *)v30 + 1;
}
std::string::append((__int64)v18, v10, v11);
if ( (v30[0] & 1) != 0 )
operator delete(v31);
std::string::append((__int64)v18, "", 4u);
}
}
}
v12 = (char *)v18 + 1;
if ( (v18[0] & 1) != 0 )
v12 = (const char *)v19;
v17 = (char *)v12;
v32[0] = 0;
v32[1] = 0;
v33 = nullptr;
v13 = strlen(v12);
std::string::__init(v32, v17, v13);
v14 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"List Info",
(char *)v32,
(ButtonSprite *)"OK",
nullptr,
380.0);
if ( (v32[0] & 1) != 0 )
operator delete(v33);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 1312LL))(v14);
if ( (v23 & 1) != 0 )
{
operator delete(v25);
if ( (v20 & 1) == 0 )
goto LABEL_31;
}
else if ( (v20 & 1) == 0 )
{
goto LABEL_31;
}
operator delete(v22);
LABEL_31:
if ( (v18[0] & 1) != 0 )
operator delete(v19);
return _stack_chk_guard;
}