// // GJMapPack::create from 0x4c3e78 to 0x4c4152 (730 bytes) // // 1 xrefs: // > GameLevelManager::createAndGetMapPacks @ 0x4c4216 // // 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:27 +0000 // int *__fastcall GJMapPack::create(GJMapPack *this, cocos2d::CCDictionary *a2) { cocos2d::CCString *v3; // r0 int v4; // r11 cocos2d::CCString *v5; // r0 const char *CString; // r7 size_t v7; // r0 cocos2d::CCString *v8; // r0 const char *v9; // r8 size_t v10; // r0 cocos2d::CCString *v11; // r0 int v12; // r10 cocos2d::CCString *v13; // r0 cocos2d::CCString *v14; // r0 cocos2d::CCString *v15; // r0 size_t v16; // r0 cocos2d::CCString *v17; // r0 const char *v18; // r8 size_t v19; // r0 GJMapPack *v20; // r0 int *v21; // r5 int v23; // [sp+4h] [bp-C8h] int v24; // [sp+8h] [bp-C4h] const char *v25; // [sp+Ch] [bp-C0h] int v26[3]; // [sp+10h] [bp-BCh] BYREF int v27[3]; // [sp+1Ch] [bp-B0h] BYREF int v28[3]; // [sp+28h] [bp-A4h] BYREF int v29[3]; // [sp+34h] [bp-98h] BYREF int v30[3]; // [sp+40h] [bp-8Ch] BYREF int v31[3]; // [sp+4Ch] [bp-80h] BYREF int v32[3]; // [sp+58h] [bp-74h] BYREF int v33[3]; // [sp+64h] [bp-68h] BYREF int v34[3]; // [sp+70h] [bp-5Ch] BYREF int v35[3]; // [sp+7Ch] [bp-50h] BYREF int v36[3]; // [sp+88h] [bp-44h] BYREF int v37[3]; // [sp+94h] [bp-38h] BYREF int v38[3]; // [sp+A0h] [bp-2Ch] BYREF int v39[3]; // [sp+ACh] [bp-20h] BYREF int v40; // [sp+B8h] [bp-14h] BYREF int v41; // [sp+BCh] [bp-10h] int v42; // [sp+C0h] [bp-Ch] v40 = 0; v41 = 0; v42 = 0; std::string::__init(&v40, a1i2r3e45s789g, 1u); v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v40); v4 = cocos2d::CCString::intValue(v3); std::string::~string((int)&v40); v40 = 0; v41 = 0; v42 = 0; std::string::__init(&v40, &a1i2r3e45s789g[2], 1u); v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v40); CString = (const char *)cocos2d::CCString::getCString(v5); memset(v26, 0, sizeof(v26)); v7 = strlen(CString); std::string::__init(v26, CString, v7); std::string::~string((int)&v40); memset(v28, 0, sizeof(v28)); std::string::__init(v28, &a1i2r3e45s789g[4], 1u); v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v28); v9 = (const char *)cocos2d::CCString::getCString(v8); memset(v27, 0, sizeof(v27)); v10 = strlen(v9); std::string::__init(v27, v9, v10); std::string::~string((int)v28); memset(v29, 0, sizeof(v29)); std::string::__init(v29, &a1i2r3e45s789g[6], 1u); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v29); v12 = cocos2d::CCString::intValue(v11); std::string::~string((int)v29); memset(v30, 0, sizeof(v30)); std::string::__init(v30, &a1i2r3e45s789g[7], 1u); v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v30); v23 = cocos2d::CCString::intValue(v13); std::string::~string((int)v30); memset(v31, 0, sizeof(v31)); std::string::__init(v31, "6", 1u); v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v31); v24 = cocos2d::CCString::intValue(v14); std::string::~string((int)v31); memset(v33, 0, sizeof(v33)); std::string::__init(v33, &a1i2r3e45s789g[9], 1u); v15 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v33); v25 = (const char *)cocos2d::CCString::getCString(v15); memset(v32, 0, sizeof(v32)); v16 = strlen(v25); std::string::__init(v32, v25, v16); std::string::~string((int)v33); memset(v35, 0, sizeof(v35)); std::string::__init(v35, &a1i2r3e45s789g[10], 1u); v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v35); v18 = (const char *)cocos2d::CCString::getCString(v17); memset(v34, 0, sizeof(v34)); v19 = strlen(v18); std::string::__init(v34, v18, v19); v20 = (GJMapPack *)std::string::~string((int)v35); v21 = GJMapPack::create(v20); v21[67] = v4; std::string::basic_string(v36, (int)v26); std::string::operator=((unsigned __int8 *)v21 + 284, (unsigned __int8 *)v36); std::string::~string((int)v36); v21[69] = v12; v21[70] = v23; v21[68] = v24; std::string::basic_string(v37, (int)v27); std::string::operator=((unsigned __int8 *)v21 + 296, (unsigned __int8 *)v37); std::string::~string((int)v37); std::string::basic_string(v38, (int)v27); GJMapPack::parsePackLevels((int)v21, (int)v38); std::string::~string((int)v38); std::string::basic_string(v39, (int)v32); std::string::basic_string(&v40, (int)v34); GJMapPack::parsePackColors((int)v21, (int)v39, (int)&v40); std::string::~string((int)&v40); std::string::~string((int)v39); std::string::~string((int)v34); std::string::~string((int)v32); std::string::~string((int)v27); std::string::~string((int)v26); return v21; }
GD Web Decomp Icon

GD Web Decomp

Raw Source