//
// EditorSoundConfigInfoLayer::startDownload from 0x140194840 to 0x140194915 (213 bytes)
//
// 4 xrefs:
// > EditorSoundConfigInfoLayer::init @ 0x140194460
// > EditorSoundConfigInfoLayer::onUpdate @ 0x1401950b0
// > EditorSoundConfigInfoLayer::onFavorite @ 0x140195222
// > ??> @ 0x1409193a0
//
// 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:44 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall EditorSoundConfigInfoLayer::startDownload(__int64 a1)
{
__int64 v2; // rax
cocos2d::CCLayerColor *v3; // rax
__int64 v4; // rcx
void *v5; // [rsp+30h] [rbp+8h]
if ( !*(_BYTE *)(a1 + 1104) )
{
v2 = *(_QWORD *)(a1 + 1072);
if ( v2 )
{
if ( *(int *)(v2 + 320) > 0 )
{
*(_BYTE *)(a1 + 1104) = 1;
v3 = LoadingCircle::create();
*(_QWORD *)(a1 + 1096) = v3;
*((_QWORD *)v3 + 69) = *(_QWORD *)(a1 + 584);
LoadingCircle::show(*(_QWORD *)(a1 + 1096));
EditorSoundConfigInfoLayer::refreshActionButtons(a1);
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v5 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v5);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v4 + 1464) = a1 + 1000;
GameLevelManager::downloadEditorSoundConfig(v4, *(unsigned int *)(*(_QWORD *)(a1 + 1072) + 320LL));
}
}
}
}