//
// GJRequestCell::onViewFriendRequest from 0x4264de to 0x42652a (76 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:04 +0000
//
GameLevelManager *__fastcall GJRequestCell::onViewFriendRequest(GameLevelManager *this, cocos2d::CCObject *a2)
{
int v2; // r4
int v3; // r3
GameLevelManager *v4; // r0
bool v5; // r2
FriendRequestPopup *v6; // r5
int v7; // r0
v2 = (int)this;
v3 = *((_DWORD *)this + 105);
if ( v3 )
{
if ( *(int *)(v3 + 296) > 0 )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState(this);
this = (GameLevelManager *)GameLevelManager::friendRequestFromAccountID(
v4,
*(_DWORD *)(*(_DWORD *)(v2 + 420) + 296));
v6 = this;
if ( this )
{
if ( !*(_BYTE *)(v2 + 428) )
GJRequestCell::markAsRead(v2);
v7 = FriendRequestPopup::create(v6, (GJFriendRequest *)*(unsigned __int8 *)(v2 + 428), v5);
return (GameLevelManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 656))(v7);
}
}
}
return this;
}