//
// EditorSoundConfigInfoLayer::dEditorSoundConfigInfoLayer from 0x140191db0 to 0x1401920af (767 bytes)
//
// 2 xrefs:
// > sub_140191B40 @ 0x140191b4f
// > ??> @ 0x140919370
//
// This function is hookable on this platform (idp: pc, 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 11:27:43 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::dEditorSoundConfigInfoLayer(_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // rsi
_QWORD *v4; // r14
_QWORD *v5; // rax
void *v6; // rax
void *v7; // rax
void *v8; // rax
void *v9; // rax
void *v10; // rax
__int64 v11; // rcx
void *v12; // rax
__int64 v13; // rax
cocos2d::CCObject *v14; // rcx
*a1 = &EditorSoundConfigInfoLayer::`vftable';
a1[40] = &EditorSoundConfigInfoLayer::`vftable';
a1[41] = &EditorSoundConfigInfoLayer::`vftable';
a1[42] = &EditorSoundConfigInfoLayer::`vftable';
a1[43] = &EditorSoundConfigInfoLayer::`vftable';
a1[44] = &EditorSoundConfigInfoLayer::`vftable';
a1[51] = &EditorSoundConfigInfoLayer::`vftable';
a1[54] = &EditorSoundConfigInfoLayer::`vftable';
a1[68] = &EditorSoundConfigInfoLayer::`vftable';
a1[83] = &EditorSoundConfigInfoLayer::`vftable';
a1[84] = &EditorSoundConfigInfoLayer::`vftable';
v2 = a1 + 125;
a1[125] = &EditorSoundConfigInfoLayer::`vftable';
v3 = a1 + 126;
a1[126] = &EditorSoundConfigInfoLayer::`vftable';
a1[127] = &EditorSoundConfigInfoLayer::`vftable';
a1[128] = &EditorSoundConfigInfoLayer::`vftable';
a1[129] = &EditorSoundConfigInfoLayer::`vftable';
a1[130] = &EditorSoundConfigInfoLayer::`vftable';
v4 = a1 + 131;
a1[131] = &EditorSoundConfigInfoLayer::`vftable';
a1[132] = &EditorSoundConfigInfoLayer::`vftable';
a1[133] = &EditorSoundConfigInfoLayer::`vftable';
v5 = *(_QWORD **)&qword_14090BFB0;
if ( *(_QWORD *)&qword_14090BFB0
|| (v6 = operator new(0x690u),
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v6),
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0),
(v5 = *(_QWORD **)&qword_14090BFB0) != nullptr) )
{
if ( (_QWORD *)v5[183] == v2 )
v5[183] = 0;
if ( !v5 )
{
v9 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v9);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD **)&qword_14090BFB0;
}
}
else
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD **)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v8 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD **)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
goto LABEL_16;
goto LABEL_12;
}
}
if ( (_QWORD *)v5[184] == v3 )
v5[184] = 0;
LABEL_12:
if ( !v5 )
{
v10 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v10);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD **)&qword_14090BFB0;
}
if ( (_QWORD *)v5[186] == v4 )
v5[186] = 0;
LABEL_16:
v11 = qword_14090C070;
if ( !qword_14090C070 )
{
v12 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v11 = qword_14090C070;
}
MusicDownloadManager::removeMusicDownloadDelegate(v11, a1 + 133);
v13 = a1[148];
if ( v13 )
*(_QWORD *)(v13 + 664) = 0;
v14 = (cocos2d::CCObject *)a1[134];
if ( v14 )
cocos2d::CCObject::release(v14);
return SetupTriggerPopup::dSetupTriggerPopup(a1);
}