//
// EditorUI::updateObjectInfoLabel from 0x100475614 to 0x100476170 (2908 bytes)
//
// 10 xrefs:
// > SetGroupIDLayer::onClose @ 0x100040650
// > CustomizeObjectLayer::onClose @ 0x100057bdc
// > EditorUI::onDuplicate @ 0x100189c50
// > EditorUI::doPasteObjects @ 0x10018ac9c
// > EditorUI::onPasteState @ 0x10018afdc
// > EditorUI::onPasteColor @ 0x10018b040
// > EditorUI::deselectAll @ 0x1001a5cf4
// > EditorUI::toggleObjectInfoLabel @ 0x1004734a8
// > EditorUI::updateSpecialUIElements @ 0x100474870
// > EditorUI::assignNewGroups @ 0x10047a9ec
//
// 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 11:05:41 +0000
//
void __fastcall EditorUI::updateObjectInfoLabel(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
unsigned int v4; // w21
__int64 v5; // x24
int v6; // w19
int ObjectZOrder; // w22
int v8; // w23
__int64 v9; // x25
__int64 v10; // x0
__int64 v11; // x26
__int64 v12; // x28
__int64 v13; // x20
unsigned int *RelativeSpriteColor; // x0
unsigned int *v15; // x0
__int64 v16; // x9
__int64 v17; // x0
_DWORD *v18; // x0
_DWORD *v19; // x0
__int64 v20; // x8
__int64 v21; // x0
_QWORD *v22; // x0
__int64 v23; // x0
unsigned int *v24; // x9
__int64 v25; // x8
int v26; // w20
__int64 *v27; // x21
__int64 v28; // x27
signed int v29; // w28
_QWORD *v30; // x0
__int64 v31; // x0
_QWORD *v32; // x0
char v33; // w21
_BOOL4 v34; // w20
const char *v35; // x26
__int64 CString; // x0
void *v37; // x0
const char *v38; // x27
__int64 v39; // x0
void *v40; // x0
const char *v41; // x8
const std::string::value_type *v42; // x20
const char *v43; // x23
__int64 v44; // x28
void *v45; // x0
void *v46; // x0
void *v47; // x0
unsigned int v48; // w22
const std::string::value_type *v49; // x0
_QWORD **v50; // x22
int v51; // w25
__int64 v52; // x19
const char *v53; // x24
unsigned int v54; // w24
_QWORD *v55; // x8
int v56; // w9
char *v57; // x1
std::string *p_p; // x8
void *v59; // x0
const std::string::value_type *v60; // x0
_QWORD *v61; // x9
_QWORD **v62; // x8
bool v63; // zf
void *v64; // x0
const std::string::value_type *v65; // x0
void *v66; // x0
const std::string::value_type *v67; // x0
std::string::size_type size; // x8
const char *v69; // x0
__int64 v70; // x8
void *v71; // x0
const std::string::value_type *v72; // x0
std::string *v73; // x8
void *v74; // x0
const std::string::value_type *v75; // x0
_QWORD **v76; // x26
int v77; // w19
__int64 v78; // x25
bool v79; // w27
unsigned int v80; // w27
void **v81; // x1
_QWORD *v82; // x9
_QWORD **v83; // x8
__int64 v84; // x21
void *v85; // x0
const std::string::value_type *v86; // x0
float v87; // s8
float v88; // s9
float v89; // s10
void *v90; // x0
const std::string::value_type *v91; // x0
void *v92; // x0
const std::string::value_type *v93; // x0
std::string *v94; // x1
const char *v95; // [xsp+20h] [xbp-170h]
int v96; // [xsp+28h] [xbp-168h]
unsigned int v97; // [xsp+34h] [xbp-15Ch]
unsigned __int64 v98; // [xsp+38h] [xbp-158h]
_BOOL4 v99; // [xsp+38h] [xbp-158h]
__int64 v100; // [xsp+48h] [xbp-148h]
__int64 v101; // [xsp+58h] [xbp-138h]
__int64 v102; // [xsp+60h] [xbp-130h]
__int64 v103; // [xsp+68h] [xbp-128h] BYREF
void *v104[2]; // [xsp+70h] [xbp-120h] BYREF
char v105; // [xsp+87h] [xbp-109h]
std::string __p; // [xsp+88h] [xbp-108h] BYREF
std::string v107; // [xsp+A0h] [xbp-F0h] BYREF
_QWORD **v108; // [xsp+B8h] [xbp-D8h] BYREF
_QWORD *v109; // [xsp+C0h] [xbp-D0h] BYREF
unsigned __int64 v110; // [xsp+C8h] [xbp-C8h]
_QWORD **v111; // [xsp+D0h] [xbp-C0h] BYREF
_QWORD *v112[2]; // [xsp+D8h] [xbp-B8h] BYREF
_QWORD **v113; // [xsp+E8h] [xbp-A8h] BYREF
_QWORD *v114; // [xsp+F0h] [xbp-A0h] BYREF
unsigned __int64 v115; // [xsp+F8h] [xbp-98h]
void *v116; // [xsp+100h] [xbp-90h] BYREF
char v117; // [xsp+117h] [xbp-79h]
v2 = GameManager::sharedState();
if ( !GameManager::getGameVariable(v2, "0041") )
return;
sub_100009900(&v116, "");
v3 = *(_QWORD *)(a1 + 896);
v101 = a1;
if ( v3 && (unsigned int)sub_1002E757C(v3) )
{
v96 = sub_1002E757C(*(_QWORD *)(a1 + 896));
v4 = 0;
v5 = 4294967294LL;
v6 = -1;
v102 = 0xFFFFFFFFLL;
ObjectZOrder = -1;
v8 = -1;
v9 = 4294967294LL;
while ( v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(v101 + 896)) )
{
v10 = sub_1002E75A0(*(_QWORD *)(v101 + 896), v4);
v11 = v10;
v12 = 4294957295LL;
v13 = 4294957295LL;
if ( (_DWORD)v9 != -10001 )
{
RelativeSpriteColor = (unsigned int *)GameObject::getRelativeSpriteColor(v10, 1);
if ( RelativeSpriteColor )
{
if ( *RelativeSpriteColor )
v13 = *RelativeSpriteColor;
else
v13 = RelativeSpriteColor[1];
if ( (_DWORD)v9 != -2 )
{
if ( (_DWORD)v9 == (_DWORD)v13 )
v13 = (unsigned int)v9;
else
v13 = 4294957295LL;
}
}
else
{
v13 = v9;
}
}
if ( (_DWORD)v5 != -10001 )
{
v15 = (unsigned int *)GameObject::getRelativeSpriteColor(v11, 2);
if ( v15 )
{
if ( *v15 )
v12 = *v15;
else
v12 = v15[1];
if ( (_DWORD)v5 != -2 )
{
if ( (_DWORD)v5 == (_DWORD)v12 )
v12 = (unsigned int)v5;
else
v12 = 4294957295LL;
}
}
else
{
v12 = v5;
}
}
if ( v8 != -10001 )
{
if ( v8 == -1 )
{
v8 = sub_1002F3514(v11);
}
else if ( v8 != (unsigned int)sub_1002F3514(v11) )
{
v8 = -10001;
}
}
v16 = v102;
if ( ObjectZOrder != -10001 )
{
if ( ObjectZOrder == -1 )
{
ObjectZOrder = GameObject::getObjectZOrder(v11);
}
else if ( ObjectZOrder != (unsigned int)GameObject::getObjectZOrder(v11) )
{
ObjectZOrder = -10001;
}
v16 = v102;
}
if ( (_DWORD)v16 != -10001 )
{
if ( (_DWORD)v16 == -1 )
{
v16 = (unsigned int)*(__int16 *)(v11 + 1202);
}
else if ( (_DWORD)v16 == *(__int16 *)(v11 + 1202) )
{
v16 = (unsigned int)v16;
}
else
{
v16 = 4294957295LL;
}
}
v102 = v16;
if ( v6 != -10001 )
{
if ( v6 == -1 )
{
v6 = *(__int16 *)(v11 + 1204);
}
else if ( v6 != *(__int16 *)(v11 + 1204) )
{
v6 = -10001;
}
}
++v4;
v5 = v12;
v9 = v13;
}
v97 = v6;
a1 = v101;
LABEL_63:
v114 = nullptr;
v115 = 0;
v112[1] = nullptr;
v113 = &v114;
v111 = v112;
v112[0] = nullptr;
v109 = nullptr;
v110 = 0;
v108 = &v109;
v21 = *(_QWORD *)(a1 + 896);
if ( v21 && (unsigned int)sub_1002E757C(v21) )
{
v22 = *(_QWORD **)(v101 + 896);
}
else
{
v23 = *(_QWORD *)(v101 + 1496);
if ( !v23 )
goto LABEL_83;
v22 = sub_1002E73C8(v23);
}
if ( v22 )
{
v100 = (__int64)v22;
v24 = (unsigned int *)v22[7];
v25 = *v24;
if ( (_DWORD)v25 )
{
v26 = 0;
v27 = *((__int64 **)v24 + 2);
v98 = (unsigned __int64)&v27[v25 - 1];
do
{
v28 = *v27;
if ( !*v27 )
break;
if ( *(__int16 *)(v28 + 1168) >= 1 )
{
v29 = 0;
do
{
LODWORD(__p.__r_.__value_.__l.__data_) = sub_1002FA6C4(v28, v29);
v107.__r_.__value_.__r.__words[0] = (std::string::size_type)&__p;
v30 = sub_1001E71D0((__int64)&v113, (int *)&__p, (__int64)&unk_10076F2A2, (unsigned int **)&v107);
++*((_DWORD *)v30 + 8);
if ( *(_BYTE *)(v28 + 1170) == 1 )
{
v31 = GameManager::sharedState();
if ( v28 == sub_10028E320(*(_QWORD *)(v31 + 552), (int)__p.__r_.__value_.__l.__data_) )
sub_1000D8E78((__int64)&v111, (int *)&__p, &__p);
}
++v26;
++v29;
}
while ( v29 < *(__int16 *)(v28 + 1168) );
}
if ( *(_DWORD *)(v28 + 1248) == 1 )
{
LODWORD(__p.__r_.__value_.__l.__data_) = *(_DWORD *)(v28 + 1672);
if ( SLODWORD(__p.__r_.__value_.__l.__data_) >= 1 )
{
v107.__r_.__value_.__r.__words[0] = (std::string::size_type)&__p;
v32 = sub_1001E71D0((__int64)&v108, (int *)&__p, (__int64)&unk_10076F2A2, (unsigned int **)&v107);
++*((_DWORD *)v32 + 8);
}
}
++v27;
}
while ( (unsigned __int64)v27 <= v98 );
v33 = 0;
v34 = v26 > 0;
}
else
{
v33 = 0;
v34 = 0;
}
LABEL_85:
if ( (_DWORD)v9 == -10001 )
{
v35 = "?";
}
else
{
if ( (int)v9 < 1000 )
{
v37 = sub_1003065B0("%i", v9);
CString = cocos2d::CCString::getCString((__int64)v37);
}
else
{
CString = (__int64)GJSpecialColorSelect::textForColorIdx(v9);
}
v35 = (const char *)CString;
}
if ( (_DWORD)v5 == -10001 )
{
v38 = "?";
}
else if ( (v5 & 0x80000000) != 0 )
{
v38 = "-";
}
else
{
if ( (unsigned int)v5 < 0x3E8 )
{
v40 = sub_1003065B0("%i", v5);
v39 = cocos2d::CCString::getCString((__int64)v40);
}
else
{
v39 = (__int64)GJSpecialColorSelect::textForColorIdx(v5);
}
v38 = (const char *)v39;
}
v99 = v34;
v41 = "-";
if ( (_DWORD)v9 != -2 )
v41 = v35;
if ( (_DWORD)v5 == -2 )
v42 = v41;
else
v42 = v38;
if ( (unsigned int)(v8 + 5) >= 0x11 )
v43 = "?";
else
v43 = off_10096D798[v8 + 5];
v44 = v101;
if ( ObjectZOrder == -10001 )
{
v95 = "?";
}
else
{
v45 = sub_1003065B0("%i", ObjectZOrder);
v95 = (const char *)cocos2d::CCString::getCString((__int64)v45);
}
if ( (_DWORD)v102 != -10001 )
{
v46 = sub_1003065B0("%i", v102);
cocos2d::CCString::getCString((__int64)v46);
}
sub_100009900(&v107, "");
if ( (_DWORD)v5 == -2 || (_DWORD)v9 == -2 )
{
std::string::append(&v107, "C: ");
v48 = v102;
std::string::append(&v107, v42);
std::string::append(&v107, "\n");
}
else
{
v47 = sub_1003065B0("C1: %s\nC2: %s\n", v35, v38);
v48 = v102;
v49 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v47);
std::string::append(&v107, v49);
}
if ( v99 )
{
std::string::append(&v107, "G: ");
v50 = v113;
if ( v113 == &v114 )
goto LABEL_144;
v51 = 0;
while ( 1 )
{
v52 = *((unsigned int *)v50 + 7);
v53 = "(%i%s)";
if ( (v33 & 1) == 0 )
{
v54 = *((_DWORD *)v50 + 8);
if ( v54 >= (unsigned int)sub_1002E757C(v100) )
v53 = "%i%s";
else
v53 = "(%i%s)";
}
if ( v51 )
std::string::append(&v107, ",");
v55 = v112[0];
if ( !v112[0] )
{
LABEL_130:
v57 = "";
goto LABEL_132;
}
while ( 1 )
{
v56 = *((_DWORD *)v55 + 7);
if ( (int)v52 >= v56 )
break;
LABEL_129:
v55 = (_QWORD *)*v55;
if ( !v55 )
goto LABEL_130;
}
if ( v56 < (int)v52 )
break;
v57 = "*";
LABEL_132:
sub_100009900(&__p, v57);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = &__p;
else
p_p = (std::string *)__p.__r_.__value_.__r.__words[0];
v59 = sub_1003065B0(v53, v52, p_p);
v60 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v59);
std::string::append(&v107, v60);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( v51 != 4 )
{
v61 = v50[1];
if ( v61 )
{
do
{
v62 = (_QWORD **)v61;
v61 = (_QWORD *)*v61;
}
while ( v61 );
}
else
{
do
{
v62 = (_QWORD **)v50[2];
v63 = *v62 == v50;
v50 = v62;
}
while ( !v63 );
}
++v51;
v50 = v62;
if ( v62 != &v114 )
continue;
}
LABEL_144:
v44 = v101;
v48 = v102;
if ( v115 >= 6 )
std::string::append(&v107, "...");
std::string::append(&v107, "\n");
goto LABEL_147;
}
++v55;
goto LABEL_129;
}
LABEL_147:
v64 = sub_1003065B0("Layer: %s\nZ: %s\n", v43, v95);
v65 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v64);
std::string::append(&v107, v65);
sub_100009900(&__p, "");
if ( v48 != -10001 && v48 )
{
v66 = sub_1003065B0("%i", v48);
v67 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v66);
std::string::append(&__p, v67);
}
if ( v97 != -10001 && v97 )
{
size = HIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = __p.__r_.__value_.__l.__size_;
if ( size )
v69 = ", %i";
else
v69 = "%i";
if ( size )
v70 = v97;
else
v70 = v48;
v71 = sub_1003065B0(v69, v70);
v72 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v71);
std::string::append(&__p, v72);
}
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
{
if ( __p.__r_.__value_.__l.__size_ )
{
v73 = (std::string *)__p.__r_.__value_.__r.__words[0];
goto LABEL_166;
}
}
else if ( *((_BYTE *)&__p.__r_.__value_.__s + 23) )
{
v73 = &__p;
LABEL_166:
v74 = sub_1003065B0("EL: %s\n", (const char *)v73);
v75 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v74);
std::string::append(&v107, v75);
}
if ( v110 )
{
std::string::append(&v107, "CID: ");
v76 = v108;
if ( v108 != &v109 )
{
v77 = 0;
while ( 1 )
{
v78 = *((unsigned int *)v76 + 7);
if ( (v33 & 1) == 0 )
break;
v79 = 0;
if ( v77 )
goto LABEL_174;
LABEL_175:
if ( !v79 )
std::string::append(&v107, "(");
GameToolbox::intToString(v78, v104);
if ( v105 >= 0 )
v81 = v104;
else
v81 = (void **)v104[0];
std::string::append(&v107, (const std::string::value_type *)v81);
if ( v105 < 0 )
{
operator delete(v104[0]);
if ( v79 )
goto LABEL_185;
LABEL_184:
std::string::append(&v107, ")");
goto LABEL_185;
}
if ( !v79 )
goto LABEL_184;
LABEL_185:
if ( v77 != 4 )
{
v82 = v76[1];
if ( v82 )
{
do
{
v83 = (_QWORD **)v82;
v82 = (_QWORD *)*v82;
}
while ( v82 );
}
else
{
do
{
v83 = (_QWORD **)v76[2];
v63 = *v83 == v76;
v76 = v83;
}
while ( !v63 );
}
++v77;
v76 = v83;
if ( v83 != &v109 )
continue;
}
goto LABEL_192;
}
v80 = *((_DWORD *)v76 + 8);
v79 = v80 >= (unsigned int)sub_1002E757C(v100);
if ( !v77 )
goto LABEL_175;
LABEL_174:
std::string::append(&v107, ",");
goto LABEL_175;
}
LABEL_192:
v44 = v101;
if ( v110 >= 6 )
std::string::append(&v107, "...");
std::string::append(&v107, "\n");
}
v84 = *(_QWORD *)(v44 + 1496);
if ( v84 && *(_DWORD *)(v84 + 1248) == 1 )
{
if ( *(_QWORD *)(v84 + 1772) )
{
v85 = sub_1003065B0("Order: %i,%i\n", *(_DWORD *)(v84 + 1776), *(_DWORD *)(v84 + 1772));
v86 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v85);
std::string::append(&v107, v86);
}
v87 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v84 + 192LL))(v84);
v88 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v84 + 192LL))(v84) + 4);
sub_1000262F4(v104, (double *)(v84 + 1784));
v89 = *(float *)v104;
sub_1000262F4(&v103, (double *)(v84 + 1784));
v90 = sub_1003065B0("%.01f %.01f, %.01f %.01f\n", v87, v88, v89, *((float *)&v103 + 1));
v91 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v90);
std::string::append(&v107, v91);
}
if ( v96 >= 2 )
{
v92 = sub_1003065B0("Objects: %i", v96);
v93 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v92);
std::string::append(&v107, v93);
}
if ( (v107.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v94 = &v107;
else
v94 = (std::string *)v107.__r_.__value_.__r.__words[0];
(*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(v44 + 752) + 928LL))(*(_QWORD *)(v44 + 752), v94);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v107.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v107.__r_.__value_.__l.__data_);
sub_1000187C4((__int64)&v108, v109);
sub_1000187C4((__int64)&v111, v112[0]);
sub_1000187C4((__int64)&v113, v114);
goto LABEL_210;
}
LABEL_83:
v100 = 0;
v34 = 0;
v33 = 1;
goto LABEL_85;
}
v17 = *(_QWORD *)(a1 + 1496);
if ( v17 )
{
v18 = (_DWORD *)GameObject::getRelativeSpriteColor(v17, 1);
if ( v18 )
{
if ( *v18 )
LODWORD(v9) = *v18;
else
LODWORD(v9) = v18[1];
}
else
{
LODWORD(v9) = -2;
}
v19 = (_DWORD *)GameObject::getRelativeSpriteColor(*(_QWORD *)(a1 + 1496), 2);
if ( v19 )
{
if ( *v19 )
LODWORD(v5) = *v19;
else
LODWORD(v5) = v19[1];
}
else
{
LODWORD(v5) = -2;
}
v8 = sub_1002F3514(*(_QWORD *)(a1 + 1496));
ObjectZOrder = GameObject::getObjectZOrder(*(_QWORD *)(a1 + 1496));
v96 = 0;
v20 = *(_QWORD *)(a1 + 1496);
LODWORD(v102) = *(__int16 *)(v20 + 1202);
v97 = *(__int16 *)(v20 + 1204);
goto LABEL_63;
}
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 752) + 928LL))(*(_QWORD *)(a1 + 752), " ");
LABEL_210:
if ( v117 < 0 )
operator delete(v116);
}