//
// GameLevelManager::getFriendRequests from 0x3d28d8 to 0x3d29ee (278 bytes)
//
// 1 xrefs:
// > FRequestProfilePage::loadPage @ 0x4c2732
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameLevelManager::getFriendRequests(GameLevelManager *a1, bool a2, int a3, int a4)
{
_BOOL4 v6; // r5
char *FriendRequestKey; // r10
cocos2d::CCString *v9; // r0
const char *CString; // r0
cocos2d::CCString *v11; // r0
char *v12; // r0
char *v13; // [sp+1Ch] [bp-14h] BYREF
char *v14; // [sp+20h] [bp-10h] BYREF
const char *v15; // [sp+24h] [bp-Ch] BYREF
char *v16; // [sp+28h] [bp-8h] BYREF
v6 = a2;
FriendRequestKey = (char *)GameLevelManager::getFriendRequestKey(a1, a2, a3);
if ( !GameLevelManager::isDLActive(a1, FriendRequestKey) )
{
GameLevelManager::addDLToActive(a1, FriendRequestKey);
GameLevelManager::getBasePostString((GameLevelManager *)&v13);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&aO1i2r3e45s7t89[10]);
CString = cocos2d::CCString::getCString(v9);
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&page=%i&total=%i&secret=%s",
(const char *)a3,
a4,
CString);
v12 = (char *)cocos2d::CCString::getCString(v11);
sub_774544((int)&v13, v12);
if ( v6 )
sub_774544((int)&v13, "&getSent=1");
sub_776584((int)&v14, "https://www.boomlings.com/database/getGJFriendRequests20.php");
sub_776584((int)&v15, v13);
sub_776584((int)&v16, FriendRequestKey);
GameLevelManager::ProcessHttpRequest(a1, &v14, &v15, &v16, 28);
sub_774008(&v16);
sub_774008(&v15);
sub_774008(&v14);
sub_774008(&v13);
}
}