//
// GJGameLevel::getUnpackedLevelDescription from 0x1000d48d0 to 0x1000d4960 (144 bytes)
//
// 4 xrefs:
// > EditLevelLayer::init @ 0x10010f674
// > ShareLevelLayer::init @ 0x100313188
// > InfoLayer::init @ 0x1003ee714
// > InfoLayer::onLevelInfo @ 0x1003f0cb8
//
// This function is hookable on this platform (idp: arm, 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 10:58:55 +0000
//
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]);
}