//
// LevelBrowserLayer::onGoToPage from 0x3ba484 to 0x3ba530 (172 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LevelBrowserLayer::onGoToPage(LevelBrowserLayer *a1, cocos2d::CCObject *a2)
{
GJSearchObject *m_searchObject; // r3
int m_page; // r4
_DWORD *v5; // r4
_BYTE v6[4]; // [sp+24h] [bp-Ch] BYREF
_BYTE v7[4]; // [sp+28h] [bp-8h] BYREF
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
m_page = m_searchObject->m_page;
sub_776584((int)v6, "Go to Page");
sub_776584((int)v7, "Go");
v5 = (_DWORD *)SetIDPopup::create(m_page + 1, 1, 1000, (int)v6, (int)v7, 1, 1, 60.0, 0, 0);
sub_774008(v7);
sub_774008(v6);
(*(void (__fastcall **)(_DWORD *, int))(*v5 + 36))(v5, 3);
v5[131] = &a1->SetIDPopupDelegate;
(*(void (__fastcall **)(_DWORD *))(*v5 + 644))(v5);
}
}