//
// EditorSoundBrowserLayer::create from 0x14018da30 to 0x14018dc4d (541 bytes)
//
// 5 xrefs:
// > AccountReviewPopup::jumpTo @ 0x1400bc187
// > CommentCell::onGoToLevel @ 0x1401551b6
// > EditorSoundsLayer::onBrowse @ 0x14019ed54
// > ??> @ 0x14091919c
// > ??> @ 0x1409191a8
//
// 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:41 +0000
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall EditorSoundBrowserLayer::create(__int64 a1, __int64 a2)
{
_QWORD *v4; // rdi
__int64 v5; // rax
_BYTE v7[32]; // [rsp+28h] [rbp-50h] BYREF
__int64 v8; // [rsp+48h] [rbp-30h]
v8 = a1;
v4 = operator new(0x4B8u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*v4 = &EditorSoundBrowserLayer::`vftable';
v4[40] = &EditorSoundBrowserLayer::`vftable';
v4[41] = &EditorSoundBrowserLayer::`vftable';
v4[42] = &EditorSoundBrowserLayer::`vftable';
v4[43] = &EditorSoundBrowserLayer::`vftable';
v4[44] = &EditorSoundBrowserLayer::`vftable';
v4[51] = &EditorSoundBrowserLayer::`vftable';
v4[54] = &EditorSoundBrowserLayer::`vftable';
v4[68] = &EditorSoundBrowserLayer::`vftable';
v4[83] = &EditorSoundBrowserLayer::`vftable';
v4[84] = &EditorSoundBrowserLayer::`vftable';
v4[125] = &EditorSoundBrowserLayer::`vftable';
v4[126] = &EditorSoundBrowserLayer::`vftable';
v4[127] = &EditorSoundBrowserLayer::`vftable';
v4[128] = &EditorSoundBrowserLayer::`vftable';
v4[129] = 1;
v4[130] = 0;
v4[131] = 0;
v4[132] = 0;
v4[133] = 0;
v4[134] = 0;
v4[135] = 0;
v4[136] = 0;
*((_DWORD *)v4 + 274) = 0;
*((_OWORD *)v4 + 69) = 0;
v4[140] = 0;
v4[141] = 15;
*((_BYTE *)v4 + 1104) = 0;
*((_OWORD *)v4 + 71) = 0;
v4[144] = 0;
v4[145] = 15;
*((_BYTE *)v4 + 1136) = 0;
v4[146] = 0;
v4[147] = 0;
*((_DWORD *)v4 + 296) = 0;
*((_BYTE *)v4 + 1188) = 0;
v4[149] = 0;
*((_DWORD *)v4 + 300) = 0;
v5 = sub_14003F4F0((__int64)v7, a1);
if ( (unsigned __int8)EditorSoundBrowserLayer::init(v4, v5, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);
v4 = nullptr;
}
sub_14003D310(a1);
return v4;
}