//
// GJGameLevel::getUnpackedLevelDescription from 0x4afaa8 to 0x4afb12 (106 bytes)
//
// 4 xrefs:
// > EditLevelLayer::init @ 0x4a15b2
// > ShareLevelLayer::init @ 0x4a40ac
// > InfoLayer::onLevelInfo @ 0x53e4b0
// > InfoLayer::init @ 0x53f4fe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:01 +0000
//
GJGameLevel *__fastcall GJGameLevel::getUnpackedLevelDescription(GJGameLevel *this, int a2, int a3, int a4)
{
int v5; // r2
int v6; // r2
int v8[4]; // [sp+0h] [bp-10h] BYREF
v8[0] = (int)this;
v8[1] = a2;
v8[2] = a3;
v8[3] = a4;
v5 = *(unsigned __int8 *)(a2 + 292);
if ( (v5 & 1) != 0 )
v6 = *(_DWORD *)(a2 + 296);
else
v6 = v5 >> 1;
if ( v6 )
{
std::string::basic_string(v8, a2 + 292);
LevelTools::base64DecodeString(this, v8);
std::string::~string((int)v8);
}
else
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, &unk_B6B226, 0);
}
return this;
}