//
// GJGameLevel::getUnpackedLevelDescription from 0x70bea8 to 0x70bfc0 (280 bytes)
//
// 5 xrefs:
// > EditLevelLayer::init @ 0x6e0a60
// > ShareLevelLayer::init @ 0x6e45d8
// > InfoLayer::onLevelInfo @ 0x7e177c
// > InfoLayer::init @ 0x7e55e0
// > ??> @ 0x8c250
//
// 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
//
__int64 *__usercall GJGameLevel::getUnpackedLevelDescription@(
__int64 *__return_ptr a1@,
GJGameLevel *this@)
{
void *v3; // x0
unsigned int *v5; // x2
int v6; // w1
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
if ( *((_QWORD *)this->m_levelDesc.m_data.m_data - 3) )
{
sub_D18D28(&v7, &this->m_levelDesc);
LevelTools::base64DecodeString((cocos2d::ZipUtils *)&v7, a1);
v3 = (void *)(v7 - 24);
if ( (__int64 *)(v7 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v5 = (unsigned int *)(v7 - 8);
do
v6 = __ldaxr(v5);
while ( __stlxr(v6 - 1, v5) );
}
else
{
v6 = *(_DWORD *)(v7 - 8);
*(_DWORD *)(v7 - 8) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v3);
}
}
else
{
sub_D153B8((int)a1, &byte_F288A0);
}
return a1;
}