// // cocos2d::CCTMXMapInfo::startElement from 0x5f9088 to 0x5f9e86 (3582 bytes) // // 1 xrefs: // > `non-virtual thunk to'cocos2d::CCTMXMapInfo::startElement @ 0x5f9efc // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCTMXMapInfo::startElement(cocos2d::CCTMXMapInfo *a1, void *a2, const char *a3, const char **a4) { int v6; // r10 int v7; // r2 int v8; // r3 char *v9; // r0 int v10; // r2 int v11; // r3 char *v12; // r0 cocos2d::CCTMXMapInfo_vtbl *v13; // r3 int v14; // r2 int v15; // r3 const char *v16; // r0 float v17; // s15 int v18; // r2 int v19; // r3 const char *v20; // r0 float v21; // s15 int v22; // r2 int v23; // r3 const char *v24; // r0 float v25; // s15 int v26; // r2 int v27; // r3 const char *v28; // r0 float v29; // s15 void **v30; // r0 int v32; // r2 int v33; // r3 const char **v34; // r6 char *v35; // r0 int v36; // r0 float *v37; // r0 cocos2d::CCFileUtils *v38; // r0 int v39; // r2 int v40; // r3 const char *v41; // r0 int v42; // r0 const char *v43; // r1 cocos2d::CCString *v44; // r7 int v45; // r2 int v46; // r3 char *v47; // r0 int v48; // r2 int m_nTag; // r3 const char *v50; // r0 const char *v51; // r0 int v52; // r2 int v53; // r3 const char *v54; // r0 int v55; // r2 int v56; // r3 const char *v57; // r0 float v58; // s15 int v59; // r2 int v60; // r3 const char *v61; // r0 float v62; // s15 cocos2d::CCArray *v63; // r0 cocos2d::CCObject *v64; // r2 cocos2d::CCArray *v65; // r0 unsigned int Object; // r5 cocos2d::CCDictionary *v67; // r6 int v68; // r5 int v69; // r2 int v70; // r3 const char *v71; // r0 cocos2d::CCDictionary *TileProperties; // r0 int v73; // r3 int v74; // r6 int v75; // r2 int v76; // r3 char *v77; // r0 int v78; // r2 int v79; // r3 const char *v80; // r0 float v81; // s15 int v82; // r2 int v83; // r3 const char *v84; // r0 float v85; // s15 int v86; // r2 int v87; // r3 char *v88; // r0 int v89; // r2 int v90; // r3 char *v91; // r0 int v92; // r2 int v93; // r3 const char *v94; // r0 double v95; // d8 int v96; // r2 int v97; // r3 const char *v98; // r0 float v99; // s15 float v100; // s14 int v101; // r2 bool v102; // r3 cocos2d::CCArray *v103; // r0 cocos2d::CCObject *v104; // r2 int v105; // r6 int v106; // r2 int v107; // r3 char *v108; // r0 int v109; // r2 int v110; // r3 const char *v111; // r0 float v112; // s15 int v113; // r2 int v114; // r3 const char *v115; // r0 float v116; // s15 int v117; // r2 bool v118; // r3 cocos2d::CCArray *v119; // r0 cocos2d::CCObject *v120; // r2 char *v121; // r11 cocos2d::CCArray *v122; // r0 int v123; // r2 int v124; // r3 char *v125; // r0 int v126; // r0 float *v127; // r0 int v128; // r2 int v129; // r3 int v130; // r7 char *v131; // r0 int v132; // r2 int v133; // r3 char *v134; // r0 int v135; // r3 cocos2d::CCArray *v136; // r0 float *v137; // r8 cocos2d::CCDictionary *v138; // r6 char *v139; // r2 char *v140; // r3 cocos2d::CCString *v141; // r11 int v142; // r3 const char *v143; // r0 int v144; // r2 int v145; // r3 int v146; // r0 cocos2d::CCString *v147; // r7 const char *v148; // r0 int v149; // r1 int v150; // r0 int v151; // r3 int v152; // r5 int v153; // r2 const char *v154; // r0 int v155; // r0 cocos2d::CCString *v156; // r5 cocos2d::CCArray *v157; // r0 cocos2d::CCObject *v158; // r2 int v159; // r2 int m_uUnknown; // r3 char *v161; // r6 cocos2d::CCString *v162; // r0 char *v163; // r1 int v164; // r2 int v165; // r3 char *v166; // r0 cocos2d::CCDictionary *v167; // r4 cocos2d::CCArray *v168; // r0 unsigned int v169; // r7 int v170; // r2 int v171; // r3 char *v172; // r4 cocos2d::CCString *v173; // r6 int v174; // r2 int v175; // r3 char *v176; // r0 int v177; // r7 cocos2d::CCArray *v178; // r0 unsigned int v179; // r4 int v180; // r2 int v181; // r3 char *v182; // r6 cocos2d::CCString *v183; // r5 int v184; // r2 int v185; // r3 char *v186; // r7 int v187; // r6 cocos2d::CCArray *v188; // r0 unsigned int v189; // r0 cocos2d::CCArray *v190; // r0 int v191; // r2 int v192; // r3 int v193; // r2 int v194; // r3 cocos2d::CCDictionary *v195; // r0 int v196; // r2 int v197; // r3 char *v198; // r4 float *v199; // r7 cocos2d::CCArray *v200; // r0 int v201; // r2 int v202; // r3 char *v203; // r5 cocos2d::CCArray *v204; // r6 _DWORD *v205; // r0 cocos2d::CCDictionary *v206; // r5 _DWORD *v207; // r0 int v208; // r0 cocos2d::CCString *v209; // r9 _DWORD *v210; // r0 cocos2d::CCObject *v211; // r2 int v212; // r0 cocos2d::CCString *v213; // r8 int v214; // [sp+0h] [bp-1E4h] unsigned int v215; // [sp+4h] [bp-1E0h] char *v216; // [sp+8h] [bp-1DCh] char *v217; // [sp+8h] [bp-1DCh] char *v218; // [sp+8h] [bp-1DCh] char *v219; // [sp+8h] [bp-1DCh] char *format; // [sp+10h] [bp-1D4h] _BYTE v221[4]; // [sp+28h] [bp-1BCh] BYREF void *v222; // [sp+2Ch] [bp-1B8h] BYREF const char *v223; // [sp+30h] [bp-1B4h] BYREF cocos2d::CCSize v224; // [sp+34h] [bp-1B0h] BYREF cocos2d::CCPoint v225; // [sp+3Ch] [bp-1A8h] BYREF _BYTE v226[188]; // [sp+44h] [bp-1A0h] BYREF _DWORD v227[47]; // [sp+100h] [bp-E4h] BYREF char s[32]; // [sp+1BCh] [bp-28h] BYREF sub_776584((int)v221, (char *)a3); v6 = operator new(0x18u); v214 = v6 + 4; memset((void *)(v6 + 4), 0, 0x10u); *(_DWORD *)(v6 + 20) = 0; *(_DWORD *)(v6 + 12) = v6 + 4; *(_DWORD *)(v6 + 16) = v6 + 4; if ( a4 && *a4 ) { while ( *a4 ) { sub_776584((int)&v222, (char *)*a4); sub_776584((int)&v223, (char *)a4[1]); a4 += 2; sub_775C20(&v224); sub_775C20(&v224.height); std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_insert_unique>( (int)&v225, (_DWORD *)v6, &v224); sub_774008(&v224.height); sub_774008(&v224); sub_774008(&v223); sub_774008(&v222); } } if ( std::operator==((int)v221, "map") ) { v9 = (char *)sub_5F8A78("version", v6, v7, v8); sub_776584((int)&v223, v9); std::operator==((int)&v223, "1.0"); v12 = (char *)sub_5F8A78("orientation", v6, v10, v11); sub_776584((int)&v224, v12); if ( std::operator==((int)&v224, "orthogonal") ) { v13 = nullptr; } else if ( std::operator==((int)&v224, "isometric") ) { v13 = (cocos2d::CCTMXMapInfo_vtbl *)(&dword_0 + 2); } else { if ( !std::operator==((int)&v224, "hexagonal") ) { LABEL_14: cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v225); v16 = (const char *)sub_5F8A78("width", v6, v14, v15); v17 = atof(v16); v225.x = v17; v20 = (const char *)sub_5F8A78("height", v6, v18, v19); v21 = atof(v20); v225.y = v21; cocos2d::CCSize::operator=((cocos2d::CCSize *)&a1[1].m_uID, &v225.x); v24 = (const char *)sub_5F8A78("tilewidth", v6, v22, v23); v25 = atof(v24); v225.x = v25; v28 = (const char *)sub_5F8A78("tileheight", v6, v26, v27); v29 = atof(v28); v225.y = v29; cocos2d::CCSize::operator=((cocos2d::CCSize *)&a1[1].m_nTag, &v225.x); a1[1].m_uUnknown = 1; sub_774008(&v224); v30 = (void **)&v223; LABEL_27: sub_774008(v30); goto LABEL_89; } v13 = (cocos2d::CCTMXMapInfo_vtbl *)(&dword_0 + 1); } a1[1].cocos2d::CCObject::cocos2d::CCCopying::__vftable = v13; goto LABEL_14; } if ( std::operator==((int)v221, "tileset") ) { v34 = &v223; v35 = (char *)sub_5F8A78("source", v6, v32, v33); sub_776584((int)&v223, v35); if ( !std::operator==((int)&v223, (char *)&unk_939830) ) { v216 = (char *)&a1[1].cocos2d::CCSAXDelegator; if ( sub_774B44((int)&a1[1].cocos2d::CCSAXDelegator, "/") == -1 ) { sub_775C20(&v224); sub_774544((int)&v224, "/"); v37 = (float *)sub_77441C(&v224, &v223); v225.x = *v37; *(_DWORD *)v37 = &unk_ACDDA8; } else { v36 = sub_774B44((int)v216, "/"); sub_776158(&v224, v216, 0, v36 + 1); sub_775C20(&v225); sub_77441C(&v225, &v223); } sub_774794(&v223, &v225); sub_774008(&v225); sub_774008(&v224); v38 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(cocos2d::CCPoint *, cocos2d::CCFileUtils *, const char *, _DWORD))v38->createCCArrayWithContentsOfFile)( &v225, v38, v223, 0); sub_774794(&v223, &v225); sub_774008(&v225); v41 = (const char *)sub_5F8A78("firstgid", v6, v39, v40); v42 = atoi(v41); v43 = v223; a1[2].m_nTag = v42; cocos2d::CCTMXMapInfo::parseXMLFile(a1, v43); goto LABEL_26; } v44 = (cocos2d::CCString *)operator new(0x58u); cocos2d::CCTMXTilesetInfo::CCTMXTilesetInfo((cocos2d::CCTMXTilesetInfo *)v44); v47 = (char *)sub_5F8A78("name", v6, v45, v46); sub_7753D4((int)&v44->m_sString, v47); m_nTag = a1[2].m_nTag; if ( m_nTag ) { v44[1].__vftable = (cocos2d::CCString_vtbl *)m_nTag; a1[2].m_nTag = 0; } else { v50 = (const char *)sub_5F8A78("firstgid", v6, v48, 0); v44[1].__vftable = (cocos2d::CCString_vtbl *)atoi(v50); } v51 = (const char *)sub_5F8A78("spacing", v6, v48, m_nTag); v44[1].m_nTag = atoi(v51); v54 = (const char *)sub_5F8A78("margin", v6, v52, v53); v44[1].m_uReference = atoi(v54); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v225); v57 = (const char *)sub_5F8A78("tilewidth", v6, v55, v56); v58 = atof(v57); v225.x = v58; v61 = (const char *)sub_5F8A78("tileheight", v6, v59, v60); v62 = atof(v61); v225.y = v62; cocos2d::CCSize::operator=((cocos2d::CCSize *)&v44[1].m_uID, &v225.x); v63 = a1->getTilesets(a1); cocos2d::CCArray::addObject(v63, (cocos2d::_ccArray *)v44, v64); goto LABEL_25; } if ( std::operator==((int)v221, "tile") ) { v65 = a1->getTilesets(a1); Object = cocos2d::CCArray::lastObject(v65); v67 = (cocos2d::CCDictionary *)operator new(0x3Cu); cocos2d::CCDictionary::CCDictionary(v67); v68 = *(_DWORD *)(Object + 56); v71 = (const char *)sub_5F8A78("id", v6, v69, v70); a1[1].m_unknown2 = atoi(v71) + v68; TileProperties = cocos2d::CCTMXMapInfo::getTileProperties(a1); cocos2d::CCDictionary::setObject(TileProperties, v67, a1[1].m_unknown2); cocos2d::CCObject::release(v67); v73 = 5; LABEL_37: a1[1].m_uUnknown = v73; goto LABEL_89; } if ( std::operator==((int)v221, "layer") ) { v74 = operator new(0x5Cu); cocos2d::CCTMXLayerInfo::CCTMXLayerInfo((cocos2d::CCTMXLayerInfo *)v74); v77 = (char *)sub_5F8A78("name", v6, v75, v76); sub_7753D4(v74 + 56, v77); cocos2d::CCSize::CCSize(&v224); v80 = (const char *)sub_5F8A78("width", v6, v78, v79); v81 = atof(v80); v224.width = v81; v84 = (const char *)sub_5F8A78("height", v6, v82, v83); v85 = atof(v84); v224.height = v85; cocos2d::CCSize::operator=((cocos2d::CCSize *)(v74 + 60), &v224.width); v88 = (char *)sub_5F8A78("visible", v6, v86, v87); sub_776584((int)&v222, v88); *(_BYTE *)(v74 + 72) = !std::operator==((int)&v222, "0"); v91 = (char *)sub_5F8A78("opacity", v6, v89, v90); sub_776584((int)&v223, v91); if ( std::operator==((int)&v223, (char *)&unk_939830) ) v93 = 255; else v93 = (unsigned int)(atof(v223) * 255.0); *(_BYTE *)(v74 + 73) = v93; v94 = (const char *)sub_5F8A78("x", v6, v92, v93); v95 = atof(v94); v98 = (const char *)sub_5F8A78("y", v6, v96, v97); v99 = atof(v98); v100 = v95; cocos2d::CCPoint::CCPoint(&v225, v100, v99); cocos2d::CCPoint::operator=((cocos2d::CCPoint *)(v74 + 84), &v225.x, v101, v102); v103 = a1->getLayers(a1); cocos2d::CCArray::addObject(v103, (cocos2d::_ccArray *)v74, v104); cocos2d::CCObject::release((cocos2d::CCObject *)v74); a1[1].m_uUnknown = 2; sub_774008(&v223); v30 = &v222; goto LABEL_27; } if ( std::operator==((int)v221, "objectgroup") ) { v105 = operator new(0x48u); cocos2d::CCTMXObjectGroup::CCTMXObjectGroup((cocos2d::CCTMXObjectGroup *)v105); v108 = (char *)sub_5F8A78("name", v6, v106, v107); sub_7753D4(v105 + 68, v108); cocos2d::CCPoint::CCPoint(&v225); v111 = (const char *)sub_5F8A78("x", v6, v109, v110); v112 = atof(v111); v225.x = v112 * *(float *)&a1[1].m_nTag; v115 = (const char *)sub_5F8A78("y", v6, v113, v114); v116 = atof(v115); v225.y = v116 * *(float *)&a1[1].m_uReference; cocos2d::CCPoint::operator=((cocos2d::CCPoint *)(v105 + 52), &v225.x, v117, v118); v119 = a1->getObjectGroups(a1); cocos2d::CCArray::addObject(v119, (cocos2d::_ccArray *)v105, v120); cocos2d::CCObject::release((cocos2d::CCObject *)v105); v73 = 3; goto LABEL_37; } if ( std::operator==((int)v221, "image") ) { v121 = "/"; v122 = a1->getTilesets(a1); v217 = (char *)cocos2d::CCArray::lastObject(v122); v125 = (char *)sub_5F8A78("source", v6, v123, v124); sub_776584((int)&v223, v125); v218 = v217 + 76; if ( sub_774B44((int)&a1[1].cocos2d::CCSAXDelegator, "/") == -1 ) { if ( !a1[2].cocos2d::CCObject::cocos2d::CCCopying::__vftable[-1].startElement ) v121 = (char *)&unk_939830; sub_775C20(&v224); sub_774544((int)&v224, v121); v127 = (float *)sub_77441C(&v224, &v223); v225.x = *v127; *(_DWORD *)v127 = &unk_ACDDA8; } else { v126 = sub_774B44((int)&a1[1].cocos2d::CCSAXDelegator, "/"); sub_776158(&v224, &a1[1].cocos2d::CCSAXDelegator, 0, v126 + 1); sub_775C20(&v225); sub_77441C(&v225, &v223); } sub_774794(v218, &v225); sub_774008(&v225); sub_774008(&v224); v30 = (void **)&v223; goto LABEL_27; } v130 = std::operator==((int)v221, "data"); if ( v130 ) { v34 = (const char **)&v224; v131 = (char *)sub_5F8A78("encoding", v6, v128, v129); sub_776584((int)&v224, v131); v134 = (char *)sub_5F8A78("compression", v6, v132, v133); sub_776584((int)&v225, v134); if ( !std::operator==((int)&v224, "base64") ) { LABEL_55: sub_774008(&v225); goto LABEL_26; } a1[1].m_nZOrder |= 2u; LOBYTE(a1[1].m_uOrderOfArrival) = 1; if ( std::operator==((int)&v225, "gzip") ) { v135 = a1[1].m_nZOrder | 4; } else { if ( !std::operator==((int)&v225, "zlib") ) { LABEL_52: if ( !std::operator==((int)&v225, (char *)&unk_939830) && !std::operator==((int)&v225, "gzip") ) std::operator==((int)&v225, "zlib"); goto LABEL_55; } v135 = a1[1].m_nZOrder | 8; } a1[1].m_nZOrder = v135; goto LABEL_52; } if ( std::operator==((int)v221, "object") ) { memset(s, 0, sizeof(s)); v136 = a1->getObjectGroups(a1); v137 = (float *)cocos2d::CCArray::lastObject(v136); v138 = (cocos2d::CCDictionary *)operator new(0x3Cu); cocos2d::CCDictionary::CCDictionary(v138); v139 = off_ABAE60[0]; v227[0] = off_ABAE58[0]; v227[1] = off_ABAE5C[0]; v227[2] = off_ABAE60[0]; v227[3] = off_ABAE64[0]; v227[4] = off_ABAE68; do { v140 = (char *)v227[v130++]; format = v140; v219 = (char *)sub_5F8A78(v140, v6, (int)v139, (int)v140); v141 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v141, v219); cocos2d::CCObject::autorelease(v141); sub_776584((int)&v225, format); cocos2d::CCDictionary::setObject((int)v138, v141, (const char **)&v225); sub_774008(&v225); } while ( v130 != 5 ); v143 = (const char *)sub_5F8A78("x", v6, (int)v139, v142); if ( v143 ) { v146 = atoi(v143); sprintf(s, "%d", (int)v137[13] + v146); v147 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v147, s); cocos2d::CCObject::autorelease(v147); sub_776584((int)&v225, "x"); cocos2d::CCDictionary::setObject((int)v138, v147, (const char **)&v225); sub_774008(&v225); } v148 = (const char *)sub_5F8A78("y", v6, v144, v145); if ( v148 ) { v150 = atoi(v148); v151 = (int)(float)(*(float *)&a1[1].m_nLuaID * *(float *)&a1[1].m_uReference); v152 = v151 - (v150 + (int)v137[14]); v154 = (const char *)sub_5F8A78("height", v6, v153, v151); v155 = atoi(v154); sprintf(s, "%d", v152 - v155); v156 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v156, s); cocos2d::CCObject::autorelease(v156); sub_776584((int)&v225, "y"); cocos2d::CCDictionary::setObject((int)v138, v156, (const char **)&v225); v149 = (unsigned __int64)sub_774008(&v225) >> 32; } v157 = (cocos2d::CCArray *)(*(int (__fastcall **)(float *, int))(*(_DWORD *)v137 + 48))(v137, v149); cocos2d::CCArray::addObject(v157, (cocos2d::_ccArray *)v138, v158); cocos2d::CCObject::release(v138); v73 = 4; goto LABEL_37; } if ( std::operator==((int)v221, "property") ) { m_uUnknown = a1[1].m_uUnknown; if ( !m_uUnknown ) goto LABEL_89; if ( m_uUnknown != 1 ) { if ( m_uUnknown != 2 ) { if ( m_uUnknown == 3 ) { v178 = a1->getObjectGroups(a1); v179 = cocos2d::CCArray::lastObject(v178); v182 = (char *)sub_5F8A78("value", v6, v180, v181); v183 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v183, v182); v186 = (char *)sub_5F8A78("name", v6, v184, v185); v187 = (*(int (__fastcall **)(unsigned int))(*(_DWORD *)v179 + 40))(v179); } else { if ( m_uUnknown == 4 ) { v188 = a1->getObjectGroups(a1); v189 = cocos2d::CCArray::lastObject(v188); v190 = (cocos2d::CCArray *)(*(int (__fastcall **)(unsigned int))(*(_DWORD *)v189 + 48))(v189); v187 = cocos2d::CCArray::lastObject(v190); v186 = (char *)sub_5F8A78("name", v6, v191, v192); } else { if ( m_uUnknown != 5 ) goto LABEL_89; v195 = cocos2d::CCTMXMapInfo::getTileProperties(a1); v187 = (int)cocos2d::CCDictionary::objectForKey(v195, a1[1].m_unknown2); v186 = (char *)sub_5F8A78("name", v6, v196, v197); } v198 = (char *)sub_5F8A78("value", v6, v193, v194); v183 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v183, v198); } sub_776584((int)&v225, v186); cocos2d::CCDictionary::setObject(v187, v183, (const char **)&v225); sub_774008(&v225); cocos2d::CCObject::release(v183); goto LABEL_89; } v168 = a1->getLayers(a1); v169 = cocos2d::CCArray::lastObject(v168); v172 = (char *)sub_5F8A78("value", v6, v170, v171); v173 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v173, v172); v176 = (char *)sub_5F8A78("name", v6, v174, v175); sub_776584((int)&v224, v176); v177 = (*(int (__fastcall **)(unsigned int))(*(_DWORD *)v169 + 40))(v169); sub_776584((int)&v225, (char *)LODWORD(v224.width)); cocos2d::CCDictionary::setObject(v177, v173, (const char **)&v225); sub_774008(&v225); cocos2d::CCObject::release(v173); v30 = (void **)&v224; goto LABEL_27; } v161 = (char *)sub_5F8A78("value", v6, v159, 1); v162 = (cocos2d::CCString *)operator new(0x38u); v163 = v161; v34 = (const char **)&v224; v44 = v162; cocos2d::CCString::CCString(v162, v163); v166 = (char *)sub_5F8A78("name", v6, v164, v165); sub_776584((int)&v224, v166); v167 = a1->getProperties(a1); sub_776584((int)&v225, (char *)LODWORD(v224.width)); cocos2d::CCDictionary::setObject((int)v167, v44, (const char **)&v225); sub_774008(&v225); LABEL_25: cocos2d::CCObject::release(v44); LABEL_26: v30 = (void **)v34; goto LABEL_27; } if ( std::operator==((int)v221, "polygon") ) { v199 = (float *)cocos2d::CCArray::lastObject((cocos2d::CCArray *)a1[1].m_uIndexInArray); v200 = (cocos2d::CCArray *)(*(int (__fastcall **)(float *))(*(_DWORD *)v199 + 48))(v199); v215 = cocos2d::CCArray::lastObject(v200); v203 = (char *)sub_5F8A78("points", v6, v201, v202); if ( v203 ) { v204 = (cocos2d::CCArray *)operator new(0x38u); cocos2d::CCArray::CCArray(v204); sub_776584((int)&v225, v203); sub_75EA64(v226); sub_774008(&v225); v222 = &unk_ACDDA8; while ( 1 ) { v205 = (_DWORD *)sub_74A2AC(v226, &v222, 32); if ( !sub_744684((char *)v205 + *(_DWORD *)(*v205 - 12)) ) break; sub_75EA64(v227); v223 = (const char *)&unk_ACDDA8; LODWORD(v224.width) = &unk_ACDDA8; memset(s, 0, sizeof(s)); v206 = (cocos2d::CCDictionary *)operator new(0x3Cu); cocos2d::CCDictionary::CCDictionary(v206); v207 = (_DWORD *)sub_74A2AC(v227, &v223, 44); if ( sub_744684((char *)v207 + *(_DWORD *)(*v207 - 12)) ) { v208 = atoi(v223); sprintf(s, "%d", (int)v199[13] + v208); v209 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v209, s); cocos2d::CCObject::autorelease(v209); sub_776584((int)&v225, "x"); cocos2d::CCDictionary::setObject((int)v206, v209, (const char **)&v225); sub_774008(&v225); } v210 = (_DWORD *)sub_74A2AC(v227, &v224, 44); if ( sub_744684((char *)v210 + *(_DWORD *)(*v210 - 12)) ) { v212 = atoi((const char *)LODWORD(v224.width)); sprintf(s, "%d", (int)v199[14] + v212); v213 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v213, s); cocos2d::CCObject::autorelease(v213); sub_776584((int)&v225, "y"); cocos2d::CCDictionary::setObject((int)v206, v213, (const char **)&v225); sub_774008(&v225); } cocos2d::CCArray::addObject(v204, (cocos2d::_ccArray *)v206, v211); cocos2d::CCObject::release(v206); sub_774008(&v224); sub_774008(&v223); sub_75D2A8(v227); } sub_776584((int)&v225, "points"); cocos2d::CCDictionary::setObject(v215, v204, (const char **)&v225); sub_774008(&v225); cocos2d::CCObject::release(v204); sub_774008(&v222); sub_75D2A8(v226); } } else { std::operator==((int)v221, "polyline"); } LABEL_89: std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( v6, *(_DWORD **)(v6 + 8)); *(_DWORD *)(v6 + 8) = 0; *(_DWORD *)(v6 + 12) = v214; *(_DWORD *)(v6 + 16) = v214; *(_DWORD *)(v6 + 20) = 0; std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( v6, nullptr); operator delete((void *)v6); sub_774008(v221); }
GD Web Decomp Icon

GD Web Decomp

Raw Source