//
// GJGameLevel::getUnpackedLevelDescription from 0x809854 to 0x809954 (256 bytes)
//
// 5 xrefs:
// > EditLevelLayer::init @ 0x7f09e0
// > ShareLevelLayer::init @ 0x7f40c4
// > InfoLayer::onLevelInfo @ 0x90a5a8
// > InfoLayer::init @ 0x90ccdc
// > ??> @ 0xb9b00
//
// 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 12:54:47 +0000
//
__int64 *__usercall GJGameLevel::getUnpackedLevelDescription@(GJGameLevel *this@, __int64 *a2@)
{
char *v2; // x1
int v4; // w0
size_t v5; // x2
void *v6; // x1
__int64 v7; // x2
__int64 v8; // x3
__int64 v10; // [xsp+30h] [xbp+30h] BYREF
__int64 v11; // [xsp+38h] [xbp+38h]
void *v12; // [xsp+40h] [xbp+40h]
v2 = (char *)this + 368;
v4 = *((unsigned __int8 *)this + 368);
if ( (v4 & 1) != 0 )
{
v5 = *((_QWORD *)v2 + 1);
if ( v5 )
{
v6 = *((void **)v2 + 2);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, v6, v5);
goto LABEL_6;
}
LABEL_9:
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
std::string::__init(a2, &byte_11B8890, 0);
return a2;
}
if ( !(v4 >> 1) )
goto LABEL_9;
v7 = *(_QWORD *)v2;
v8 = *((_QWORD *)v2 + 1);
v12 = *((void **)v2 + 2);
v10 = v7;
v11 = v8;
LABEL_6:
LevelTools::base64DecodeString((__int64)&v10, a2);
if ( (v10 & 1) != 0 )
operator delete(v12);
return a2;
}