//
// GJGameLevel::getUnpackedLevelDescription from 0x140170060 to 0x14017011a (186 bytes)
//
// 5 xrefs:
// > EditLevelLayer::init @ 0x1400d5e2a
// > InfoLayer::init @ 0x1402bb525
// > InfoLayer::onLevelInfo @ 0x1402bddbd
// > ShareLevelLayer::init @ 0x14048f38e
// > ??> @ 0x1406cae6c
//
// 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
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJGameLevel::getUnpackedLevelDescription(__int64 a1, __int64 a2)
{
__int64 v4; // rax
__int64 v5; // rdi
_BYTE v6[48]; // [rsp+28h] [rbp-30h] BYREF
if ( *(_QWORD *)(a1 + 392) )
{
v4 = sub_14003BDB0((__int64)v6, a1 + 376);
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;
}
}