//
// GJLevelList::getUnpackedDescription from 0x10058eb90 to 0x10058ec0b (123 bytes)
//
// 3 xrefs:
// > LevelListLayer::onDescription @ 0x1003494da
// > ShareListLayer::init @ 0x10034dcc4
// > InfoLayer::init @ 0x100891f3b
//
// 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:32:25 +0000
//
std::string *__fastcall GJLevelList::getUnpackedDescription(std::string *a1, __int64 a2)
{
char v2; // al
unsigned __int64 v3; // rdx
std::string v5; // [rsp+0h] [rbp-20h] BYREF
v2 = *(_BYTE *)(a2 + 504);
if ( (v2 & 1) == 0 )
{
if ( v2 )
{
v5 = *(std::string *)(a2 + 504);
goto LABEL_6;
}
LABEL_8:
*(_WORD *)&a1->__r_.__value_.__l.0 = 0;
return a1;
}
v3 = *(_QWORD *)(a2 + 512);
if ( !v3 )
goto LABEL_8;
sub_10001AD30(&v5, *(const void **)(a2 + 520), v3);
LABEL_6:
LevelTools::base64DecodeString(a1, &v5);
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v5.__r_.__value_.__l.__data_);
return a1;
}