//
// LevelBrowserLayer::onGoToPage from 0x100482970 to 0x100482a4e (222 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x100480e5a
//
// 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:41 +0000
//
__int64 __fastcall LevelBrowserLayer::onGoToPage(__int64 a1)
{
__int64 result; // rax
int v3; // edi
char *v4; // r14
__int128 v5; // [rsp+20h] [rbp-40h] BYREF
void *v6; // [rsp+30h] [rbp-30h]
__int128 v7; // [rsp+38h] [rbp-28h] BYREF
void *__p; // [rsp+48h] [rbp-18h]
result = *(_QWORD *)(a1 + 664);
if ( result )
{
v3 = *(_DWORD *)(result + 392);
LOBYTE(v5) = 20;
strcpy((char *)&v5 + 1, "Go to Page");
LOBYTE(v7) = 4;
strcpy((char *)&v7 + 1, "Go");
v4 = SetIDPopup::create(v3 + 1, 1, 1000, &v5, &v7, 1, 60.0, 1, 0, 0);
if ( (v7 & 1) != 0 )
operator delete(__p);
if ( (v5 & 1) != 0 )
operator delete(v6);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 72LL))(v4, 3);
*((_QWORD *)v4 + 87) = a1 + 560;
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 1312LL))(v4);
}
return result;
}