//
// LevelBrowserLayer::onGoToFolder from 0x100484050 to 0x1004840e6 (150 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x100481e1f
//
// 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 12:30:42 +0000
//
__int64 __fastcall LevelBrowserLayer::onGoToFolder(__int64 a1)
{
__int64 result; // rax
unsigned int v3; // edi
unsigned __int8 v4; // si
_QWORD *v5; // r14
__int128 v6; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
result = *(_QWORD *)(a1 + 664);
if ( result )
{
v3 = *(_DWORD *)(result + 420);
v4 = *(_DWORD *)(result + 316) == 98;
LOBYTE(v6) = 24;
strcpy((char *)&v6 + 1, "Go to Folder");
v5 = SetFolderPopup::create(v3, v4, &v6);
if ( (v6 & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(_QWORD *, __int64))(*v5 + 72LL))(v5, 4);
v5[87] = a1 + 560;
return (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 1312LL))(v5);
}
return result;
}