//
// GameLevelManager::restoreItems from 0x3d4384 to 0x3d447c (248 bytes)
//
// 0 xrefs:
//
// 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::restoreItems(GameLevelManager *a1)
{
const char *v2; // r4
cocos2d::CCString *v3; // r0
const char *CString; // r0
cocos2d::CCString *v5; // r0
char *v6; // r6
const char *v7; // [sp+1Ch] [bp-18h] BYREF
char *v8; // [sp+20h] [bp-14h] BYREF
const char *v9; // [sp+24h] [bp-10h] BYREF
char *v10; // [sp+28h] [bp-Ch] BYREF
if ( !GameLevelManager::isDLActive(a1, "restoreKey") )
{
GameLevelManager::addDLToActive(a1, "restoreKey");
GameManager::sharedState();
sub_775C20(&v7);
v2 = v7;
v3 = (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(v3);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"udid=%s&secret=%s", v2, CString);
v6 = (char *)cocos2d::CCString::getCString(v5);
sub_776584((int)&v8, "https://www.boomlings.com/database/restoreGJItems.php");
sub_776584((int)&v9, v6);
sub_776584((int)&v10, "restoreKey");
GameLevelManager::ProcessHttpRequest(a1, &v8, &v9, &v10, 16);
sub_774008(&v10);
sub_774008(&v9);
sub_774008(&v8);
sub_774008(&v7);
}
}