// // cocos2d::CCDictMaker::endElement from 0xd75988 to 0xd75f04 (1404 bytes) // // 2 xrefs: // > @ 0x90208 // > @ 0x152d8a8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:08:03 +0000 // __int64 __fastcall cocos2d::CCDictMaker::endElement(cocos2d::CCDictMaker *this, void *a2, char *a3) { __int64 v4; // x0 int v5; // w23 size_t v6; // x0 int v7; // w22 int v8; // w20 __int64 v9; // x4 __int64 v11; // x3 __int64 v12; // x1 __int64 v13; // x2 __int64 v14; // x0 __int64 v15; // x4 cocos2d::CCString *v16; // x20 __int64 v17; // x3 __int64 v18; // x1 __int64 v19; // x2 __int64 v20; // x0 __int64 v21; // x4 const char *v22; // x1 __int64 v23; // x23 size_t v24; // x0 cocos2d::CCObject *v25; // x22 char v26; // w20 const char *v27; // x1 __int64 v28; // x24 size_t v29; // x0 char *v31; // [xsp+48h] [xbp+48h] char *v32; // [xsp+48h] [xbp+48h] __int64 v33; // [xsp+58h] [xbp+58h] BYREF __int64 v34; // [xsp+60h] [xbp+60h] void *v35; // [xsp+68h] [xbp+68h] __int64 v36; // [xsp+70h] [xbp+70h] BYREF __int64 v37; // [xsp+78h] [xbp+78h] void *v38; // [xsp+80h] [xbp+80h] v4 = *((_QWORD *)this + 30); v5 = 2; if ( v4 ) v5 = *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 26) + 8 * ((unsigned __int64)(*((_QWORD *)this + 29) - 1LL + v4) >> 10)) + 4 * ((*((_QWORD *)this + 29) - 1LL + v4) & 0x3FF)); v33 = 0; v34 = 0; v35 = nullptr; v6 = strlen(a3); std::string::__init(&v33, a3, v6); v7 = (unsigned __int8)v33; v8 = v33 & 1; if ( v8 ) { v9 = v34; if ( v34 != 4 ) { if ( v34 != 5 ) goto LABEL_6; goto LABEL_30; } if ( (unsigned int)std::string::compare((__int64)&v33, 0, 0xFFFFFFFFFFFFFFFFLL, "dict", 4u) ) goto LABEL_26; LABEL_18: std::deque::pop_back((_QWORD *)this + 25); v11 = *((_QWORD *)this + 7); v12 = 0; v13 = *((_QWORD *)this + 10) - 1LL; v14 = (v11 - *((_QWORD *)this + 6)) >> 3; *((_QWORD *)this + 10) = v13; if ( v14 ) v12 = (v14 << 9) - 1; v15 = v13; if ( (unsigned __int64)(v12 - (v13 + *((_QWORD *)this + 9))) > 0x3FF ) { operator delete(*(void **)(v11 - 8)); v15 = *((_QWORD *)this + 10); *((_QWORD *)this + 7) -= 8LL; if ( !v15 ) goto LABEL_24; } else if ( !v13 ) { goto LABEL_24; } v8 = v33 & 1; *((_QWORD *)this + 4) = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 6) + 8 * ((unsigned __int64)(*((_QWORD *)this + 9) - 1LL + v15) >> 9)) + 8 * ((*((_QWORD *)this + 9) - 1LL + v15) & 0x1FF)); goto LABEL_9; } LODWORD(v9) = (int)(unsigned __int8)v33 >> 1; if ( (_DWORD)v9 == 4 ) { if ( (unsigned int)std::string::compare((__int64)&v33, 0, 0xFFFFFFFFFFFFFFFFLL, "dict", 4u) ) goto LABEL_26; goto LABEL_18; } if ( (_DWORD)v9 != 5 ) goto LABEL_14; LABEL_30: if ( !(unsigned int)std::string::compare((__int64)&v33, 0, 0xFFFFFFFFFFFFFFFFLL, "array", 5u) ) { std::deque::pop_back((_QWORD *)this + 25); v17 = *((_QWORD *)this + 21); v18 = 0; v19 = *((_QWORD *)this + 24) - 1LL; v20 = (v17 - *((_QWORD *)this + 20)) >> 3; *((_QWORD *)this + 24) = v19; if ( v20 ) v18 = (v20 << 9) - 1; v21 = v19; if ( (unsigned __int64)(v18 - (v19 + *((_QWORD *)this + 23))) > 0x3FF ) { operator delete(*(void **)(v17 - 8)); v21 = *((_QWORD *)this + 24); *((_QWORD *)this + 21) -= 8LL; } if ( v21 ) { v8 = v33 & 1; *((_QWORD *)this + 18) = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 20) + 8 * ((unsigned __int64)(*((_QWORD *)this + 23) - 1LL + v21) >> 9)) + 8 * ((*((_QWORD *)this + 23) - 1LL + v21) & 0x1FF)); goto LABEL_9; } goto LABEL_24; } if ( v8 ) { v9 = v34; if ( v34 != 4 ) goto LABEL_44; } else { LODWORD(v9) = v7 >> 1; if ( v7 >> 1 != 4 ) goto LABEL_39; } LABEL_26: if ( !(unsigned int)std::string::compare((__int64)&v33, 0, 0xFFFFFFFFFFFFFFFFLL, "true", 4u) ) { v16 = (cocos2d::CCString *)operator new(0x50u); cocos2d::CCString::CCString(v16, "1"); if ( v5 == 6 ) { LABEL_42: cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 18), v16); LABEL_29: cocos2d::CCObject::release(v16); v8 = v33 & 1; goto LABEL_9; } LABEL_28: if ( v5 == 2 ) { v22 = (char *)this + 89; v23 = *((_QWORD *)this + 4); if ( (*((_BYTE *)this + 88) & 1) != 0 ) v22 = *((const char **)this + 13); v31 = (char *)v22; v36 = 0; v37 = 0; v38 = nullptr; v24 = strlen(v22); std::string::__init(&v36, v31, v24); cocos2d::CCDictionary::setObject(v23, v16, (__int64)&v36); if ( (v36 & 1) != 0 ) operator delete(v38); } goto LABEL_29; } LODWORD(v9) = v7 >> 1; if ( !v8 ) { LABEL_39: if ( (_DWORD)v9 != 5 ) goto LABEL_14; goto LABEL_40; } v9 = v34; LABEL_44: if ( v9 != 5 ) { LABEL_6: if ( v9 != 6 ) goto LABEL_7; goto LABEL_52; } LABEL_40: if ( !(unsigned int)std::string::compare((__int64)&v33, 0, 0xFFFFFFFFFFFFFFFFLL, "false", 5u) ) { v16 = (cocos2d::CCString *)operator new(0x50u); cocos2d::CCString::CCString(v16, "0"); if ( v5 == 6 ) goto LABEL_42; goto LABEL_28; } LODWORD(v9) = v7 >> 1; if ( v8 ) { v9 = v34; goto LABEL_6; } LABEL_14: if ( (_DWORD)v9 != 6 ) { LABEL_15: if ( (_DWORD)v9 != 7 ) { LABEL_16: v9 = (int)v9; goto LABEL_8; } goto LABEL_57; } LABEL_52: if ( !(unsigned int)std::string::compare((__int64)&v33, 0, 0xFFFFFFFFFFFFFFFFLL, "string", 6u) ) goto LABEL_53; LODWORD(v9) = v7 >> 1; if ( !v8 ) goto LABEL_15; v9 = v34; LABEL_7: if ( v9 == 7 ) { LABEL_57: if ( (unsigned int)std::string::compare((__int64)&v33, 0, 0xFFFFFFFFFFFFFFFFLL, "integer", 7u) ) { LODWORD(v9) = v7 >> 1; if ( v8 ) { v9 = v34; goto LABEL_8; } goto LABEL_16; } LABEL_53: v25 = (cocos2d::CCObject *)operator new(0x50u); cocos2d::CCString::CCString(v25, (_QWORD *)this + 14); if ( v5 == 6 ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 18), v25); } else if ( v5 == 2 ) { v27 = (char *)this + 89; v28 = *((_QWORD *)this + 4); if ( (*((_BYTE *)this + 88) & 1) != 0 ) v27 = *((const char **)this + 13); v32 = (char *)v27; v36 = 0; v37 = 0; v38 = nullptr; v29 = strlen(v27); std::string::__init(&v36, v32, v29); cocos2d::CCDictionary::setObject(v28, v25, (__int64)&v36); if ( (v36 & 1) != 0 ) operator delete(v38); } cocos2d::CCObject::release(v25); if ( (*((_BYTE *)this + 112) & 1) == 0 ) { v26 = v33; *((_BYTE *)this + 113) = 0; *((_BYTE *)this + 112) = 0; v8 = v26 & 1; goto LABEL_9; } **((_BYTE **)this + 16) = 0; *((_QWORD *)this + 15) = 0; LABEL_24: v8 = v33 & 1; goto LABEL_9; } LABEL_8: if ( v9 == 4 && !(unsigned int)std::string::compare((__int64)&v33, 0, 0xFFFFFFFFFFFFFFFFLL, "real", 4u) ) goto LABEL_53; LABEL_9: *((_DWORD *)this + 34) = 0; if ( v8 ) operator delete(v35); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source