//
// EditorSoundsLayer::onSettings from 0x14019ed80 to 0x14019eeb9 (313 bytes)
//
// 2 xrefs:
// > EditorSoundsLayer::init @ 0x14019d49f
// > ??> @ 0x1409197f0
//
// 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:48 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCObject *__fastcall EditorSoundsLayer::onSettings(__int64 a1)
{
void *v2; // rdi
struct cocos2d::CCObject *result; // rax
__int64 (__fastcall *v4)(__int64); // rdx
v2 = operator new(0x2B0u);
memset(v2, 0, 0x2B0u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*(_QWORD *)v2 = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 40) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 41) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 42) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 43) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 44) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 51) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 54) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 68) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 83) = &EditorSoundsSettingsPopup::`vftable';
*((_QWORD *)v2 + 84) = 0;
*((_BYTE *)v2 + 680) = 0;
if ( !(unsigned __int8)EditorSoundsSettingsPopup::init(v2, a1) )
return (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
result = cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
if ( v2 )
{
v4 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1064LL);
if ( v4 == FLAlertLayer::show )
return (struct cocos2d::CCObject *)FLAlertLayer::show((__int64)v2);
else
return (struct cocos2d::CCObject *)v4((__int64)v2);
}
return result;
}