//
// GJScoreCell::onViewProfile from 0x73b5e0 to 0x73b758 (376 bytes)
//
// 3 xrefs:
// > ??> @ 0x5ca58
// > GJScoreCell::loadFromScore @ 0x7435a4
// > ??> @ 0x1542280
//
// 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:52:41 +0000
//
__int64 __fastcall GJScoreCell::onViewProfile(GJScoreCell *this, cocos2d::CCObject *a2, bool a3)
{
__int64 v4; // x1
ProfilePage *v5; // x0
__int64 v6; // x0
cocos2d::CCDirector *v8; // x0
cocos2d::CCDirector *v9; // x0
cocos2d::CCDirector *v10; // x0
cocos2d::CCDirector *v11; // x0
cocos2d::CCDirector *v12; // x21
__int64 v13; // x0
cocos2d::CCDirector *v14; // x21
cocos2d::CCString *v15; // x0
const char *CString; // x0
size_t v17; // x0
LevelBrowserLayer *v18; // x0
GJSearchObject *v19; // x1
cocos2d::CCTransitionFade *v20; // x0
cocos2d::CCScene *v21; // x1
cocos2d::CCScene *v22; // x0
cocos2d::CCDirector *v23; // x21
char *v24; // [xsp+38h] [xbp+38h]
__int64 v25[2]; // [xsp+40h] [xbp+40h] BYREF
void *v26; // [xsp+50h] [xbp+50h]
v4 = *((_QWORD *)this + 70);
if ( v4 && (v5 = (ProfilePage *)*(unsigned int *)(v4 + 376), (int)v5 > 0) )
{
v6 = ProfilePage::create(v5, 0, a3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
else
{
v8 = (cocos2d::CCDirector *)*(unsigned int *)(v4 + 368);
if ( (_DWORD)v8 == 1 )
{
v9 = (cocos2d::CCDirector *)*(unsigned __int8 *)(cocos2d::CCDirector::sharedDirector(v8) + 176);
if ( !(_DWORD)v9 )
{
v10 = (cocos2d::CCDirector *)*(unsigned int *)(*(_QWORD *)(cocos2d::CCDirector::sharedDirector(v9) + 272) + 28LL);
if ( (_DWORD)v10 != 15 )
{
v11 = *(cocos2d::CCDirector **)(cocos2d::CCDirector::sharedDirector(v10) + 96);
if ( v11 )
{
v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);
v13 = cocos2d::CCDirector::sharedDirector(v12);
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::popToSceneInStack(v12, *(cocos2d::CCScene **)(v13 + 96));
}
else
{
v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(nullptr);
v10 = *(cocos2d::CCDirector **)(cocos2d::CCDirector::sharedDirector(v23) + 272);
*((_QWORD *)v23 + 12) = v10;
}
}
v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*(unsigned int *)(*((_QWORD *)this + 70) + 372LL));
CString = (const char *)cocos2d::CCString::getCString(v15);
v25[0] = 0;
v24 = (char *)CString;
v25[1] = 0;
v26 = nullptr;
v17 = strlen(CString);
std::string::__init(v25, v24, v17);
v18 = (LevelBrowserLayer *)GJSearchObject::create(5, v25);
v20 = (cocos2d::CCTransitionFade *)LevelBrowserLayer::scene(v18, v19);
v22 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v20, 0.5, v21);
cocos2d::CCDirector::pushScene(v14, v22);
if ( (v25[0] & 1) != 0 )
operator delete(v26);
}
}
}
return _stack_chk_guard;
}