//
// GJEditorSoundConfig::getUnpackedSoundDesc from 0x78d73c to 0x78d7a6 (106 bytes)
//
// 4 xrefs:
// > InfoLayer::init @ 0x53f448
// > EditorSoundConfigInfoLayer::onDescription @ 0x786d26
// > EditorSoundConfigUploadPopup::init @ 0x7895ec
// > GJEditorSoundConfig::showSoundInfo @ 0x78dd12
//
// 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:59:38 +0000
//
GJEditorSoundConfig *__fastcall GJEditorSoundConfig::getUnpackedSoundDesc(
GJEditorSoundConfig *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 + 336);
if ( (v5 & 1) != 0 )
v6 = *(_DWORD *)(a2 + 340);
else
v6 = v5 >> 1;
if ( v6 )
{
std::string::basic_string(v8, a2 + 336);
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;
}