//
// GameLevelManager::readFriendRequest from 0x4ba15c to 0x4ba1c2 (102 bytes)
//
// 1 xrefs:
// > FriendRequestPopup::onClose @ 0x5d36dc
//
// 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:50:14 +0000
//
int __fastcall GameLevelManager::readFriendRequest(int this, const char *a2)
{
GameManager *v2; // r6
cocos2d::CCString *v3; // r0
const char *CString; // r7
size_t v5; // r0
int v6[3]; // [sp+0h] [bp-14h] BYREF
v2 = (GameManager *)this;
if ( (int)a2 > 0 )
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
memset(v6, 0, sizeof(v6));
CString = (const char *)cocos2d::CCString::getCString(v3);
v5 = strlen(CString);
std::string::__init(v6, CString, v5);
GameLevelManager::readFriendRequests(v2, (unsigned __int8 *)v6);
return std::string::~string((int)v6);
}
return this;
}