//
// GJNotificationCell::onViewTarget from 0x14015c6e0 to 0x14015c805 (293 bytes)
//
// 4 xrefs:
// > GJNotificationCell::loadFromNotification @ 0x14015bfc6
// > ??> @ 0x14089b5cc
// > ??> @ 0x14089b5dc
// > ??> @ 0x140917b4c
//
// 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 11:27:23 +0000
//
char __fastcall GJNotificationCell::onViewTarget(__int64 a1)
{
__int64 v1; // rax
__int64 v3; // rcx
__int64 v4; // rax
cocos2d::CCString *v5; // rax
const char *CString; // rax
size_t v7; // r8
__int64 v8; // rax
__int64 v9; // rdx
__int64 v10; // r8
__int64 v11; // r9
__int64 v12; // rcx
__int64 v13; // rdi
struct cocos2d::CCScene *v14; // rbx
__int64 v15; // rcx
__int64 v16; // rax
struct cocos2d::CCScene *v17; // rbx
__int64 v18; // rcx
cocos2d::CCDirector *v19; // rax
__int128 v21; // [rsp+20h] [rbp-28h] BYREF
__int64 v22; // [rsp+30h] [rbp-18h]
__int64 v23; // [rsp+38h] [rbp-10h]
v1 = *(_QWORD *)(a1 + 568);
if ( v1 )
{
v3 = *(unsigned int *)(v1 + 200);
if ( (int)v3 > 0 )
{
if ( *(_DWORD *)(v1 + 196) == 3 )
{
v4 = ProfilePage::create(v3, 0);
LOBYTE(v1) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL))(v4);
}
else
{
v5 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)v3);
CString = cocos2d::CCString::getCString(v5);
v21 = 0;
v22 = 0;
v7 = -1;
v23 = 0;
do
++v7;
while ( CString[v7] );
sub_14003D230(&v21, CString, v7);
v8 = GJSearchObject::create_1(0, &v21);
v12 = *(_QWORD *)(a1 + 568);
v13 = v8;
if ( *(_DWORD *)(v12 + 196) == 2 )
*(_DWORD *)(v8 + 464) = 1;
v14 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v12, v9, v10, v11);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v15) + 232) = v14;
v16 = LevelBrowserLayer::create(v13);
(*(void (__fastcall **)(struct cocos2d::CCScene *, __int64))(*(_QWORD *)v14 + 464LL))(v14, v16);
v17 = cocos2d::CCTransitionFade::create(0.5, v14);
v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18);
LOBYTE(v1) = cocos2d::CCDirector::pushScene(v19, v17);
}
}
}
return v1;
}