//
// GameLevelManager::getNotifications from 0x4b8e78 to 0x4b8fc2 (330 bytes)
//
// 1 xrefs:
// > NotificationsPage::loadPage @ 0x74358a
//
// 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:13 +0000
//
int __fastcall GameLevelManager::getNotifications(GameLevelManager *this, const char *a2, int a3)
{
const char *v3; // r11
cocos2d::CCString *v7; // r0
const char *CString; // r10
int v9; // r2
int v10; // r3
int v11; // r4
cocos2d::CCString *v12; // r0
int v13; // r0
cocos2d::CCString *v14; // r0
char *v15; // r0
size_t v16; // r0
size_t v17; // r0
char *v19[3]; // [sp+14h] [bp-38h] BYREF
int v20[3]; // [sp+20h] [bp-2Ch] BYREF
int v21[3]; // [sp+2Ch] [bp-20h] BYREF
int v22[3]; // [sp+38h] [bp-14h] BYREF
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"notifications_%i", a2);
CString = (const char *)cocos2d::CCString::getCString(v7);
if ( GameLevelManager::isDLActive(this, CString) )
return 0;
GameLevelManager::addDLToActive(this, CString, v9, v10);
GameLevelManager::getBasePostString((GameLevelManager *)v19);
v11 = GameLevelManager::notificationMask(this);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&a1i2r3e45s789g[9]);
v13 = cocos2d::CCString::getCString(v12);
v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&page=%i&total=%i&mask=%i&secret=%s",
a2,
a3,
v11,
v13);
v15 = (char *)cocos2d::CCString::getCString(v14);
std::string::append(v19, v15);
memset(v20, 0, sizeof(v20));
std::string::__init(v20, "https://www.boomlings.com/database/getGJNotifications.php", 0x39u);
v21[0] = 0;
v21[1] = 0;
if ( ((int)v19[0] & 1) == 0 )
v3 = (char *)v19 + 1;
v21[2] = 0;
if ( ((int)v19[0] & 1) != 0 )
v3 = v19[2];
v16 = strlen(v3);
std::string::__init(v21, v3, v16);
memset(v22, 0, sizeof(v22));
v17 = strlen(CString);
std::string::__init(v22, CString, v17);
GameLevelManager::ProcessHttpRequest(this, v20, (int)v21, (int)v22, 109);
std::string::~string((int)v22);
std::string::~string((int)v21);
std::string::~string((int)v20);
std::string::~string((int)v19);
return 1;
}