//
// EditorSoundBrowserLayer::onSaveActive from 0xcc890c to 0xcc8b14 (520 bytes)
//
// 3 xrefs:
// > ??> @ 0xbe168
// > EditorSoundBrowserLayer::init @ 0xcca018
// > ??> @ 0x1545840
//
// 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 13:06:22 +0000
//
__int64 __fastcall EditorSoundBrowserLayer::onSaveActive(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x3
__int64 v4; // x20
int v5; // w0
__int64 v6; // x1
__int64 v8[2]; // [xsp+58h] [xbp+48h] BYREF
void *v9; // [xsp+68h] [xbp+58h]
__int64 v10[2]; // [xsp+70h] [xbp+60h] BYREF
void *v11; // [xsp+80h] [xbp+70h]
__int64 v12[2]; // [xsp+88h] [xbp+78h] BYREF
void *v13; // [xsp+98h] [xbp+88h]
__int64 v14[2]; // [xsp+A0h] [xbp+90h] BYREF
void *v15; // [xsp+B0h] [xbp+A0h]
__int64 v16; // [xsp+B8h] [xbp+A8h]
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
v3 = _stack_chk_guard;
*((_DWORD *)this + 296) = 1;
v16 = v3;
std::string::__init(v8, &byte_11B8890, 0);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, "Pack name...", 0xCu);
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
std::string::__init(v12, "Save Active as New Pack", 0x17u);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
std::string::__init(v14, "Create", 6u);
v4 = SetTextPopup::create((char *)v8, (char *)v10, 20, (char *)v12, (char *)v14, 0, 0, 1, 0.0, 0);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
*(_QWORD *)(v4 + 744) = (char *)this + 1040;
v5 = (*(__int64 (__fastcall **)(EditorSoundBrowserLayer *))(*(_QWORD *)this + 104LL))(this);
v6 = *(_QWORD *)v4;
*(_DWORD *)(v4 + 592) = v5 + 1;
(*(void (__fastcall **)(__int64))(v6 + 1312))(v4);
return _stack_chk_guard;
}