//
// EditorPauseLayer::onDownloadAudio from 0x10027e870 to 0x10027e905 (149 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::customSetup @ 0x10027d901
//
// 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 12:27:42 +0000
//
void __fastcall EditorPauseLayer::onDownloadAudio(__int64 a1)
{
__int64 v1; // rsi
__int64 v2; // r14
__int64 v3; // rax
_BYTE v4[16]; // [rsp+8h] [rbp-48h] BYREF
void *v5; // [rsp+18h] [rbp-38h]
size_t v6[3]; // [rsp+20h] [rbp-30h] BYREF
bool v7; // [rsp+3Fh] [rbp-11h] BYREF
v1 = *(_QWORD *)(a1 + 576);
v2 = *(_QWORD *)(v1 + 1936);
if ( v2 )
{
v7 = 0;
LevelEditorLayer::getSongIDs((__int64)v4, v1, &v7);
LevelEditorLayer::getSFXIDs(v6, *(_QWORD *)(a1 + 576));
v3 = AudioAssetsPopup::create(*(unsigned int *)(v2 + 608), *(unsigned int *)(v2 + 604), v4, v6);
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
if ( (v6[0] & 1) != 0 )
operator delete((void *)v6[2]);
if ( (v4[0] & 1) != 0 )
operator delete(v5);
}
}