//
// GJLevelList::getUnpackedDescription from 0x140176b90 to 0x140176c4a (186 bytes)
//
// 5 xrefs:
// > GJLevelList::showListInfo @ 0x1401779ae
// > InfoLayer::init @ 0x1402bb50f
// > LevelListLayer::onDescription @ 0x14030788f
// > ShareListLayer::init @ 0x140309fde
// > ??> @ 0x1406caf8c
//
// 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
//
__int64 __fastcall GJLevelList::getUnpackedDescription(__int64 a1, __int64 a2)
{
__int64 v4; // rax
__int64 v5; // rdi
_BYTE v6[48]; // [rsp+28h] [rbp-30h] BYREF
if ( *(_QWORD *)(a1 + 544) )
{
v4 = sub_14003BDB0((__int64)v6, a1 + 528);
v5 = v4;
if ( *(_QWORD *)(v4 + 16) )
{
cocos2d::ZipUtils::base64URLDecode(a2, v4);
}
else
{
*(_OWORD *)a2 = 0;
*(_QWORD *)(a2 + 16) = 0;
*(_QWORD *)(a2 + 24) = 0;
*(_OWORD *)a2 = *(_OWORD *)v4;
*(_OWORD *)(a2 + 16) = *(_OWORD *)(v4 + 16);
*(_QWORD *)(v4 + 16) = 0;
*(_QWORD *)(v4 + 24) = 15;
*(_BYTE *)v4 = 0;
}
sub_14003A830(v5);
return a2;
}
else
{
*(_OWORD *)a2 = 0;
*(_QWORD *)(a2 + 16) = 0;
*(_QWORD *)(a2 + 24) = 15;
*(_BYTE *)a2 = 0;
return a2;
}
}