// // GJMapPack::parsePackColors from 0x4c3d24 to 0x4c3e68 (324 bytes) // // 1 xrefs: // > GJMapPack::create @ 0x4c40be // // 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 // unsigned int __fastcall GJMapPack::parsePackColors(int a1, int a2, int a3) { const char *v3; // r7 bool v6; // nf size_t v7; // r0 cocos2d::CCArray *v8; // r7 bool v9; // nf size_t v10; // r0 cocos2d::CCArray *v11; // r6 cocos2d::CCString *v12; // r0 char v13; // r9 cocos2d::CCString *v14; // r0 char v15; // r5 cocos2d::CCString *v16; // r0 char v17; // r0 unsigned int result; // r0 cocos2d::CCString *v19; // r0 char v20; // r7 cocos2d::CCString *v21; // r0 char v22; // r5 cocos2d::CCString *v23; // r0 int v24; // [sp+0h] [bp-14h] BYREF int v25; // [sp+4h] [bp-10h] int v26; // [sp+8h] [bp-Ch] v6 = (*(_BYTE *)a2 & 1) != 0; if ( (*(_BYTE *)a2 & 1) == 0 ) v3 = (const char *)(a2 + 1); v24 = 0; if ( v6 ) v3 = *(const char **)(a2 + 8); v25 = 0; v26 = 0; v7 = strlen(v3); std::string::__init(&v24, v3, v7); v8 = sub_4C1A88(&v24, ","); std::string::~string((int)&v24); v9 = (*(_BYTE *)a3 & 1) != 0; if ( (*(_BYTE *)a3 & 1) == 0 ) ++a3; v24 = 0; if ( v9 ) a3 = *(_DWORD *)(a3 + 8); v25 = 0; v26 = 0; v10 = strlen((const char *)a3); std::string::__init(&v24, (const void *)a3, v10); v11 = sub_4C1A88(&v24, ","); std::string::~string((int)&v24); *(_WORD *)(a1 + 308) = -1; *(_WORD *)(a1 + 311) = -1; *(_BYTE *)(a1 + 310) = -1; *(_BYTE *)(a1 + 313) = -1; if ( cocos2d::CCArray::count(v8) > 2u ) { v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v8, 0); v13 = cocos2d::CCString::intValue(v12); v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v8, 1u); v15 = cocos2d::CCString::intValue(v14); v16 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v8, 2u); v17 = cocos2d::CCString::intValue(v16); *(_BYTE *)(a1 + 308) = v13; *(_BYTE *)(a1 + 309) = v15; *(_BYTE *)(a1 + 310) = v17; } result = cocos2d::CCArray::count(v11); if ( result > 2 ) { v19 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 0); v20 = cocos2d::CCString::intValue(v19); v21 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 1u); v22 = cocos2d::CCString::intValue(v21); v23 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 2u); result = cocos2d::CCString::intValue(v23); *(_BYTE *)(a1 + 311) = v20; *(_BYTE *)(a1 + 312) = v22; *(_BYTE *)(a1 + 313) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source