//
// GameLevelManager::getMapPacks from 0x14014f4f0 to 0x14014f6ff (527 bytes)
//
// 2 xrefs:
// > LevelBrowserLayer::loadPage @ 0x1402cabf3
// > ??> @ 0x1406ca80c
//
// 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
//
// Hidden C++ exception states: #wind=3
void GameLevelManager::getMapPacks(GameLevelManager *a1, GJSearchObject *a2)
{
const char *Key; // rdi
__int64 v5; // rcx
int m_page; // ebx
cocos2d::CCString *v7; // rax
const char *CString; // rax
cocos2d::CCString *v9; // rax
char *v10; // rax
size_t v11; // rbx
size_t v12; // r8
size_t v13; // r8
_QWORD *v14; // rdx
int v15; // [rsp+20h] [rbp-79h]
int v16; // [rsp+28h] [rbp-71h]
__int128 v17; // [rsp+40h] [rbp-59h] BYREF
__int64 v18; // [rsp+50h] [rbp-49h]
__int64 v19; // [rsp+58h] [rbp-41h]
__int128 v20; // [rsp+60h] [rbp-39h] BYREF
__int64 v21; // [rsp+70h] [rbp-29h]
__int64 v22; // [rsp+78h] [rbp-21h]
__int128 v23; // [rsp+80h] [rbp-19h] BYREF
__int64 v24; // [rsp+90h] [rbp-9h]
__int64 v25; // [rsp+98h] [rbp-1h]
__int128 *v26; // [rsp+A0h] [rbp+7h]
__int128 *v27; // [rsp+A8h] [rbp+Fh]
_QWORD Src[4]; // [rsp+B8h] [rbp+1Fh] BYREF
Key = GJSearchObject::getKey(a2);
if ( !GameLevelManager::isDLActive(a1, Key) )
{
GameLevelManager::addDLToActive(a1, Key);
GameLevelManager::getBasePostString(v5, Src);
m_page = a2->m_page;
v16 = 98;
v15 = 103;
v7 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", v15, v16, (const char *)&word_140531E88);
CString = cocos2d::CCString::getCString(v7);
v9 = cocos2d::CCString::createWithFormat("&page=%i&secret=%s", m_page, CString);
v10 = (char *)cocos2d::CCString::getCString(v9);
v11 = -1;
v12 = -1;
do
++v12;
while ( v10[v12] );
sub_140041270(Src, v10, v12);
v26 = &v20;
v27 = &v23;
v20 = 0;
v21 = 0;
v22 = 0;
v13 = -1;
do
++v13;
while ( Key[v13] );
sub_14003A930(&v20, Key, v13);
v14 = Src;
if ( Src[3] > 0xFu )
v14 = (_QWORD *)Src[0];
v23 = 0;
v24 = 0;
v25 = 0;
do
++v11;
while ( *((_BYTE *)v14 + v11) );
sub_14003A930(&v23, v14, v11);
v17 = 0;
*(_QWORD *)&v17 = sub_14003AA10(0x40u);
v18 = 54;
v19 = 63;
strcpy((char *)v17, "https://www.boomlings.com/database/getGJMapPacks21.php");
GameLevelManager::ProcessHttpRequest(a1, (__int64)&v17, (const char *)&v23, (const char *)&v20, 3);
sub_14003A830((__int64)Src);
}
}