//
// LevelBrowserLayer::onGoToPage from 0x7f6348 to 0x7f64bc (372 bytes)
//
// 3 xrefs:
// > ??> @ 0xb7f10
// > LevelBrowserLayer::init @ 0x7f9950
// > ??> @ 0x1545508
//
// 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 12:54:38 +0000
//
__int64 __fastcall LevelBrowserLayer::onGoToPage(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
int v4; // w20
_QWORD *v5; // x20
__int64 v7[2]; // [xsp+58h] [xbp+48h] BYREF
void *v8; // [xsp+68h] [xbp+58h]
__int64 v9[2]; // [xsp+70h] [xbp+60h] BYREF
void *v10; // [xsp+80h] [xbp+70h]
v3 = *((_QWORD *)this + 83);
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 392);
v7[0] = 0;
v7[1] = 0;
v8 = nullptr;
std::string::__init(v7, "Go to Page", 0xAu);
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, "Go", 2u);
v5 = (_QWORD *)SetIDPopup::create((unsigned int)(v4 + 1), 1, 1000, v7, v9, 1, 1, 0, 60.0, 0);
if ( (v9[0] & 1) != 0 )
{
operator delete(v10);
if ( (v7[0] & 1) == 0 )
goto LABEL_4;
}
else if ( (v7[0] & 1) == 0 )
{
LABEL_4:
(*(void (__fastcall **)(_QWORD *, __int64))(*v5 + 72LL))(v5, 3);
v5[87] = (char *)this + 560;
(*(void (__fastcall **)(_QWORD *))(*v5 + 1312LL))(v5);
return _stack_chk_guard;
}
operator delete(v8);
goto LABEL_4;
}
return _stack_chk_guard;
}