//
// ProfilePage::onMyLists from 0x1008a4210 to 0x1008a43c9 (441 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x1008a13ea
//
// 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:37:15 +0000
//
__int64 __fastcall ProfilePage::onMyLists(__int64 a1, __int64 a2)
{
char *v2; // rbx
__int64 v3; // r14
_BYTE *v4; // rax
char *v5; // rax
__int64 result; // rax
__int64 v7; // r15
_QWORD *v8; // r14
__int64 v9; // rax
char *v10; // rax
const char *CString; // r14
size_t v12; // rax
std::string::size_type v13; // rbx
char *data; // r15
size_t v15; // r12
char *v16; // rbx
__int64 v17; // r14
_BYTE *v18; // rax
char *v19; // rax
std::string __dst[2]; // [rsp+8h] [rbp-38h] BYREF
if ( *(_BYTE *)(a1 + 740) == 1 )
{
v2 = GJSearchObject::create_2(102);
*((_DWORD *)v2 + 108) = 1;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelBrowserLayer::scene((__int64)v2, a2);
v5 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.5);
return cocos2d::CCDirector::pushScene(v3, (_UNKNOWN **)v5);
}
result = cocos2d::CCDirector::sharedDirector();
if ( !*(_BYTE *)(result + 176) )
{
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_10088E820("%i", *(_DWORD *)(a1 + 736));
CString = (const char *)cocos2d::CCString::getCString((__int64)v10);
v12 = strlen(CString);
if ( v12 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v13 = v12;
if ( v12 >= 0x17 )
{
v15 = 26;
if ( (v12 | 7) != 0x17 )
v15 = (v12 | 7) + 1;
data = (char *)operator new(v15);
__dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data;
__dst[0].__r_.__value_.__r.__words[0] = v15 + 1;
__dst[0].__r_.__value_.__l.__size_ = v13;
}
else
{
__dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v12);
data = __dst[0].__r_.__value_.__s.__data_;
if ( !v12 )
goto LABEL_16;
}
memmove(data, CString, v13);
LABEL_16:
data[v13] = 0;
v16 = GJSearchObject::create_1(5, __dst);
if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst[0].__r_.__value_.__l.__data_);
*((_DWORD *)v16 + 108) = 1;
v17 = cocos2d::CCDirector::sharedDirector();
v18 = LevelBrowserLayer::scene((__int64)v16, (__int64)__dst);
v19 = cocos2d::CCTransitionFade::create_1((__int64)v18, 0.5);
return cocos2d::CCDirector::pushScene(v17, (_UNKNOWN **)v19);
}
return result;
}