//
// GJNotificationCell::onViewTarget from 0x73b758 to 0x73b8a4 (332 bytes)
//
// 3 xrefs:
// > ??> @ 0xe5108
// > GJNotificationCell::loadFromNotification @ 0x74aca4
// > ??> @ 0x1546e50
//
// 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 GJNotificationCell::onViewTarget(GJNotificationCell *this, cocos2d::CCObject *a2)
{
__int64 v3; // x2
const char *v4; // x1
cocos2d::CCString *v5; // x0
const char *CString; // x0
size_t v7; // x0
LevelBrowserLayer *v8; // x20
cocos2d::CCDirector *v9; // x0
cocos2d::CCDirector *v10; // x21
GJSearchObject *v11; // x1
cocos2d::CCTransitionFade *v12; // x0
cocos2d::CCScene *v13; // x1
cocos2d::CCScene *v14; // x0
__int64 v16; // x0
char *v17; // [xsp+38h] [xbp+38h]
__int64 v18[2]; // [xsp+40h] [xbp+40h] BYREF
void *v19; // [xsp+50h] [xbp+50h]
v3 = *((_QWORD *)this + 70);
if ( v3 )
{
v4 = (const char *)*(unsigned int *)(v3 + 168);
if ( (int)v4 > 0 )
{
if ( *(_DWORD *)(v3 + 164) == 3 )
{
v16 = ProfilePage::create((ProfilePage *)(unsigned int)v4, 0, v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 1312LL))(v16);
return _stack_chk_guard;
}
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v4);
CString = (const char *)cocos2d::CCString::getCString(v5);
v18[0] = 0;
v17 = (char *)CString;
v18[1] = 0;
v19 = nullptr;
v7 = strlen(CString);
std::string::__init(v18, v17, v7);
v8 = (LevelBrowserLayer *)GJSearchObject::create(0, v18);
if ( (v18[0] & 1) != 0 )
{
operator delete(v19);
v9 = (cocos2d::CCDirector *)*(unsigned int *)(*((_QWORD *)this + 70) + 164LL);
if ( (_DWORD)v9 != 2 )
goto LABEL_6;
}
else
{
v9 = (cocos2d::CCDirector *)*(unsigned int *)(*((_QWORD *)this + 70) + 164LL);
if ( (_DWORD)v9 != 2 )
{
LABEL_6:
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);
v12 = (cocos2d::CCTransitionFade *)LevelBrowserLayer::scene(v8, v11);
v14 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v12, 0.5, v13);
cocos2d::CCDirector::pushScene(v10, v14);
return _stack_chk_guard;
}
}
v9 = (cocos2d::CCDirector *)(&dword_0 + 1);
*((_DWORD *)v8 + 108) = 1;
goto LABEL_6;
}
}
return _stack_chk_guard;
}