//
// GJScoreCell::onViewProfile from 0x100138cf8 to 0x100138e1c (292 bytes)
//
// 1 xrefs:
// > GJScoreCell::loadFromScore @ 0x10012cfd0
//
// 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 10:59:28 +0000
//
void __fastcall GJScoreCell::onViewProfile(__int64 a1)
{
__int64 v1; // x19
__int64 v2; // x8
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x21
__int64 v8; // x20
__int64 v9; // x20
__int64 v10; // x0
char *CString; // x0
char *v12; // x0
__int64 v13; // x0
__int64 v14; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v16; // [xsp+1Fh] [xbp-21h]
v1 = a1;
v2 = *(_QWORD *)(a1 + 560);
if ( v2 && (a1 = *(unsigned int *)(v2 + 376), (int)a1 >= 1) )
{
v3 = ProfilePage::create(a1, 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}
else if ( *(_DWORD *)(v2 + 368) == 1 )
{
v4 = cocos2d::CCDirector::sharedDirector(a1);
if ( (*(_BYTE *)(v4 + 176) & 1) == 0 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
if ( *(_DWORD *)(*(_QWORD *)(v5 + 272) + 28LL) != 15 )
{
v6 = cocos2d::CCDirector::sharedDirector(v5);
v7 = *(_QWORD *)(v6 + 96);
v8 = cocos2d::CCDirector::sharedDirector(v6);
v5 = cocos2d::CCDirector::sharedDirector(v8);
if ( v7 )
v5 = cocos2d::CCDirector::popToSceneInStack(v8, *(_QWORD *)(v5 + 96));
else
*(_QWORD *)(v8 + 96) = *(_QWORD *)(v5 + 272);
}
v9 = cocos2d::CCDirector::sharedDirector(v5);
v10 = sub_1003065B0("%i", *(_DWORD *)(*(_QWORD *)(v1 + 560) + 372LL));
CString = (char *)cocos2d::CCString::getCString(v10);
sub_100009900(__p, CString);
v12 = GJSearchObject::create_1(5, (__int128 *)__p);
v13 = LevelBrowserLayer::scene(v12);
v14 = cocos2d::CCTransitionFade::create_1(v13, 0.5);
cocos2d::CCDirector::pushScene(v9, v14);
if ( v16 < 0 )
operator delete(__p[0]);
}
}
}