//
// GameLevelManager::getFriendRequestKey from 0x802d84 to 0x802e0c (136 bytes)
//
// 5 xrefs:
// > GameLevelManager::invalidateRequests @ 0x80a0d0
// > GameLevelManager::friendRequestWasRemoved @ 0x80a2f4
// > GameLevelManager::getFriendRequests @ 0x828f9c
// > FRequestProfilePage::loadPage @ 0xa4dd44
// > ??> @ 0x561b8
//
// 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:54:44 +0000
//
__int64 __fastcall GameLevelManager::getFriendRequestKey(
__int64 a1,
unsigned __int8 a2,
unsigned int a3,
unsigned __int8 *a4,
char a5)
{
unsigned int v5; // w5
int v6; // w0
const char *v7; // x1
unsigned __int8 *v8; // x4
cocos2d::CCString *v9; // x0
v5 = a2;
if ( !a5 )
{
v6 = *a4;
v7 = "fReq";
if ( (v6 & 1) != 0 )
goto LABEL_3;
LABEL_8:
v8 = a4 + 1;
if ( v6 >> 1 )
goto LABEL_5;
LABEL_9:
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_%i_%i", v7, v5, a3);
return cocos2d::CCString::getCString(v9);
}
v6 = *a4;
v7 = "fReqI";
if ( (v6 & 1) == 0 )
goto LABEL_8;
LABEL_3:
if ( !*((_QWORD *)a4 + 1) )
goto LABEL_9;
v8 = *((unsigned __int8 **)a4 + 2);
LABEL_5:
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%sS_%i_%i_%s", v7, v5, a3, v8);
return cocos2d::CCString::getCString(v9);
}