//
// GJLevelList::getUnpackedDescription from 0x7192bc to 0x7193d4 (280 bytes)
//
// 5 xrefs:
// > GJLevelList::showListInfo @ 0x7194f8
// > InfoLayer::init @ 0x7e4b74
// > LevelListLayer::onDescription @ 0xa72ed0
// > ShareListLayer::init @ 0xa7985c
// > ??> @ 0xa8078
//
// 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
//
_QWORD *__usercall GJLevelList::getUnpackedDescription@(GJLevelList *this@, _QWORD *a2@)
{
void *v3; // x0
unsigned int *v5; // x2
int v6; // w1
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
if ( *((_QWORD *)this->m_listDesc.m_data.m_data - 3) )
{
sub_D18D28(&v7);
LevelTools::base64DecodeString((cocos2d::ZipUtils *)&v7, a2);
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)a2, &byte_F288A0);
}
return a2;
}