// // EditorUI::updateObjectInfoLabel from 0x6ba998 to 0x6bbe14 (5244 bytes) // // 15 xrefs: // > EditorUI::toggleObjectInfoLabel @ 0x6bbe6c // > EditorUI::deselectAll @ 0x6be2f8 // > EditorUI::updateSpecialUIElements @ 0x6c0a30 // > EditorUI::selectAll @ 0x6c31e4 // > EditorUI::selectAllWithDirection @ 0x6c3324 // > EditorUI::onPasteState @ 0x6c33b8 // > EditorUI::onPasteColor @ 0x6c340c // > EditorUI::assignNewGroups @ 0x6c357c // > EditorUI::onAssignNewGroupID @ 0x6c3744 // > EditorUI::doPasteObjects @ 0x6c3958 // > EditorUI::doPasteInPlace @ 0x6c3aa0 // > EditorUI::onDuplicate @ 0x6c4ec4 // > CustomizeObjectLayer::onClose @ 0x83faf4 // > SetGroupIDLayer::onClose @ 0x9748f0 // > @ 0xac068 // // 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 EditorUI::updateObjectInfoLabel(EditorUI *a1) { GameManager *v1; // x0 cocos2d::CCArray *m_selectedObjects; // x0 unsigned int v3; // w21 GameObject *v4; // x0 GameObject *v5; // x19 GJSpriteColor *RelativeSpriteColor; // x0 unsigned int m_colorID; // w1 int m_defaultColorID; // w0 unsigned int v9; // w0 GJSpriteColor *v10; // x0 unsigned int v11; // w1 int v12; // w0 unsigned int v13; // w0 int m_editorLayer; // w0 int m_editorLayer2; // w0 GameObject *m_selectedObject; // x0 GJSpriteColor *v17; // x0 unsigned int v18; // w1 int v19; // w0 GJSpriteColor *v20; // x0 unsigned int v21; // w1 int v22; // w0 GameObject *v23; // x0 cocos2d::CCObject *v24; // x1 cocos2d::CCArray *v25; // x0 cocos2d::ccArray *data; // x1 cocos2d::CCObject *v27; // x21 int v28; // w23 int i; // w20 int GroupID; // w0 __int64 v31; // x1 int *v32; // x19 __int64 v33; // x0 int v34; // w26 int *v35; // x27 int *v36; // x28 int v37; // w4 _DWORD *v38; // x5 __int64 v39; // x0 __int64 v40; // x1 int v41; // w2 _BOOL8 v42; // x0 int *v43; // x2 int v44; // w1 cocos2d::CCObject **v45; // x0 int v46; // w1 const char *v47; // x0 const char *v48; // x21 int v49; // w0 const char *CString; // x0 char *v51; // x22 __int32 v52; // w0 const char *v53; // x28 const char *v54; // x0 cocos2d::CCString *v55; // x0 cocos2d::CCString *v56; // x0 size_t v57; // x0 int *v58; // x23 unsigned int v59; // w22 cocos2d::CCArray *v60; // x0 unsigned int v61; // w21 _BOOL4 j; // w21 __int64 v63; // x0 int *v64; // x2 char *v65; // x1 cocos2d::CCString *v66; // x0 size_t v67; // x0 void *v68; // x0 GameManager *v69; // x0 __int64 insert_unique_pos; // x0 int *v71; // x1 __int64 v72; // x5 int m_uIndexInArray; // w21 __int64 v74; // x0 int *v75; // x19 __int64 v76; // x20 int *v77; // x1 int v78; // w26 __int64 v79; // x2 _BOOL8 v80; // x0 void *v81; // x0 cocos2d::CCString *v82; // x0 size_t v83; // x0 cocos2d::CCString *v84; // x0 size_t v85; // x0 GameObject *v86; // x21 cocos2d::CCString *v87; // x0 size_t v88; // x0 char *v89; // x0 unsigned __int8 *v90; // x0 __int64 v91; // x19 void *v92; // x0 __int64 v93; // x19 void *v94; // x0 __int64 v95; // x19 void *v96; // x0 void *v97; // x0 unsigned int *v98; // x2 int v99; // w1 float x; // s10 float y; // s9 const cocos2d::CCPoint *p_size; // x21 double v103; // d8 const char *v104; // x1 cocos2d::CCString *v105; // x0 size_t v106; // x0 cocos2d::CCString *v107; // x0 const char *v108; // x1 size_t v109; // x0 GameObject *v110; // x0 cocos2d::CCString *v111; // x0 size_t v112; // x0 int *v113; // x21 int v114; // w23 unsigned int v115; // w28 unsigned int v116; // w22 _BOOL4 v117; // w22 size_t v118; // x0 void *v119; // x0 unsigned int *v120; // x3 int v121; // w1 cocos2d::CCString *v122; // x0 size_t v123; // x0 cocos2d::CCString *v124; // x0 size_t v125; // x0 unsigned int *v126; // x3 int v127; // w1 unsigned int *v128; // x3 int v129; // w1 __int64 v130; // x1 void *v131; // x0 unsigned int *v132; // x3 int v133; // w1 unsigned int *v134; // x3 int v135; // w1 cocos2d::CCString *v136; // x0 cocos2d::CCString *v137; // x0 cocos2d::CCObject **v138; // [xsp+90h] [xbp+90h] cocos2d::CCObject **arr; // [xsp+98h] [xbp+98h] cocos2d::CCArray *v140; // [xsp+A8h] [xbp+A8h] int v141; // [xsp+B0h] [xbp+B0h] unsigned int v142; // [xsp+B4h] [xbp+B4h] unsigned int ObjectZOrder; // [xsp+B8h] [xbp+B8h] char *v144; // [xsp+B8h] [xbp+B8h] ZLayer ObjectZLayer; // [xsp+C0h] [xbp+C0h] const char *v146; // [xsp+C8h] [xbp+C8h] int v147; // [xsp+C8h] [xbp+C8h] unsigned int v148; // [xsp+D0h] [xbp+D0h] char *v149; // [xsp+D0h] [xbp+D0h] unsigned int v151; // [xsp+E0h] [xbp+E0h] unsigned int v152; // [xsp+E8h] [xbp+E8h] const char *v153; // [xsp+E8h] [xbp+E8h] int v154; // [xsp+E8h] [xbp+E8h] const char *v155; // [xsp+E8h] [xbp+E8h] const char *v156; // [xsp+E8h] [xbp+E8h] const char *v157; // [xsp+E8h] [xbp+E8h] const char *v158; // [xsp+E8h] [xbp+E8h] GJSpecialColorSelect *v159; // [xsp+E8h] [xbp+E8h] const char *v160; // [xsp+E8h] [xbp+E8h] const char *v161; // [xsp+E8h] [xbp+E8h] const char *v162; // [xsp+E8h] [xbp+E8h] __int64 v163; // [xsp+F0h] [xbp+F0h] BYREF const unsigned __int8 *v164; // [xsp+F8h] [xbp+F8h] BYREF char *v165; // [xsp+100h] [xbp+100h] BYREF cocos2d::CCPoint v166; // [xsp+108h] [xbp+108h] BYREF int v167[2]; // [xsp+110h] [xbp+110h] BYREF char v168[8]; // [xsp+118h] [xbp+118h] BYREF int v169; // [xsp+120h] [xbp+120h] BYREF __int64 v170; // [xsp+128h] [xbp+128h] int *v171; // [xsp+130h] [xbp+130h] int *v172; // [xsp+138h] [xbp+138h] unsigned __int64 v173; // [xsp+140h] [xbp+140h] __int64 v174; // [xsp+148h] [xbp+148h] BYREF int v175; // [xsp+150h] [xbp+150h] BYREF __int64 v176; // [xsp+158h] [xbp+158h] int *v177; // [xsp+160h] [xbp+160h] int *v178; // [xsp+168h] [xbp+168h] __int64 v179; // [xsp+170h] [xbp+170h] char v180[8]; // [xsp+178h] [xbp+178h] BYREF int v181; // [xsp+180h] [xbp+180h] BYREF __int64 v182; // [xsp+188h] [xbp+188h] int *v183; // [xsp+190h] [xbp+190h] int *v184; // [xsp+198h] [xbp+198h] unsigned __int64 v185; // [xsp+1A0h] [xbp+1A0h] v1 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v1, "0041") ) return; sub_D153B8((int)&v163, &byte_F288A0); m_selectedObjects = a1->m_selectedObjects; if ( m_selectedObjects && (unsigned int)cocos2d::CCArray::count(m_selectedObjects) ) { v141 = cocos2d::CCArray::count(a1->m_selectedObjects); v151 = -2; v3 = 0; v142 = -1; v148 = -1; ObjectZOrder = -1; ObjectZLayer = B3; v152 = -2; while ( 1 ) { if ( v3 >= (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) ) goto LABEL_56; v4 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v3); v5 = v4; if ( v152 == -10001 ) goto LABEL_13; RelativeSpriteColor = GameObject::getRelativeSpriteColor(v4, 1); if ( !RelativeSpriteColor ) goto LABEL_14; m_colorID = RelativeSpriteColor->m_colorID; m_defaultColorID = RelativeSpriteColor->m_defaultColorID; if ( m_colorID == m_defaultColorID || !m_colorID ) { m_colorID = m_defaultColorID; v9 = v152; if ( v152 != -2 ) { LABEL_12: if ( v9 == m_colorID ) goto LABEL_14; LABEL_13: v152 = -10001; goto LABEL_14; } } else { v9 = v152; if ( v152 != -2 ) goto LABEL_12; } v152 = m_colorID; LABEL_14: if ( v151 == -10001 ) goto LABEL_20; v10 = GameObject::getRelativeSpriteColor(v5, 2); if ( !v10 ) goto LABEL_21; v11 = v10->m_colorID; v12 = v10->m_defaultColorID; if ( v11 == v12 || !v11 ) { v11 = v12; v13 = v151; if ( v151 != -2 ) { LABEL_19: if ( v13 == v11 ) goto LABEL_21; LABEL_20: v151 = -10001; goto LABEL_21; } } else { v13 = v151; if ( v151 != -2 ) goto LABEL_19; } v151 = v11; LABEL_21: if ( ObjectZLayer == -10001 ) goto LABEL_24; if ( ObjectZLayer != B3 ) { if ( ObjectZLayer == GameObject::getObjectZLayer(v5) ) goto LABEL_25; LABEL_24: ObjectZLayer = -10001; goto LABEL_25; } ObjectZLayer = GameObject::getObjectZLayer(v5); LABEL_25: if ( ObjectZOrder == -10001 ) goto LABEL_28; if ( ObjectZOrder != -1 ) { if ( ObjectZOrder == GameObject::getObjectZOrder(v5) ) goto LABEL_29; LABEL_28: ObjectZOrder = -10001; goto LABEL_29; } ObjectZOrder = GameObject::getObjectZOrder(v5); LABEL_29: if ( v148 != -10001 ) { m_editorLayer = v5->m_editorLayer; if ( v148 != -1 ) { if ( v148 == m_editorLayer ) m_editorLayer = v148; else m_editorLayer = -10001; } v148 = m_editorLayer; } if ( v142 != -10001 ) { m_editorLayer2 = v5->m_editorLayer2; if ( v142 != -1 ) { if ( v142 == m_editorLayer2 ) m_editorLayer2 = v142; else m_editorLayer2 = -10001; } v142 = m_editorLayer2; } ++v3; } } m_selectedObject = a1->m_selectedObject; if ( m_selectedObject ) { v17 = GameObject::getRelativeSpriteColor(m_selectedObject, 1); if ( v17 ) { v18 = v17->m_colorID; v19 = v17->m_defaultColorID; v152 = v18; if ( v18 != v19 && v18 ) { LABEL_52: v20 = GameObject::getRelativeSpriteColor(a1->m_selectedObject, 2); if ( v20 ) { v21 = v20->m_colorID; v22 = v20->m_defaultColorID; v151 = v21; if ( v21 != v22 && v21 ) goto LABEL_55; } else { v22 = -2; } v151 = v22; LABEL_55: ObjectZLayer = GameObject::getObjectZLayer(a1->m_selectedObject); ObjectZOrder = GameObject::getObjectZOrder(a1->m_selectedObject); v23 = a1->m_selectedObject; v141 = 0; v148 = v23->m_editorLayer; v142 = v23->m_editorLayer2; LABEL_56: v24 = (cocos2d::CCObject *)&v181; v25 = a1->m_selectedObjects; v169 = 0; v170 = 0; v173 = 0; v171 = &v169; v172 = &v169; v175 = 0; v176 = 0; v179 = 0; v177 = &v175; v178 = &v175; v181 = 0; v182 = 0; v185 = 0; v183 = &v181; v184 = &v181; if ( v25 && (unsigned int)cocos2d::CCArray::count(v25) ) { v140 = a1->m_selectedObjects; } else { v110 = a1->m_selectedObject; if ( !v110 ) goto LABEL_224; v140 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)v110, v24); } if ( v140 ) { data = v140->data; if ( data->num && (arr = data->arr, v138 = &arr[data->num - 1], arr <= v138) ) { v27 = *arr; v28 = 0; if ( *arr ) { while ( 1 ) { for ( i = 0; SLOWORD(v27[20].m_uIndexInArray) > i; ++i ) { GroupID = GameObject::getGroupID((GameObject *)v27, i); v31 = v170; v32 = &v169; v167[0] = GroupID; if ( v170 ) { do { while ( GroupID <= *(_DWORD *)(v31 + 32) ) { v32 = (int *)v31; v31 = *(_QWORD *)(v31 + 16); if ( !v31 ) goto LABEL_67; } v31 = *(_QWORD *)(v31 + 24); } while ( v31 ); LABEL_67: if ( v32 != &v169 && GroupID >= v32[8] ) goto LABEL_83; } v33 = operator new(0x28u); v34 = v167[0]; *(_DWORD *)(v33 + 32) = v167[0]; v35 = (int *)v33; *(_DWORD *)(v33 + 36) = 0; v36 = (int *)(v33 + 32); if ( v32 == &v169 ) { if ( v173 ) { v32 = v172; if ( v34 > v172[8] ) { v38 = nullptr; goto LABEL_78; } } } else { v37 = v32[8]; if ( v34 >= v37 ) { if ( v34 <= v37 ) goto LABEL_129; if ( v32 == v172 ) goto LABEL_142; v147 = v32[8]; v72 = sub_CFAB14(v32); if ( v34 < *(_DWORD *)(v72 + 32) ) { v37 = v147; if ( *((_QWORD *)v32 + 3) ) { v32 = (int *)v72; if ( v72 ) { LABEL_136: v42 = 1; goto LABEL_82; } LABEL_79: if ( v32 == &v169 ) goto LABEL_136; v41 = v35[8]; v37 = v32[8]; } else { LABEL_142: v41 = v34; } v42 = v41 < v37; LABEL_82: v43 = v32; v32 = v35; sub_CFAD74(v42, v35, v43, &v169); ++v173; goto LABEL_83; } } else { v38 = v171; if ( v32 == v171 ) goto LABEL_78; v39 = sub_CFABD4(v32); if ( v34 > *(_DWORD *)(v39 + 32) ) { v40 = *(_QWORD *)(v39 + 24); if ( v40 ) v38 = v32; else v38 = nullptr; if ( !v40 ) v32 = (int *)v39; LABEL_78: if ( v38 ) goto LABEL_136; goto LABEL_79; } } } insert_unique_pos = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos( (__int64)v168, v36); v38 = (_DWORD *)insert_unique_pos; v32 = v71; if ( v71 ) goto LABEL_78; v32 = (int *)insert_unique_pos; LABEL_129: operator delete(v35); LABEL_83: v44 = BYTE2(v27[20].m_uIndexInArray); ++v32[9]; if ( v44 ) { v69 = GameManager::sharedState(); if ( v27 == GJBaseGameLayer::getGroupParent(v69->m_levelEditorLayer, v167[0]) ) std::_Rb_tree,std::less,std::allocator>::_M_insert_unique( &v174, v167); } ++v28; } if ( LODWORD(v27[22].__vftable) != 1 ) goto LABEL_86; m_uIndexInArray = v27[29].m_uIndexInArray; if ( m_uIndexInArray <= 0 ) goto LABEL_86; v74 = v182; v75 = &v181; if ( !v182 ) break; do { while ( m_uIndexInArray <= *(_DWORD *)(v74 + 32) ) { v75 = (int *)v74; v74 = *(_QWORD *)(v74 + 16); if ( !v74 ) goto LABEL_155; } v74 = *(_QWORD *)(v74 + 24); } while ( v74 ); LABEL_155: if ( v75 == &v181 || m_uIndexInArray < v75[8] ) break; LABEL_170: ++v75[9]; LABEL_86: v45 = arr + 1; arr = v45; if ( v138 < v45 ) goto LABEL_87; v27 = *v45; if ( !*v45 ) { v46 = v152; if ( v152 == -10001 ) { LABEL_145: v48 = "?"; v51 = "?"; if ( v151 == v152 ) goto LABEL_95; v49 = v151; if ( (v151 & 0x80000000) != 0 ) { LABEL_147: v51 = &byte_F10E40; if ( v152 == -2 ) goto LABEL_148; LABEL_95: if ( v151 != -2 ) goto LABEL_96; LABEL_149: v51 = &byte_F10E40; v52 = ObjectZLayer + 5; goto LABEL_150; } LABEL_92: if ( v49 <= 999 ) { v136 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)v151); CString = cocos2d::CCString::getCString(v136); } else { CString = GJSpecialColorSelect::textForColorIdx(v49); } v51 = (char *)CString; if ( v152 != -2 ) goto LABEL_95; LABEL_148: v48 = &byte_F10E40; if ( v151 == -2 ) goto LABEL_149; LABEL_96: v52 = ObjectZLayer + 5; if ( (unsigned int)(ObjectZLayer + 5) <= 0x10 ) { LABEL_150: switch ( v52 ) { case 0: v53 = "B5"; break; case 2: v53 = "B4"; break; case 4: v53 = "B3"; break; case 6: v53 = "B2"; break; case 8: v53 = "B1"; break; case 10: v53 = "T1"; break; case 12: v53 = "T2"; break; case 14: v53 = "T3"; break; case 16: v53 = "T4"; break; default: goto LABEL_97; } } else { LABEL_97: v53 = "?"; } if ( ObjectZOrder == -10001 ) { v54 = "?"; } else { v107 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)ObjectZOrder); v54 = cocos2d::CCString::getCString(v107); } v146 = v54; if ( v148 != -10001 ) { v55 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)v148); cocos2d::CCString::getCString(v55); } sub_D153B8((int)&v164, &byte_F288A0); if ( v152 == -2 || v151 == -2 ) { sub_D15FD4(&v164, "C: ", 3); if ( v151 == -2 ) v108 = v48; else v108 = v51; v159 = (GJSpecialColorSelect *)v108; v109 = strlen(v108); sub_D15FD4(&v164, v159, v109); sub_D15FD4(&v164, &byte_F1AB78, 1); } else { v56 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"C1: %s\nC2: %s\n", v48, v51); v153 = cocos2d::CCString::getCString(v56); v57 = strlen(v153); sub_D15FD4(&v164, v153, v57); } if ( v28 ) { sub_D15FD4(&v164, "G: ", 3); v58 = v171; v154 = 0; if ( v171 != &v169 ) { v59 = v171[8]; v60 = v140; v61 = v171[9]; if ( !v140 ) goto LABEL_123; LABEL_108: for ( j = v61 >= (unsigned int)cocos2d::CCArray::count(v60); ; j = 0 ) { if ( v154 ) sub_D15FD4(&v164, &byte_F804F8, 1); v63 = v176; v64 = &v175; if ( !v176 ) goto LABEL_223; do { while ( (signed int)v59 <= *(_DWORD *)(v63 + 32) ) { v64 = (int *)v63; v63 = *(_QWORD *)(v63 + 16); if ( !v63 ) goto LABEL_114; } v63 = *(_QWORD *)(v63 + 24); } while ( v63 ); LABEL_114: if ( v64 == &v175 ) { LABEL_223: v65 = &byte_F288A0; } else { v65 = &byte_F288A0; if ( (int)v59 >= v64[8] ) v65 = "*"; } sub_D153B8((int)v167, v65); v66 = (cocos2d::CCString *)(j ? cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%s", (const char *)v59, *(_QWORD *)v167) : cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"(%i%s)", (const char *)v59, *(_QWORD *)v167)); v144 = (char *)cocos2d::CCString::getCString(v66); v67 = strlen(v144); sub_D15FD4(&v164, v144, v67); if ( ++v154 == 5 ) break; v68 = (void *)(*(_QWORD *)v167 - 24LL); if ( (__int64 *)(*(_QWORD *)v167 - 24LL) != &qword_124B6B0 ) { v132 = (unsigned int *)(*(_QWORD *)v167 - 8LL); if ( &pthread_create ) { do v133 = __ldaxr(v132); while ( __stlxr(v133 - 1, v132) ); } else { v133 = *(_DWORD *)(*(_QWORD *)v167 - 8LL); *(_DWORD *)(*(_QWORD *)v167 - 8LL) = v133 - 1; } if ( v133 <= 0 ) operator delete(v68); } v58 = (int *)sub_CFAB14(v58); if ( v58 == &v169 ) goto LABEL_175; v60 = v140; v59 = v58[8]; v61 = v58[9]; if ( v140 ) goto LABEL_108; LABEL_123: ; } v81 = (void *)(*(_QWORD *)v167 - 24LL); if ( (__int64 *)(*(_QWORD *)v167 - 24LL) != &qword_124B6B0 ) { v134 = (unsigned int *)(*(_QWORD *)v167 - 8LL); if ( &pthread_create ) { do v135 = __ldaxr(v134); while ( __stlxr(v135 - 1, v134) ); } else { v135 = *(_DWORD *)(*(_QWORD *)v167 - 8LL); *(_DWORD *)(*(_QWORD *)v167 - 8LL) = v135 - 1; } if ( v135 <= 0 ) operator delete(v81); } } LABEL_175: if ( v173 > 5 ) sub_D15FD4(&v164, "...", 3); sub_D15FD4(&v164, &byte_F1AB78, 1); } v82 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Layer: %s\nZ: %s\n", v53, v146); v155 = cocos2d::CCString::getCString(v82); v83 = strlen(v155); sub_D15FD4(&v164, v155, v83); sub_D153B8((int)&v165, &byte_F288A0); if ( v148 != -10001 && v148 ) { v124 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)v148); v162 = cocos2d::CCString::getCString(v124); v125 = strlen(v162); sub_D15FD4(&v165, v162, v125); } if ( v142 != -10001 && v142 ) { if ( *((_QWORD *)v165 - 3) ) v84 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)", %i", (const char *)v142); else v84 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)v148); v156 = cocos2d::CCString::getCString(v84); v85 = strlen(v156); sub_D15FD4(&v165, v156, v85); } if ( *((_QWORD *)v165 - 3) ) { v122 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"EL: %s\n", v165); v161 = cocos2d::CCString::getCString(v122); v123 = strlen(v161); sub_D15FD4(&v164, v161, v123); } if ( !v185 ) { LABEL_189: v86 = a1->m_selectedObject; if ( v86 && v86->m_classType == Effect ) { if ( *(cocos2d::CCTexture2D **)((char *)&v86[1].m_pobTexture + 4) ) { v111 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Order: %i,%i\n", (const char *)LODWORD(v86[1].m_obRect.origin.x)); v160 = cocos2d::CCString::getCString(v111); v112 = strlen(v160); sub_D15FD4(&v164, v160, v112); } x = v86->getPosition(v86)->x; y = v86->getPosition(v86)->y; p_size = (const cocos2d::CCPoint *)&v86[1].m_obRect.size; cocos2d::CCPoint::CCPoint(&v166, p_size); v103 = v166.x; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, p_size); v105 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.01f %.01f, %.01f %.01f\n", v104, x, y, v103, *(float *)&v167[1]); v158 = cocos2d::CCString::getCString(v105); v106 = strlen(v158); sub_D15FD4(&v164, v158, v106); } if ( v141 > 1 ) { v87 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Objects: %i", (const char *)(unsigned int)v141); v157 = cocos2d::CCString::getCString(v87); v88 = strlen(v157); sub_D15FD4(&v164, v157, v88); } a1->m_objectInfoLabel->setString(a1->m_objectInfoLabel, v164); v89 = v165 - 24; if ( v165 - 24 != (char *)&qword_124B6B0 ) { v128 = (unsigned int *)(v165 - 8); if ( &pthread_create ) { do v129 = __ldaxr(v128); while ( __stlxr(v129 - 1, v128) ); } else { v129 = *((_DWORD *)v165 - 2); *((_DWORD *)v165 - 2) = v129 - 1; } if ( v129 <= 0 ) operator delete(v89); } v90 = (unsigned __int8 *)(v164 - 24); if ( v164 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { v126 = (unsigned int *)(v164 - 8); if ( &pthread_create ) { do v127 = __ldaxr(v126); while ( __stlxr(v127 - 1, v126) ); } else { v127 = *((_DWORD *)v164 - 2); *((_DWORD *)v164 - 2) = v127 - 1; } if ( v127 <= 0 ) operator delete(v90); } v91 = v182; while ( v91 ) { std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( (__int64)v180, *(_QWORD **)(v91 + 24)); v92 = (void *)v91; v91 = *(_QWORD *)(v91 + 16); operator delete(v92); } v93 = v176; while ( v93 ) { std::_Rb_tree,std::less,std::allocator>::_M_erase( (__int64)&v174, *(_QWORD **)(v93 + 24)); v94 = (void *)v93; v93 = *(_QWORD *)(v93 + 16); operator delete(v94); } v95 = v170; while ( v95 ) { std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( (__int64)v168, *(_QWORD **)(v95 + 24)); v96 = (void *)v95; v95 = *(_QWORD *)(v95 + 16); operator delete(v96); } v97 = (void *)(v163 - 24); if ( (__int64 *)(v163 - 24) != &qword_124B6B0 ) { v98 = (unsigned int *)(v163 - 8); if ( &pthread_create ) { do v99 = __ldaxr(v98); while ( __stlxr(v99 - 1, v98) ); } else { v99 = *(_DWORD *)(v163 - 8); *(_DWORD *)(v163 - 8) = v99 - 1; } if ( v99 <= 0 ) operator delete(v97); } return; } sub_D15FD4(&v164, "CID: ", 5); v113 = v183; v114 = 0; if ( v183 == &v181 ) { LABEL_234: if ( v185 > 5 ) sub_D15FD4(&v164, "...", 3); sub_D15FD4(&v164, &byte_F1AB78, 1); goto LABEL_189; } while ( 2 ) { v115 = v113[8]; if ( v140 ) { v116 = v113[9]; v117 = v116 >= (unsigned int)cocos2d::CCArray::count(v140); if ( !v114 ) goto LABEL_228; goto LABEL_244; } if ( !v114 ) goto LABEL_229; v117 = 0; LABEL_244: sub_D15FD4(&v164, &byte_F804F8, 1); LABEL_228: if ( !v117 ) { LABEL_229: sub_D15FD4(&v164, "(", 1); v117 = 0; } GameToolbox::intToString((__int64 *)v167, (GameToolbox *)v115); v149 = *(char **)v167; v118 = strlen(*(const char **)v167); sub_D15FD4(&v164, v149, v118); v119 = (void *)(*(_QWORD *)v167 - 24LL); if ( (__int64 *)(*(_QWORD *)v167 - 24LL) == &qword_124B6B0 ) goto LABEL_231; v120 = (unsigned int *)(*(_QWORD *)v167 - 8LL); if ( &pthread_create ) { do v121 = __ldaxr(v120); while ( __stlxr(v121 - 1, v120) ); } else { v121 = *(_DWORD *)(*(_QWORD *)v167 - 8LL); *(_DWORD *)(*(_QWORD *)v167 - 8LL) = v121 - 1; } if ( v121 > 0 ) { LABEL_231: if ( !v117 ) goto LABEL_241; } else { operator delete(v119); if ( !v117 ) LABEL_241: sub_D15FD4(&v164, ")", 1); } if ( ++v114 == 5 ) goto LABEL_234; v113 = (int *)sub_CFAB14(v113); if ( v113 == &v181 ) goto LABEL_234; continue; } } LABEL_88: if ( v46 <= 999 ) { v137 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)v152); v47 = cocos2d::CCString::getCString(v137); } else { v47 = GJSpecialColorSelect::textForColorIdx(v46); } v48 = v47; if ( v151 == -10001 ) { if ( v152 != -2 ) { v51 = "?"; goto LABEL_95; } v48 = &byte_F10E40; v51 = "?"; goto LABEL_96; } v49 = v151; if ( (v151 & 0x80000000) != 0 ) goto LABEL_147; goto LABEL_92; } } v76 = operator new(0x28u); v77 = (int *)(v76 + 32); *(_DWORD *)(v76 + 32) = m_uIndexInArray; *(_DWORD *)(v76 + 36) = 0; if ( v75 == &v181 ) { if ( v185 ) { v79 = (__int64)v184; if ( m_uIndexInArray > v184[8] ) { v75 = nullptr; goto LABEL_164; } } } else { v78 = v75[8]; if ( m_uIndexInArray >= v78 ) { if ( m_uIndexInArray <= v78 ) { LABEL_275: v131 = (void *)v76; v76 = (__int64)v75; operator delete(v131); goto LABEL_169; } if ( v75 == v184 ) goto LABEL_167; v79 = sub_CFAB14(v75); v77 = (int *)(v76 + 32); if ( m_uIndexInArray < *(_DWORD *)(v79 + 32) ) { if ( !*((_QWORD *)v75 + 3) ) goto LABEL_167; v75 = (int *)v79; goto LABEL_164; } } else { v79 = (__int64)v183; if ( v75 == v183 ) goto LABEL_164; v79 = sub_CFABD4(v75); v77 = (int *)(v76 + 32); if ( m_uIndexInArray > *(_DWORD *)(v79 + 32) ) { if ( *(_QWORD *)(v79 + 24) ) v79 = (__int64)v75; else v75 = nullptr; goto LABEL_164; } } } v75 = (int *)std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos( (__int64)v180, v77); v79 = v130; if ( !v130 ) goto LABEL_275; LABEL_164: if ( v75 || (int *)v79 == &v181 ) { v80 = 1; goto LABEL_168; } m_uIndexInArray = *(_DWORD *)(v76 + 32); v75 = (int *)v79; v78 = *(_DWORD *)(v79 + 32); LABEL_167: v79 = (__int64)v75; v80 = m_uIndexInArray < v78; LABEL_168: sub_CFAD74(v80, v76, v79, &v181); ++v185; LABEL_169: v75 = (int *)v76; goto LABEL_170; } } else { v28 = 0; } LABEL_87: v46 = v152; if ( v152 == -10001 ) goto LABEL_145; goto LABEL_88; } LABEL_224: v140 = nullptr; v28 = 0; goto LABEL_87; } } else { v19 = -2; } v152 = v19; goto LABEL_52; } a1->m_objectInfoLabel->setString(a1->m_objectInfoLabel, (const unsigned __int8 *)" "); if ( (__int64 *)(v163 - 24) != &qword_124B6B0 ) sub_6865FC((void *)(v163 - 24)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source