//
// GJLevelList::getUnpackedDescription from 0x100561ee0 to 0x100561f5b (123 bytes)
//
// 3 xrefs:
// > LevelListLayer::onDescription @ 0x10035de4a
// > ShareListLayer::init @ 0x100362215
// > InfoLayer::init @ 0x1007aec66
//
// 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
//
std::string *__fastcall GJLevelList::getUnpackedDescription(std::string *a1, __int64 a2, __m128 a3)
{
char v3; // al
__m128 *v4; // rsi
unsigned __int64 v5; // rdx
std::string v7; // [rsp+0h] [rbp-20h] BYREF
v3 = *(_BYTE *)(a2 + 496);
if ( (v3 & 1) == 0 )
{
if ( v3 )
{
v4 = (__m128 *)(a2 + 496);
v7.__r_.__value_.__r.__words[2] = v4[1].u64[0];
a3 = *v4;
*(__m128 *)&v7.__r_.__value_.__l.0 = *v4;
goto LABEL_6;
}
LABEL_8:
*(_WORD *)&a1->__r_.__value_.__l.0 = 0;
return a1;
}
v5 = *(_QWORD *)(a2 + 504);
if ( !v5 )
goto LABEL_8;
sub_100006B70(&v7, *(const void **)(a2 + 512), v5, *(double *)a3.i64);
LABEL_6:
LevelTools::base64DecodeString(a1, &v7, *(double *)a3.i64);
if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v7.__r_.__value_.__l.__data_);
return a1;
}