//
// EditorUI::updateObjectInfoLabel from 0x10002f410 to 0x10003068a (4730 bytes)
//
// 32 xrefs:
// > EditorUI::init @ 0x10000b639
// > EditorUI::undoLastAction @ 0x10000c0d3
// > EditorUI::redoLastAction @ 0x10000c133
// > EditorUI::onDeleteSelected @ 0x10000c2a2
// > EditorUI::onDuplicate @ 0x10002ad9f
// > EditorUI::onPasteState @ 0x10002c39b
// > EditorUI::onPasteColor @ 0x10002c3fb
// > EditorUI::toggleObjectInfoLabel @ 0x10002cfd1
// > EditorUI::clickOnPosition @ 0x10002dbed
// > EditorUI::onDelete @ 0x10002de94
// > EditorUI::updateSpecialUIElements @ 0x10002e889
// > EditorUI::deselectAll @ 0x100032ef8
// > EditorUI::changeSelectedObjects @ 0x10003cb3d
// > EditorUI::selectObjectsInRect @ 0x10003cc54
// > EditorUI::selectAll @ 0x10003d1b0
// > EditorUI::processSelectObjects @ 0x10003d27f
// > EditorUI::selectAllWithDirection @ 0x10003d599
// > EditorUI::doPasteObjects @ 0x10003e40e
// > EditorUI::doPasteInPlace @ 0x10003e4ef
// > EditorUI::createSmartObjectsFromTemplate @ 0x100043333
// > EditorUI::createSmartObjectsFromType @ 0x1000441d3
// > EditorUI::assignNewGroups @ 0x10004546e
// > EditorUI::onAssignNewGroupID @ 0x10004e16f
// > EditorUI::ccTouchEnded @ 0x10005022f
// > EditorUI::keyDown @ 0x100050858
// > CustomizeObjectLayer::onClose @ 0x1001f7343
// > CustomizeObjectLayer::onLiveEdit @ 0x1001f7d81
// > CustomizeObjectLayer::onBreakApart @ 0x1001f8011
// > CustomizeObjectLayer::recreateLayer @ 0x1001f894c
// > CustomizeObjectLayer::keyBackClicked @ 0x1001f9703
// > sub_1001F9730 @ 0x1001f97ab
// > SetGroupIDLayer::onClose @ 0x100314867
//
// 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 __fastcall EditorUI::updateObjectInfoLabel(EditorUI *a1)
{
GameManager *v1; // rax
cocos2d::CCArray *m_selectedObjects; // rdi
unsigned int v3; // r13d
EditorUI *v4; // rbx
int v5; // ecx
int v6; // r15d
int v7; // r12d
GameObject *v8; // rax
GameObject *v9; // rbx
GJSpriteColor *RelativeSpriteColor; // rax
ZLayer ObjectZLayer; // edx
GJSpriteColor *v12; // rax
ZLayer v13; // eax
int v14; // r15d
ZLayer v15; // r12d
int v16; // ecx
GameObject *m_selectedObject; // rdi
GJSpriteColor *v18; // rax
int m_colorID; // ebx
GJSpriteColor *v20; // rax
GameObject *v21; // rax
cocos2d::CCArray *v22; // rdi
__int64 v23; // rax
GameObject *v24; // rdi
unsigned int *v25; // rax
__int64 v26; // rcx
const char *v27; // rax
GameObject *v28; // rdi
int v29; // ebx
int GroupID; // r14d
__int64 v31; // rax
__int128 *v32; // r12
__int128 *v33; // r13
int v34; // eax
_DWORD *v35; // r15
GameManager *v36; // rax
GameObject *GroupParent; // rax
__int64 v38; // rax
__int128 *v39; // r15
__int128 *v40; // r12
int v41; // eax
_DWORD *v42; // rax
int v43; // r14d
__int64 v44; // rax
__int128 *v45; // r15
__int128 *v46; // r12
int v47; // eax
_DWORD *v48; // rbx
bool v49; // r15
const std::string::value_type *v50; // rbx
const std::string::value_type *v51; // r14
int v52; // esi
const char *CString; // rax
cocos2d::CCString *v54; // rax
const char *v55; // rax
cocos2d::CCString *v56; // rax
const std::string::value_type *v57; // r13
unsigned int v58; // eax
cocos2d::CCString *v59; // rax
cocos2d::CCString *v60; // rax
cocos2d::CCString *v61; // rax
const char *v62; // rax
__int128 *v63; // r13
int v64; // r14d
int v65; // r15d
char *v66; // rbx
unsigned int v67; // ebx
bool v68; // cf
__int64 *v69; // rax
char *v70; // rcx
int v71; // ecx
size_t v72; // rax
std::string::size_type v73; // r14
char *data; // rbx
cocos2d::CCString *v75; // rax
int v76; // r14d
const char *v77; // rax
__int128 *v78; // rcx
__int128 *v79; // rax
bool v80; // zf
size_t v81; // r12
cocos2d::CCString *v82; // rax
const char *v83; // rax
cocos2d::CCString *v84; // rax
const char *v85; // rax
std::string::size_type size; // rax
char *v87; // rdi
cocos2d::CCString *v88; // rax
const char *v89; // rax
cocos2d::CCString *v90; // rax
const char *v91; // rax
__int128 *v92; // r14
unsigned int v93; // ebx
unsigned int v94; // r12d
char v95; // r15
std::string::value_type *v96; // rbx
std::string::value_type *v97; // rsi
__int128 *v98; // rax
__int128 *v99; // r15
unsigned int v100; // r14d
bool v101; // r12
unsigned int v102; // r12d
std::string::value_type *v103; // rsi
__int128 *v104; // rax
__int128 *v105; // r12
unsigned int v106; // r14d
bool v107; // r15
unsigned int v108; // r15d
std::string::value_type *v109; // rsi
__int128 *v110; // rax
__int128 *v111; // r15
unsigned int v112; // r14d
bool v113; // r12
unsigned int v114; // r12d
std::string::value_type *v115; // rsi
__int128 *v116; // rcx
__int128 *v117; // rax
unsigned int v118; // r14d
bool v119; // r15
unsigned int v120; // r15d
GameObject *v121; // rbx
cocos2d::CCString *v122; // rax
const char *v123; // rsi
cocos2d::CCSize *p_size; // rbx
cocos2d::CCString *v125; // rax
const char *v126; // rax
cocos2d::CCString *v127; // rax
const char *v128; // rax
std::string::pointer v129; // rsi
char v130[4]; // [rsp+0h] [rbp-120h] BYREF
unsigned __int64 v131; // [rsp+8h] [rbp-118h]
__int128 *v132; // [rsp+10h] [rbp-110h] BYREF
__int128 v133; // [rsp+18h] [rbp-108h] BYREF
const char *v134; // [rsp+28h] [rbp-F8h]
__int128 *v135; // [rsp+30h] [rbp-F0h] BYREF
__int128 v136; // [rsp+38h] [rbp-E8h] BYREF
__int128 *v137; // [rsp+48h] [rbp-D8h] BYREF
__int128 v138; // [rsp+50h] [rbp-D0h] BYREF
int v139; // [rsp+64h] [rbp-BCh]
GameObject *v140; // [rsp+68h] [rbp-B8h]
std::string __dst; // [rsp+70h] [rbp-B0h] BYREF
__int64 v142; // [rsp+88h] [rbp-98h]
std::string::value_type v143[16]; // [rsp+90h] [rbp-90h] BYREF
std::string::value_type *__s; // [rsp+A0h] [rbp-80h]
const std::string::value_type *v145; // [rsp+A8h] [rbp-78h]
EditorUI *v146; // [rsp+B0h] [rbp-70h]
int ObjectZOrder; // [rsp+BCh] [rbp-64h]
std::string v148; // [rsp+C0h] [rbp-60h] BYREF
int m_editorLayer2; // [rsp+DCh] [rbp-44h]
char *__format; // [rsp+E0h] [rbp-40h]
void *__src; // [rsp+E8h] [rbp-38h]
int m_editorLayer; // [rsp+F0h] [rbp-30h]
int v153; // [rsp+F4h] [rbp-2Ch]
v1 = GameManager::sharedState();
if ( !GameManager::getGameVariable(v1, "0041") )
return;
v146 = a1;
m_selectedObjects = a1->m_selectedObjects;
if ( m_selectedObjects && (unsigned int)sub_100720070(m_selectedObjects) )
{
v139 = sub_100720070(v146->m_selectedObjects);
if ( (unsigned int)sub_100720070(v146->m_selectedObjects) )
{
v3 = 0;
LODWORD(v145) = -1;
LODWORD(__format) = -2;
LODWORD(__src) = -2;
ObjectZOrder = -1;
m_editorLayer = -1;
m_editorLayer2 = -1;
v4 = v146;
while ( 1 )
{
v6 = (int)__src;
v7 = (int)__format;
v8 = (GameObject *)sub_1007200C0(v4->m_selectedObjects, v3);
v9 = v8;
LODWORD(__format) = -10001;
if ( v7 == -10001 )
goto LABEL_18;
RelativeSpriteColor = GameObject::getRelativeSpriteColor(v8, 1);
if ( !RelativeSpriteColor )
goto LABEL_17;
LODWORD(__format) = RelativeSpriteColor->m_colorID;
if ( !(_DWORD)__format )
LODWORD(__format) = RelativeSpriteColor->m_defaultColorID;
if ( v7 != -2 )
break;
LABEL_18:
LODWORD(__src) = -10001;
ObjectZLayer = (int)v145;
if ( v6 != -10001 )
{
v12 = GameObject::getRelativeSpriteColor(v9, 2);
if ( !v12 )
{
LODWORD(__src) = v6;
ObjectZLayer = (int)v145;
if ( (_DWORD)v145 == -10001 )
goto LABEL_31;
goto LABEL_27;
}
LODWORD(__src) = v12->m_colorID;
if ( !(_DWORD)__src )
LODWORD(__src) = v12->m_defaultColorID;
ObjectZLayer = (int)v145;
if ( v6 != -2 )
{
if ( v6 != (_DWORD)__src )
v6 = -10001;
LODWORD(__src) = v6;
}
}
if ( ObjectZLayer == -10001 )
goto LABEL_31;
LABEL_27:
if ( ObjectZLayer == B3 )
{
ObjectZLayer = GameObject::getObjectZLayer(v9);
}
else
{
v13 = GameObject::getObjectZLayer(v9);
ObjectZLayer = (int)v145;
if ( (_DWORD)v145 != v13 )
ObjectZLayer = -10001;
}
LABEL_31:
v14 = ObjectZOrder;
if ( ObjectZOrder != -10001 )
{
v15 = ObjectZLayer;
if ( ObjectZOrder == -1 )
{
ObjectZOrder = GameObject::getObjectZOrder(v9);
}
else
{
if ( ObjectZOrder != GameObject::getObjectZOrder(v9) )
v14 = -10001;
ObjectZOrder = v14;
}
ObjectZLayer = v15;
}
v16 = m_editorLayer;
if ( m_editorLayer != -10001 )
{
if ( m_editorLayer != -1 )
{
if ( m_editorLayer != v9->m_editorLayer )
v16 = -10001;
m_editorLayer = v16;
v5 = m_editorLayer2;
LODWORD(v145) = ObjectZLayer;
if ( m_editorLayer2 == -10001 )
goto LABEL_9;
LABEL_46:
if ( v5 == -1 )
{
m_editorLayer2 = v9->m_editorLayer2;
}
else
{
if ( v5 != v9->m_editorLayer2 )
v5 = -10001;
m_editorLayer2 = v5;
}
goto LABEL_9;
}
m_editorLayer = v9->m_editorLayer;
}
v5 = m_editorLayer2;
LODWORD(v145) = ObjectZLayer;
if ( m_editorLayer2 != -10001 )
goto LABEL_46;
LABEL_9:
++v3;
v4 = v146;
if ( v3 >= (unsigned int)sub_100720070(v146->m_selectedObjects) )
goto LABEL_60;
}
if ( v7 != (_DWORD)__format )
v7 = -10001;
LABEL_17:
LODWORD(__format) = v7;
goto LABEL_18;
}
LODWORD(__src) = -2;
m_editorLayer2 = -1;
m_editorLayer = -1;
ObjectZOrder = -1;
LODWORD(v145) = -1;
LODWORD(__format) = -2;
v4 = v146;
}
else
{
m_selectedObject = v146->m_selectedObject;
if ( !m_selectedObject )
{
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))v146->m_objectInfoLabel->setString)(
v146->m_objectInfoLabel,
" ");
return;
}
v18 = GameObject::getRelativeSpriteColor(m_selectedObject, 1);
LODWORD(__src) = -2;
m_colorID = -2;
if ( v18 )
{
m_colorID = v18->m_colorID;
if ( !v18->m_colorID )
m_colorID = v18->m_defaultColorID;
}
v20 = GameObject::getRelativeSpriteColor(v146->m_selectedObject, 2);
if ( v20 )
{
LODWORD(__src) = v20->m_colorID;
if ( !(_DWORD)__src )
LODWORD(__src) = v20->m_defaultColorID;
}
LODWORD(__format) = m_colorID;
v4 = v146;
LODWORD(v145) = GameObject::getObjectZLayer(v146->m_selectedObject);
ObjectZOrder = GameObject::getObjectZOrder(v146->m_selectedObject);
v21 = v146->m_selectedObject;
m_editorLayer = v21->m_editorLayer;
m_editorLayer2 = v21->m_editorLayer2;
v139 = 0;
}
LABEL_60:
v136 = 0;
v135 = &v136;
v133 = 0;
v132 = &v133;
v138 = 0;
v137 = &v138;
v22 = v4->m_selectedObjects;
if ( v22 && (unsigned int)sub_100720070(v22) )
{
v23 = (__int64)v146->m_selectedObjects;
}
else
{
LODWORD(v23) = (_DWORD)v146;
v24 = v146->m_selectedObject;
if ( !v24 )
{
LABEL_110:
LOBYTE(v23) = 1;
v153 = v23;
v142 = 0;
LABEL_111:
v49 = 0;
v50 = "?";
v134 = "?";
if ( (_DWORD)__format != -10001 )
goto LABEL_115;
LABEL_112:
v51 = "?";
v52 = (int)__src;
if ( (_DWORD)__src == -10001 )
goto LABEL_125;
goto LABEL_119;
}
v23 = sub_10071FA80(v24);
}
if ( !v23 )
goto LABEL_110;
v142 = v23;
v25 = *(unsigned int **)(v23 + 56);
v26 = *v25;
v153 = 0;
if ( !v26 )
goto LABEL_111;
v27 = *((const char **)v25 + 2);
v131 = (unsigned __int64)&v27[8 * v26 - 8];
do
{
v134 = v27;
v28 = *(GameObject **)v27;
if ( !*(_QWORD *)v27 )
break;
if ( v28->m_groupCount > 0 )
{
v29 = 0;
v140 = *(GameObject **)v27;
while ( 1 )
{
GroupID = GameObject::getGroupID(v28, v29);
v31 = v136;
v32 = &v136;
LABEL_78:
v33 = v32;
if ( v31 )
break;
LABEL_83:
v35 = operator new(0x28u);
v35[7] = GroupID;
v35[8] = 0;
*(_OWORD *)v35 = 0;
*((_QWORD *)v35 + 2) = v32;
*(_QWORD *)v33 = v35;
if ( *(_QWORD *)v135 )
v135 = *(__int128 **)v135;
sub_100054DD0(v136, v35);
++*((_QWORD *)&v136 + 1);
++v35[8];
if ( v140->m_hasGroupParentsString )
goto LABEL_88;
LABEL_75:
++v153;
++v29;
v28 = v140;
if ( v29 >= v140->m_groupCount )
goto LABEL_98;
}
while ( 1 )
{
v32 = (__int128 *)v31;
v34 = *(_DWORD *)(v31 + 28);
if ( GroupID < v34 )
{
v31 = *(_QWORD *)v32;
goto LABEL_78;
}
if ( GroupID <= v34 )
break;
v31 = *((_QWORD *)v32 + 1);
if ( !v31 )
{
v33 = (__int128 *)((char *)v32 + 8);
goto LABEL_83;
}
}
++*((_DWORD *)v32 + 8);
if ( !v140->m_hasGroupParentsString )
goto LABEL_75;
LABEL_88:
v36 = GameManager::sharedState();
GroupParent = GJBaseGameLayer::getGroupParent(v36->m_levelEditorLayer, GroupID);
if ( v140 == GroupParent )
{
v38 = v133;
v39 = &v133;
LABEL_91:
v40 = v39;
if ( v38 )
{
do
{
v39 = (__int128 *)v38;
v41 = *(_DWORD *)(v38 + 28);
if ( GroupID < v41 )
{
v38 = *(_QWORD *)v39;
goto LABEL_91;
}
if ( GroupID <= v41 )
goto LABEL_75;
v38 = *((_QWORD *)v39 + 1);
}
while ( v38 );
v40 = (__int128 *)((char *)v39 + 8);
}
v42 = operator new(0x20u);
v42[7] = GroupID;
*(_OWORD *)v42 = 0;
*((_QWORD *)v42 + 2) = v39;
*(_QWORD *)v40 = v42;
if ( *(_QWORD *)v132 )
v132 = *(__int128 **)v132;
sub_100054DD0(v133, v42);
++*((_QWORD *)&v133 + 1);
}
goto LABEL_75;
}
LABEL_98:
if ( v28->m_classType == Effect )
{
v43 = (int)v28[1].CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable;
if ( v43 > 0 )
{
v44 = v138;
v45 = &v138;
LABEL_102:
v46 = v45;
if ( v44 )
{
while ( 1 )
{
v45 = (__int128 *)v44;
v47 = *(_DWORD *)(v44 + 28);
if ( v43 < v47 )
{
v44 = *(_QWORD *)v45;
goto LABEL_102;
}
if ( v43 <= v47 )
break;
v44 = *((_QWORD *)v45 + 1);
if ( !v44 )
{
v46 = (__int128 *)((char *)v45 + 8);
goto LABEL_107;
}
}
v48 = v45;
}
else
{
LABEL_107:
v48 = operator new(0x28u);
v48[7] = v43;
v48[8] = 0;
*(_OWORD *)v48 = 0;
*((_QWORD *)v48 + 2) = v45;
*(_QWORD *)v46 = v48;
if ( *(_QWORD *)v137 )
v137 = *(__int128 **)v137;
sub_100054DD0(v138, v48);
++*((_QWORD *)&v138 + 1);
}
++v48[8];
}
}
v27 = v134 + 8;
}
while ( (unsigned __int64)(v134 + 8) <= v131 );
v49 = v153 > 0;
v153 = 0;
v50 = "?";
v134 = "?";
if ( (_DWORD)__format == -10001 )
goto LABEL_112;
LABEL_115:
if ( (int)__format < 1000 )
{
v54 = (cocos2d::CCString *)sub_1007AB580("%i", v130[0]);
CString = cocos2d::CCString::getCString(v54);
}
else
{
CString = GJSpecialColorSelect::textForColorIdx((int)__format);
}
v50 = CString;
v51 = "?";
v52 = (int)__src;
if ( (_DWORD)__src != -10001 )
{
LABEL_119:
if ( v52 < 0 )
{
v51 = "-";
}
else
{
if ( (unsigned int)v52 < 0x3E8 )
{
v56 = (cocos2d::CCString *)sub_1007AB580("%i", v130[0]);
v55 = cocos2d::CCString::getCString(v56);
}
else
{
v55 = GJSpecialColorSelect::textForColorIdx(v52);
}
v51 = v55;
v52 = (int)__src;
}
}
LABEL_125:
v57 = "-";
if ( (_DWORD)__format != -2 )
v57 = v50;
if ( v52 != -2 )
v57 = v51;
v58 = (_DWORD)v145 + 5;
v145 = "?";
if ( v58 < 0x11 )
v145 = (char *)dword_100815620 + dword_100815620[v58];
if ( ObjectZOrder != -10001 )
{
v59 = (cocos2d::CCString *)sub_1007AB580("%i", v130[0]);
v134 = cocos2d::CCString::getCString(v59);
}
if ( m_editorLayer != -10001 )
{
v60 = (cocos2d::CCString *)sub_1007AB580("%i", v130[0]);
cocos2d::CCString::getCString(v60);
}
*(_WORD *)&v148.__r_.__value_.__l.0 = 0;
if ( (_DWORD)__src == -2 || (_DWORD)__format == -2 )
{
std::string::append(&v148, "C: ");
std::string::append(&v148, v57);
std::string::append(&v148, "\n");
}
else
{
v61 = (cocos2d::CCString *)sub_1007AB580("C1: %s\nC2: %s\n", v130[0]);
v62 = cocos2d::CCString::getCString(v61);
std::string::append(&v148, v62);
}
if ( v49 )
{
std::string::append(&v148, "G: ");
v63 = v135;
if ( v135 != &v136 )
{
v64 = 0;
while ( 1 )
{
v65 = *((_DWORD *)v63 + 7);
v66 = "(%i%s)";
if ( !(_BYTE)v153 )
{
v67 = *((_DWORD *)v63 + 8);
v68 = v67 < (unsigned int)sub_100720070(v142);
v66 = "%i%s";
if ( v68 )
v66 = "(%i%s)";
}
if ( v64 )
std::string::append(&v148, ",");
v69 = (__int64 *)v133;
v70 = "";
if ( (_QWORD)v133 )
{
while ( 1 )
{
v71 = *((_DWORD *)v69 + 7);
if ( v65 >= v71 )
{
if ( v65 <= v71 )
{
v70 = "*";
break;
}
++v69;
}
v69 = (__int64 *)*v69;
if ( !v69 )
{
v70 = "";
break;
}
}
}
LODWORD(v140) = v64;
__src = v70;
v72 = strlen(v70);
if ( v72 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(0.0);
v73 = v72;
__format = v66;
if ( v72 >= 0x17 )
break;
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v72);
data = __dst.__r_.__value_.__s.__data_;
if ( v72 )
goto LABEL_171;
__dst.__r_.__value_.__s.__data_[0] = 0;
LABEL_160:
v75 = (cocos2d::CCString *)sub_1007AB580(__format, v130[0]);
v76 = (int)v140;
v77 = cocos2d::CCString::getCString(v75);
std::string::append(&v148, v77);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( v76 != 4 )
{
v78 = *((__int128 **)v63 + 1);
if ( v78 )
{
do
{
v79 = v78;
v78 = *(__int128 **)v78;
}
while ( v78 );
}
else
{
do
{
v79 = *((__int128 **)v63 + 2);
v80 = *(_QWORD *)v79 == (_QWORD)v63;
v63 = v79;
}
while ( !v80 );
}
v64 = v76 + 1;
v63 = v79;
if ( v79 != &v136 )
continue;
}
goto LABEL_172;
}
v81 = (v72 | 7) + 1;
if ( (v72 | 7) == 0x17 )
v81 = 26;
data = (char *)operator new(v81);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data;
__dst.__r_.__value_.__r.__words[0] = v81 | 1;
__dst.__r_.__value_.__l.__size_ = v73;
LABEL_171:
memcpy(data, __src, v73);
data[v73] = 0;
goto LABEL_160;
}
LABEL_172:
if ( *((_QWORD *)&v136 + 1) >= 6u )
std::string::append(&v148, "...");
std::string::append(&v148, "\n");
}
v82 = (cocos2d::CCString *)sub_1007AB580("Layer: %s\nZ: %s\n", v130[0]);
v83 = cocos2d::CCString::getCString(v82);
std::string::append(&v148, v83);
*(_WORD *)&__dst.__r_.__value_.__l.0 = 0;
if ( m_editorLayer != -10001 && m_editorLayer )
{
v84 = (cocos2d::CCString *)sub_1007AB580("%i", v130[0]);
v85 = cocos2d::CCString::getCString(v84);
std::string::append(&__dst, v85);
}
if ( m_editorLayer2 != -10001 && m_editorLayer2 )
{
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
size = __dst.__r_.__value_.__l.__size_;
else
size = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v87 = ", %i";
if ( !size )
v87 = "%i";
v88 = (cocos2d::CCString *)sub_1007AB580(v87, v130[0]);
v89 = cocos2d::CCString::getCString(v88);
std::string::append(&__dst, v89);
}
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
if ( __dst.__r_.__value_.__l.__size_ )
{
LABEL_190:
v90 = (cocos2d::CCString *)sub_1007AB580("EL: %s\n", v130[0]);
v91 = cocos2d::CCString::getCString(v90);
std::string::append(&v148, v91);
}
}
else if ( __dst.__r_.__value_.__s.0 )
{
goto LABEL_190;
}
if ( *((_QWORD *)&v138 + 1) )
{
std::string::append(&v148, "CID: ");
v92 = v137;
if ( v137 != &v138 )
{
v93 = *((_DWORD *)v137 + 7);
if ( (_BYTE)v153 || (v94 = *((_DWORD *)v137 + 8), v95 = 1, v94 < (unsigned int)sub_100720070(v142)) )
{
std::string::append(&v148, "(");
v95 = 0;
}
GameToolbox::intToString(v143, v93);
v96 = &v143[1];
v97 = &v143[1];
if ( (v143[0] & 1) != 0 )
v97 = __s;
std::string::append(&v148, v97);
if ( (v143[0] & 1) != 0 )
operator delete(__s);
if ( !v95 )
std::string::append(&v148, ")");
v98 = *((__int128 **)v92 + 1);
if ( v98 )
{
do
{
v99 = v98;
v98 = *(__int128 **)v98;
}
while ( v98 );
}
else
{
do
{
v99 = *((__int128 **)v92 + 2);
v80 = *(_QWORD *)v99 == (_QWORD)v92;
v92 = v99;
}
while ( !v80 );
}
if ( v99 != &v138 )
{
v100 = *((_DWORD *)v99 + 7);
if ( (_BYTE)v153 )
{
v101 = 0;
}
else
{
v102 = *((_DWORD *)v99 + 8);
v101 = v102 >= (unsigned int)sub_100720070(v142);
}
std::string::append(&v148, ",");
if ( !v101 )
std::string::append(&v148, "(");
GameToolbox::intToString(v143, v100);
v103 = &v143[1];
if ( (v143[0] & 1) != 0 )
v103 = __s;
std::string::append(&v148, v103);
if ( (v143[0] & 1) != 0 )
operator delete(__s);
if ( !v101 )
std::string::append(&v148, ")");
v104 = *((__int128 **)v99 + 1);
if ( v104 )
{
do
{
v105 = v104;
v104 = *(__int128 **)v104;
}
while ( v104 );
}
else
{
do
{
v105 = *((__int128 **)v99 + 2);
v80 = *(_QWORD *)v105 == (_QWORD)v99;
v99 = v105;
}
while ( !v80 );
}
if ( v105 != &v138 )
{
v106 = *((_DWORD *)v105 + 7);
if ( (_BYTE)v153 )
{
v107 = 0;
}
else
{
v108 = *((_DWORD *)v105 + 8);
v107 = v108 >= (unsigned int)sub_100720070(v142);
}
std::string::append(&v148, ",");
if ( !v107 )
std::string::append(&v148, "(");
GameToolbox::intToString(v143, v106);
v109 = &v143[1];
if ( (v143[0] & 1) != 0 )
v109 = __s;
std::string::append(&v148, v109);
if ( (v143[0] & 1) != 0 )
operator delete(__s);
if ( !v107 )
std::string::append(&v148, ")");
v110 = *((__int128 **)v105 + 1);
if ( v110 )
{
do
{
v111 = v110;
v110 = *(__int128 **)v110;
}
while ( v110 );
}
else
{
do
{
v111 = *((__int128 **)v105 + 2);
v80 = *(_QWORD *)v111 == (_QWORD)v105;
v105 = v111;
}
while ( !v80 );
}
if ( v111 != &v138 )
{
v112 = *((_DWORD *)v111 + 7);
if ( (_BYTE)v153 )
{
v113 = 0;
}
else
{
v114 = *((_DWORD *)v111 + 8);
v113 = v114 >= (unsigned int)sub_100720070(v142);
}
std::string::append(&v148, ",");
if ( !v113 )
std::string::append(&v148, "(");
GameToolbox::intToString(v143, v112);
v115 = &v143[1];
if ( (v143[0] & 1) != 0 )
v115 = __s;
std::string::append(&v148, v115);
if ( (v143[0] & 1) != 0 )
operator delete(__s);
if ( !v113 )
std::string::append(&v148, ")");
v116 = *((__int128 **)v111 + 1);
if ( v116 )
{
do
{
v117 = v116;
v116 = *(__int128 **)v116;
}
while ( v116 );
}
else
{
do
{
v117 = *((__int128 **)v111 + 2);
v80 = *(_QWORD *)v117 == (_QWORD)v111;
v111 = v117;
}
while ( !v80 );
}
if ( v117 != &v138 )
{
v118 = *((_DWORD *)v117 + 7);
if ( (_BYTE)v153 )
{
v119 = 0;
}
else
{
v120 = *((_DWORD *)v117 + 8);
v119 = v120 >= (unsigned int)sub_100720070(v142);
}
std::string::append(&v148, ",");
if ( !v119 )
std::string::append(&v148, "(");
GameToolbox::intToString(v143, v118);
if ( (v143[0] & 1) != 0 )
v96 = __s;
std::string::append(&v148, v96);
if ( (v143[0] & 1) != 0 )
operator delete(__s);
if ( !v119 )
std::string::append(&v148, ")");
}
}
}
}
}
if ( *((_QWORD *)&v138 + 1) >= 6u )
std::string::append(&v148, "...");
std::string::append(&v148, "\n");
}
v121 = v146->m_selectedObject;
if ( v121 && v121->m_classType == Effect )
{
if ( *(cocos2d::CCTexture2D **)((char *)&v121[1].m_pobTexture + 4) )
{
v122 = (cocos2d::CCString *)sub_1007AB580("Order: %i,%i\n", v130[0]);
v123 = cocos2d::CCString::getCString(v122);
std::string::append(&v148, v123);
}
LODWORD(v140) = *(_DWORD *)((__int64 (__fastcall *)(GameObject *))v121->getPosition)(v121);
v153 = *(_DWORD *)(((__int64 (__fastcall *)(GameObject *))v121->getPosition)(v121) + 4);
p_size = &v121[1].m_obRect.size;
sub_10028CC60(v143, p_size);
LODWORD(__format) = *(_DWORD *)v143;
sub_10028CC60(v130, p_size);
v125 = (cocos2d::CCString *)sub_1007AB580("%.01f %.01f, %.01f %.01f\n", v130[0]);
v126 = cocos2d::CCString::getCString(v125);
std::string::append(&v148, v126);
}
if ( v139 >= 2 )
{
v127 = (cocos2d::CCString *)sub_1007AB580("Objects: %i", v130[0]);
v128 = cocos2d::CCString::getCString(v127);
std::string::append(&v148, v128);
}
if ( (*(_BYTE *)&v148.__r_.__value_.__s.0 & 1) != 0 )
v129 = v148.__r_.__value_.__l.__data_;
else
v129 = v148.__r_.__value_.__s.__data_;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string::pointer))v146->m_objectInfoLabel->setString)(
v146->m_objectInfoLabel,
v129);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v148.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v148.__r_.__value_.__l.__data_);
sub_100054D90(&v137, v138);
sub_100054D90(&v132, v133);
sub_100054D90(&v135, v136);
}