//
// GJGameLevel::getUnpackedLevelDescription from 0x1000af7e4 to 0x1000af874 (144 bytes)
//
// 4 xrefs:
// > EditLevelLayer::init @ 0x1000e96b4
// > ShareLevelLayer::init @ 0x10027535c
// > InfoLayer::init @ 0x10035015c
// > InfoLayer::onLevelInfo @ 0x100352504
//
// 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
//
void __usercall GJGameLevel::getUnpackedLevelDescription(__int64 a1@, _QWORD *a2@)
{
unsigned __int64 v3; // x2
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v5; // [xsp+10h] [xbp-20h]
if ( (*(char *)(a1 + 391) & 0x80000000) == 0 )
{
if ( *(_BYTE *)(a1 + 391) )
{
*(_OWORD *)__p = *(_OWORD *)(a1 + 368);
v5 = *(_QWORD *)(a1 + 384);
goto LABEL_6;
}
LABEL_9:
sub_100009900(a2, "");
return;
}
v3 = *(_QWORD *)(a1 + 376);
if ( !v3 )
goto LABEL_9;
sub_1000097D0(__p, *(void **)(a1 + 368), v3);
LABEL_6:
LevelTools::base64DecodeString(a2, __p);
if ( SHIBYTE(v5) < 0 )
operator delete(__p[0]);
}