//
// EditorSoundConfigInfoLayer::onDescription from 0xcd067c to 0xcd0798 (284 bytes)
//
// 4 xrefs:
// > ??> @ 0x455c8
// > EditorSoundConfigInfoLayer::init @ 0xcd1f28
// > EditorSoundConfigInfoLayer::init @ 0xcd2704
// > ??> @ 0x15414c0
//
// 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:26 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::onDescription(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)
{
GJEditorSoundConfig *v3; // x0
__int64 v4; // x0
__int64 v5; // x2
__int64 v6; // x0
__int64 v7; // x1
__int64 v8; // x0
__int64 v10[3]; // [xsp+38h] [xbp+38h] BYREF
__int64 v11; // [xsp+50h] [xbp+50h] BYREF
__int64 v12; // [xsp+58h] [xbp+58h]
void *v13; // [xsp+60h] [xbp+60h]
v3 = *((GJEditorSoundConfig **)this + 136);
if ( v3 )
{
GJEditorSoundConfig::getUnpackedSoundDesc(v10, v3);
v11 = 0;
v4 = *((_QWORD *)this + 136);
v12 = 0;
v5 = v4 + 424;
v13 = nullptr;
if ( (*(_BYTE *)(v4 + 424) & 1) != 0 )
{
std::string::__init(&v11, *(void **)(v4 + 440), *(_QWORD *)(v4 + 432));
}
else
{
v6 = *(_QWORD *)v5;
v7 = *(_QWORD *)(v5 + 8);
v13 = *(void **)(v5 + 16);
v11 = v6;
v12 = v7;
}
v8 = SoundPackDescPopup::create((unsigned __int8 *)v10, (__int64)&v11, (__int64)this + 1056);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
if ( (v11 & 1) != 0 )
operator delete(v13);
if ( (v10[0] & 1) != 0 )
operator delete((void *)v10[2]);
}
return _stack_chk_guard;
}