//
// GJRequestCell::onViewFriendRequest from 0x7399b0 to 0x739a38 (136 bytes)
//
// 3 xrefs:
// > ??> @ 0x73168
// > GJRequestCell::loadFromScore @ 0x7454a4
// > ??> @ 0x1542e50
//
// 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:40 +0000
//
GameLevelManager *__fastcall GJRequestCell::onViewFriendRequest(GameLevelManager *this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
__int64 v3; // x19
GameLevelManager *v4; // x0
bool v5; // w2
FriendRequestPopup *v6; // x20
__int64 v7; // x0
bool v8; // w2
v2 = *((_QWORD *)this + 69);
if ( v2 )
{
if ( *(int *)(v2 + 376) > 0 )
{
v3 = (__int64)this;
v4 = (GameLevelManager *)GameLevelManager::sharedState(this);
this = (GameLevelManager *)GameLevelManager::friendRequestFromAccountID(
v4,
*(_DWORD *)(*(_QWORD *)(v3 + 552) + 376LL));
v6 = this;
if ( this )
{
if ( *(_BYTE *)(v3 + 568) )
{
v7 = FriendRequestPopup::create(this, (GJFriendRequest *)*(unsigned __int8 *)(v3 + 568), v5);
}
else
{
GJRequestCell::markAsRead(v3);
v7 = FriendRequestPopup::create(v6, (GJFriendRequest *)*(unsigned __int8 *)(v3 + 568), v8);
}
return (GameLevelManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
}
}
return this;
}