//
// sub_10022F12C from 0x10022f12c to 0x10022f26c (320 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x10022cc64
//
// 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:01:16 +0000
//
__int64 __fastcall sub_10022F12C(__int64 a1)
{
char *v1; // x19
__int64 v2; // x20
__int64 v3; // x0
_QWORD *v4; // x0
__int64 result; // x0
__int64 v7; // x21
_QWORD *v8; // x20
__int64 v9; // x0
__int64 v10; // x0
char *CString; // x0
char *v12; // x19
__int64 v13; // x20
__int64 v14; // x0
_QWORD *v15; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v17; // [xsp+1Fh] [xbp-21h]
if ( *(_BYTE *)(a1 + 740) == 1 )
{
v1 = GJSearchObject::create_2(102);
*((_DWORD *)v1 + 108) = 1;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = LevelBrowserLayer::scene(v1);
v4 = (_QWORD *)cocos2d::CCTransitionFade::create_1(v3, 0.5);
return cocos2d::CCDirector::pushScene(v2, v4);
}
else
{
result = cocos2d::CCDirector::sharedDirector();
if ( (*(_BYTE *)(result + 176) & 1) == 0 )
{
if ( *(_DWORD *)(*(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272) + 28LL) != 15 )
{
v7 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 96);
v8 = (_QWORD *)cocos2d::CCDirector::sharedDirector();
v9 = cocos2d::CCDirector::sharedDirector();
if ( v7 )
cocos2d::CCDirector::popToSceneInStack(v8, *(_QWORD *)(v9 + 96));
else
v8[12] = *(_QWORD *)(v9 + 272);
}
v10 = sub_1003065B0("%i", *(_DWORD *)(a1 + 736));
CString = (char *)cocos2d::CCString::getCString(v10);
sub_100009900(__p, CString);
v12 = GJSearchObject::create_1(5, (__int128 *)__p);
if ( v17 < 0 )
operator delete(__p[0]);
*((_DWORD *)v12 + 108) = 1;
v13 = cocos2d::CCDirector::sharedDirector();
v14 = LevelBrowserLayer::scene(v12);
v15 = (_QWORD *)cocos2d::CCTransitionFade::create_1(v14, 0.5);
return cocos2d::CCDirector::pushScene(v13, v15);
}
}
return result;
}