//
// EditorPauseLayer::onDownloadAudio from 0x10044477c to 0x10044480c (144 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::customSetup @ 0x100443cd8
//
// 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 11:05:13 +0000
//
void __fastcall EditorPauseLayer::onDownloadAudio(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x0
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v6; // [xsp+1Fh] [xbp-31h]
void *v7[2]; // [xsp+20h] [xbp-30h] BYREF
char v8; // [xsp+37h] [xbp-19h]
bool v9; // [xsp+3Fh] [xbp-11h] BYREF
v2 = *(_QWORD *)(a1 + 576);
v3 = *(_QWORD *)(v2 + 1936);
if ( v3 )
{
v9 = 0;
LevelEditorLayer::getSongIDs(v2, &v9, v7);
LevelEditorLayer::getSFXIDs(*(_QWORD *)(a1 + 576), __p);
v4 = AudioAssetsPopup::create(*(unsigned int *)(v3 + 608), *(unsigned int *)(v3 + 604), v7, __p);
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
if ( v6 < 0 )
operator delete(__p[0]);
if ( v8 < 0 )
operator delete(v7[0]);
}
}