// // cocos2d::CCDictMaker::endElement from 0x7e7720 to 0x7e7a88 (872 bytes) // // 0 xrefs: // // 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 12:00:55 +0000 // int __fastcall cocos2d::CCDictMaker::endElement(cocos2d::CCDictMaker *this, void *a2, const char *a3) { int v5; // r3 int v6; // r8 size_t v7; // r0 int v8; // r7 const char *v9; // r9 int v10; // r0 int v11; // r3 int v12; // r1 int v13; // r2 int v14; // r3 int v15; // r2 int v16; // r2 int v17; // r2 int v18; // r3 int v19; // r0 int v20; // r3 int v21; // r1 int v22; // r2 int v23; // r3 int v24; // r2 int v25; // r2 int v26; // r2 int v27; // r3 cocos2d::CCString *v28; // r0 const char *v29; // r1 cocos2d::CCObject *v30; // r7 int v31; // r10 bool v32; // nf size_t v33; // r0 size_t v34; // r7 cocos2d::CCObject *v36; // r7 int v37; // r10 bool v38; // nf size_t v39; // r0 int v40; // [sp+Ch] [bp-1Ch] BYREF size_t v41; // [sp+10h] [bp-18h] int v42; // [sp+14h] [bp-14h] int v43; // [sp+18h] [bp-10h] BYREF int v44; // [sp+1Ch] [bp-Ch] int v45; // [sp+20h] [bp-8h] v5 = *((_DWORD *)this + 30); if ( v5 ) v6 = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 26) + 4 * ((unsigned int)(v5 + *((_DWORD *)this + 29) - 1) >> 10)) + 4 * ((v5 + *((_DWORD *)this + 29) - 1) & 0x3FF)); else v6 = 2; v40 = 0; v41 = 0; v42 = 0; v7 = strlen(a3); std::string::__init(&v40, a3, v7); v8 = (unsigned __int8)v40; v9 = (const char *)(v40 & 1); if ( v9 ) { if ( v41 != 4 ) goto LABEL_18; } else if ( (int)(unsigned __int8)v40 >> 1 != 4 ) { goto LABEL_20; } if ( !std::string::compare((unsigned __int8 *)&v40, 0, 0xFFFFFFFF, "dict", 4u) ) { std::deque::pop_back((_DWORD *)this + 25); v10 = *((_DWORD *)this + 7); v11 = v10 - *((_DWORD *)this + 6); v12 = *((_DWORD *)this + 9); v13 = *((_DWORD *)this + 10) - 1; *((_DWORD *)this + 10) = v13; v14 = v11 >> 2; v15 = v13 + v12; if ( v14 ) v14 = (v14 << 10) - 1; if ( (unsigned int)(v14 - v15) >= 0x800 ) { operator delete(*(void **)(v10 - 4)); v17 = *((_DWORD *)this + 7) - 4; while ( 1 ) { v18 = *((_DWORD *)this + 7); if ( v17 == v18 ) break; *((_DWORD *)this + 7) = v18 - 4; } } v16 = *((_DWORD *)this + 10); if ( v16 ) *((_DWORD *)this + 4) = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 6) + 4 * ((unsigned int)(*((_DWORD *)this + 9) - 1 + v16) >> 10)) + 4 * ((*((_DWORD *)this + 9) - 1 + v16) & 0x3FF)); goto LABEL_66; } if ( v9 ) { LABEL_18: if ( v41 != 5 ) goto LABEL_31; goto LABEL_21; } LABEL_20: if ( v8 >> 1 != 5 ) goto LABEL_33; LABEL_21: if ( !std::string::compare((unsigned __int8 *)&v40, 0, 0xFFFFFFFF, "array", 5u) ) { std::deque::pop_back((_DWORD *)this + 25); v19 = *((_DWORD *)this + 21); v20 = v19 - *((_DWORD *)this + 20); v21 = *((_DWORD *)this + 23); v22 = *((_DWORD *)this + 24) - 1; *((_DWORD *)this + 24) = v22; v23 = v20 >> 2; v24 = v22 + v21; if ( v23 ) v23 = (v23 << 10) - 1; if ( (unsigned int)(v23 - v24) >= 0x800 ) { operator delete(*(void **)(v19 - 4)); v26 = *((_DWORD *)this + 21) - 4; while ( 1 ) { v27 = *((_DWORD *)this + 21); if ( v26 == v27 ) break; *((_DWORD *)this + 21) = v27 - 4; } } v25 = *((_DWORD *)this + 24); if ( v25 ) *((_DWORD *)this + 18) = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 20) + 4 * ((unsigned int)(*((_DWORD *)this + 23) - 1 + v25) >> 10)) + 4 * ((*((_DWORD *)this + 23) - 1 + v25) & 0x3FF)); goto LABEL_66; } if ( !v9 ) { LABEL_33: if ( v8 >> 1 != 4 ) goto LABEL_39; goto LABEL_34; } LABEL_31: if ( v41 != 4 ) goto LABEL_37; LABEL_34: if ( !std::string::compare((unsigned __int8 *)&v40, 0, 0xFFFFFFFF, "true", 4u) ) { v28 = (cocos2d::CCString *)operator new(0x40u); v29 = (const char *)a1i2r3e45s789g; v30 = v28; LABEL_42: cocos2d::CCString::CCString(v28, v29); if ( v6 == 6 ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 18), v30); } else if ( v6 == 2 ) { v31 = *((_DWORD *)this + 4); v32 = (*((_BYTE *)this + 44) & 1) != 0; if ( (*((_BYTE *)this + 44) & 1) == 0 ) v9 = (char *)this + 45; v43 = 0; if ( v32 ) v9 = *((const char **)this + 13); v44 = 0; v45 = 0; v33 = strlen(v9); std::string::__init(&v43, v9, v33); cocos2d::CCDictionary::setObject(v31, v30, (int)&v43); std::string::~string((int)&v43); } cocos2d::CCObject::release(v30); goto LABEL_66; } if ( v9 ) { LABEL_37: if ( v41 != 5 ) goto LABEL_52; goto LABEL_40; } LABEL_39: if ( v8 >> 1 != 5 ) goto LABEL_54; LABEL_40: if ( !std::string::compare((unsigned __int8 *)&v40, 0, 0xFFFFFFFF, "false", 5u) ) { v28 = (cocos2d::CCString *)operator new(0x40u); v29 = "0"; v30 = v28; goto LABEL_42; } if ( !v9 ) { LABEL_54: if ( v8 >> 1 != 6 ) goto LABEL_59; goto LABEL_55; } LABEL_52: if ( v41 != 6 ) { LABEL_57: if ( v41 != 7 ) { LABEL_62: v34 = v41; LABEL_64: if ( v34 != 4 || std::string::compare((unsigned __int8 *)&v40, 0, 0xFFFFFFFF, "real", 4u) ) goto LABEL_66; goto LABEL_67; } goto LABEL_60; } LABEL_55: if ( !std::string::compare((unsigned __int8 *)&v40, 0, 0xFFFFFFFF, "string", 6u) ) goto LABEL_67; if ( v9 ) goto LABEL_57; LABEL_59: if ( v8 >> 1 != 7 ) goto LABEL_63; LABEL_60: if ( std::string::compare((unsigned __int8 *)&v40, 0, 0xFFFFFFFF, "integer", 7u) ) { if ( v9 ) goto LABEL_62; LABEL_63: v34 = v8 >> 1; goto LABEL_64; } LABEL_67: v36 = (cocos2d::CCObject *)operator new(0x40u); cocos2d::CCString::CCString(v36, (int)this + 56); if ( v6 == 6 ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 18), v36); } else if ( v6 == 2 ) { v37 = *((_DWORD *)this + 4); v38 = (*((_BYTE *)this + 44) & 1) != 0; if ( (*((_BYTE *)this + 44) & 1) == 0 ) v9 = (char *)this + 45; v43 = 0; if ( v38 ) v9 = *((const char **)this + 13); v44 = 0; v45 = 0; v39 = strlen(v9); std::string::__init(&v43, v9, v39); cocos2d::CCDictionary::setObject(v37, v36, (int)&v43); std::string::~string((int)&v43); } cocos2d::CCObject::release(v36); if ( (*((_BYTE *)this + 56) & 1) != 0 ) { **((_BYTE **)this + 16) = 0; *((_DWORD *)this + 15) = 0; } else { *((_BYTE *)this + 57) = 0; *((_BYTE *)this + 56) = 0; } LABEL_66: *((_DWORD *)this + 17) = 0; return std::string::~string((int)&v40); }
GD Web Decomp Icon

GD Web Decomp

Raw Source