//
// EditorSoundsLayer::create from 0x14019ca70 to 0x14019cbf2 (386 bytes)
//
// 3 xrefs:
// > EditorPauseLayer::onEditorSounds @ 0x1401831e2
// > EditorUI::handleEditorAction @ 0x1401c41bf
// > ??> @ 0x140919748
//
// 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:47 +0000
//
// Hidden C++ exception states: #wind=1
void *__fastcall EditorSoundsLayer::create(__int64 a1)
{
void *v2; // rdi
v2 = operator new(0x490u);
memset(v2, 0, 0x490u);
sub_14019CC00(v2);
*(_QWORD *)v2 = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 40) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 41) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 42) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 43) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 44) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 51) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 54) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 68) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 83) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 84) = &EditorSoundsLayer::`vftable';
*((_QWORD *)v2 + 134) = 0;
*((_QWORD *)v2 + 135) = 0;
*((_QWORD *)v2 + 136) = 0;
*((_QWORD *)v2 + 137) = 0;
*((_OWORD *)v2 + 69) = 0;
*((_QWORD *)v2 + 140) = 0;
*((_QWORD *)v2 + 141) = 15;
*((_BYTE *)v2 + 1104) = 0;
*((_DWORD *)v2 + 284) = -1;
*((_QWORD *)v2 + 143) = 0;
*((_QWORD *)v2 + 144) = 0;
*((_BYTE *)v2 + 1160) = 0;
if ( (unsigned __int8)EditorSoundsLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
return nullptr;
}
}