//
// EditorSoundsLayer::onBrowse from 0x14019ec80 to 0x14019ed73 (243 bytes)
//
// 2 xrefs:
// > EditorSoundsLayer::init @ 0x14019d3d5
// > ??> @ 0x1409197e4
//
// 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=2
_QWORD *__fastcall EditorSoundsLayer::onBrowse(__int64 a1)
{
__int64 v2; // rcx
_QWORD *result; // rax
__int64 v4; // rcx
__int128 v5; // [rsp+20h] [rbp-28h] BYREF
__int64 v6; // [rsp+30h] [rbp-18h]
__int64 v7; // [rsp+38h] [rbp-10h]
void *v8; // [rsp+60h] [rbp+18h]
void *v9; // [rsp+60h] [rbp+18h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
if ( (unsigned __int8)GameManager::getGameVariable(v2, "0219") )
{
if ( !qword_14090BFD0 )
{
v9 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
return (_QWORD *)GameManager::showParentalRestrictedAlert();
}
else
{
v4 = *(_QWORD *)(a1 + 1080);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1032LL))(v4, 0);
v5 = 0;
v6 = 0;
v7 = 15;
LOBYTE(v5) = 0;
result = EditorSoundBrowserLayer::create((__int64)&v5, a1);
if ( result )
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*result + 1064LL))(result);
}
return result;
}