//
// EditorPauseLayer::onDownloadAudio from 0x50929c to 0x509326 (138 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:26 +0000
//
int __fastcall EditorPauseLayer::onDownloadAudio(int this, cocos2d::CCObject *a2)
{
int v2; // r1
int v3; // r8
int v4; // r7
int v5; // r0
bool v6; // [sp+3h] [bp-1Dh] BYREF
_BYTE v7[12]; // [sp+4h] [bp-1Ch] BYREF
_BYTE v8[12]; // [sp+10h] [bp-10h] BYREF
v2 = *(_DWORD *)(this + 456);
v3 = this;
v4 = *(_DWORD *)(v2 + 1408);
if ( v4 )
{
v6 = 0;
LevelEditorLayer::getSongIDs((LevelEditorLayer *)v7, (bool *)v2, &v6);
LevelEditorLayer::getSFXIDs((LevelEditorLayer *)v8, *(_DWORD *)(v3 + 456));
v5 = AudioAssetsPopup::create(*(_DWORD *)(v4 + 436), *(_DWORD *)(v4 + 432), v7, v8);
if ( v5 )
(*(void (__fastcall **)(int))(*(_DWORD *)v5 + 656))(v5);
std::string::~string((int)v8);
return std::string::~string((int)v7);
}
return this;
}