//
// LevelBrowserLayer::onGoToFolder from 0x100498054 to 0x1004980f8 (164 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x100496860
//
// This function is hookable on this platform (idp: arm, 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:05:57 +0000
//
__int64 __fastcall LevelBrowserLayer::onGoToFolder(__int64 result)
{
__int64 v1; // x8
__int64 v2; // x19
__int64 v3; // x20
_BOOL8 v4; // x21
_QWORD *v5; // x20
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v7; // [xsp+1Fh] [xbp-21h]
v1 = *(_QWORD *)(result + 664);
if ( v1 )
{
v2 = result;
v3 = *(unsigned int *)(v1 + 420);
v4 = *(_DWORD *)(v1 + 316) == 98;
sub_100009900(__p, "Go to Folder");
v5 = sub_10037BFBC(v3, v4, (__int64)__p);
if ( v7 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(_QWORD *, __int64))(*v5 + 72LL))(v5, 4);
v5[87] = v2 + 560;
return (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 1312LL))(v5);
}
return result;
}