//
// GJEditorSoundConfig::getUnpackedSoundDesc from 0xcda900 to 0xcdaa00 (256 bytes)
//
// 5 xrefs:
// > InfoLayer::init @ 0x90c250
// > EditorSoundConfigInfoLayer::onDescription @ 0xcd06b4
// > EditorSoundConfigUploadPopup::init @ 0xcd4cb4
// > GJEditorSoundConfig::showSoundInfo @ 0xcdb3c0
// > ??> @ 0xeec00
//
// 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 13:06:32 +0000
//
__int64 *__usercall GJEditorSoundConfig::getUnpackedSoundDesc@(
__int64 *__return_ptr a1@,
GJEditorSoundConfig *this@)
{
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 + 400;
v4 = *((unsigned __int8 *)this + 400);
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:
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::string::__init(a1, &byte_11B8890, 0);
return a1;
}
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, a1);
if ( (v10 & 1) != 0 )
operator delete(v12);
return a1;
}