//
// GJMapPack::parsePackLevels from 0x4c3ca0 to 0x4c3d1c (124 bytes)
//
// 1 xrefs:
// > GJMapPack::create @ 0x4c4096
//
// 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:26 +0000
//
int __fastcall GJMapPack::parsePackLevels(int a1, int a2)
{
cocos2d::CCObject *v3; // r0
bool v5; // nf
size_t v6; // r0
int v8[3]; // [sp+0h] [bp-14h] BYREF
v3 = *(cocos2d::CCObject **)(a1 + 264);
if ( v3 )
cocos2d::CCObject::release(v3);
v5 = (*(_BYTE *)a2 & 1) != 0;
if ( (*(_BYTE *)a2 & 1) == 0 )
++a2;
v8[0] = 0;
if ( v5 )
a2 = *(_DWORD *)(a2 + 8);
v8[1] = 0;
v8[2] = 0;
v6 = strlen((const char *)a2);
std::string::__init(v8, (const void *)a2, v6);
*(_DWORD *)(a1 + 264) = sub_4C1A88(v8, ",");
std::string::~string((int)v8);
return cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 264));
}