//
// sub_1005452FC from 0x1005452fc to 0x100546438 (4412 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::adminReportedContentFinished @ 0x1005452a4
// > sub_100549E74 @ 0x100549ef0
//
// 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:07:46 +0000
//
__int64 __fastcall sub_1005452FC(__int64 a1, __int64 a2)
{
__int64 v2; // x26
__int64 v4; // x22
unsigned int v5; // w25
__int64 v6; // x23
float v7; // s11
__int64 v8; // x24
void *v9; // x21
float v10; // s15
void *v11; // x21
void *v12; // x0
char *v13; // x0
char *v14; // x21
const char *v15; // x0
void *v16; // x21
__int64 v17; // x0
void *v18; // x0
const std::string::value_type *CString; // x0
std::string *v20; // x0
void *v21; // x26
size_t v22; // x21
void **v23; // x20
const void *v24; // x1
void **v25; // x0
void *v26; // x21
float v27; // s9
float v28; // s9
void *v29; // x21
float v30; // s10
float v31; // s11
__int64 v32; // x8
__int64 v33; // x20
unsigned __int64 v34; // x21
std::string::size_type size; // x9
const char *v36; // x0
void *v37; // x0
const std::string::value_type *v38; // x0
unsigned __int64 v39; // x9
void *v40; // x0
const std::string::value_type *v41; // x0
std::string *v42; // x0
void *v43; // x21
float v44; // s10
int v45; // w8
void *v46; // x21
void *v47; // x21
__int64 v48; // x8
__int64 v49; // x9
size_t v50; // x21
std::string *v51; // x20
const void *v52; // x1
int v53; // w11
const std::string::value_type *v54; // x1
std::string::size_type v55; // x2
std::string *v56; // x0
__int128 v57; // q0
__int64 v58; // x0
std::string *v59; // x0
__int128 v60; // q0
std::string *v61; // x0
__int128 v62; // q0
std::string *v63; // x1
std::string::size_type v64; // x2
const char *v65; // x0
const char *v66; // x8
void *v67; // x0
char *v68; // x0
char *v69; // x21
std::string::size_type v70; // x8
__int64 v71; // x0
unsigned __int8 *v72; // x21
void *v73; // x21
std::string *v74; // x0
void *v75; // x21
float v76; // s9
__int64 v77; // x8
size_t v78; // x21
std::string *v79; // x20
const void *v80; // x1
std::string *v81; // x1
std::string::size_type v82; // x2
std::string *v83; // x0
std::string::size_type v84; // x20
char v85; // w21
void **v86; // x0
void *v87; // x21
__int64 v89; // [xsp+20h] [xbp-1E0h]
int v90; // [xsp+34h] [xbp-1CCh]
void *v91[2]; // [xsp+48h] [xbp-1B8h] BYREF
char v92; // [xsp+5Fh] [xbp-1A1h]
std::string __p; // [xsp+60h] [xbp-1A0h] BYREF
void *v94[2]; // [xsp+80h] [xbp-180h] BYREF
char v95; // [xsp+97h] [xbp-169h]
std::string v96; // [xsp+98h] [xbp-168h] BYREF
std::string __dst; // [xsp+B0h] [xbp-150h] BYREF
void *v98[2]; // [xsp+C8h] [xbp-138h] BYREF
char v99; // [xsp+DFh] [xbp-121h]
std::string v100; // [xsp+E0h] [xbp-120h] BYREF
char *v101; // [xsp+F8h] [xbp-108h] BYREF
std::string v102; // [xsp+100h] [xbp-100h] BYREF
std::string v103; // [xsp+120h] [xbp-E0h] BYREF
_QWORD v104[2]; // [xsp+148h] [xbp-B8h]
v2 = a2;
if ( a2 )
v90 = sub_1002E757C(a2);
else
v90 = 0;
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 688) + 416LL);
if ( *(_DWORD *)(a1 + 1240) || *(_DWORD *)(a1 + 676) || *(_DWORD *)(a1 + 1372) + *(_DWORD *)(a1 + 1368) < 1 )
{
v5 = 0;
}
else
{
sub_1005490A8(a1, *(_QWORD *)(*(_QWORD *)(a1 + 688) + 416LL), -26.0);
v5 = 1;
}
if ( v90 >= 1 )
{
v6 = 0;
v7 = 20.0;
v89 = v2;
do
{
v8 = sub_1002E75A0(v2, v6);
sub_1000262CC((float *)&v103, 0.0, 0.0, 40.0, 40.0);
v9 = cocos2d::extension::CCScale9Sprite::create((__int64)"square02_small.png", (__int64)&v103);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v9 + 912LL))(v9, 60);
v103.__r_.__value_.__s.__data_[2] = 0;
LOWORD(v103.__r_.__value_.__l.__data_) = 0;
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v9 + 960LL))(v9, &v103);
sub_1000262C4((float *)&v103, *(float *)(a1 + 704) + -8.0, 40.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v9 + 320LL))(v9, &v103);
v10 = (float)((float)((float)v5 * 43.0) + 6.0) + v7;
sub_1000262BC((float *)&v103, *(float *)(a1 + 704) * 0.5, -v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v9 + 184LL))(v9, &v103);
(*(void (__fastcall **)(__int64, void *, _QWORD))(*(_QWORD *)v4 + 464LL))(v4, v9, 0);
v11 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOff_001.png");
v12 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOn_001.png");
v101 = CCMenuItemToggler::create((__int64)v11, (__int64)v12, a1, (__int64)sub_100549588, 0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v101 + 160LL))(v101, 0.55);
CCMenuItemToggler::setSizeMult((__int64)v101, 1.4);
v13 = v101;
v101[393] = 1;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v13 + 72LL))(v13, v6);
v14 = v101;
sub_1000262BC((float *)&v103, 16.0, -v10);
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v14 + 184LL))(v14, &v103);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v101, 2);
sub_100011A50(a1 + 1320, &v101);
v15 = sub_10051FB1C(*(_DWORD *)(v8 + 56));
v16 = cocos2d::CCLabelBMFont::create_1(v15, "bigFont.fnt");
sub_1000262BC((float *)&v103, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v16 + 296LL))(v16, &v103);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v16 + 160LL))(v16, 0.32);
v17 = sub_10051FB44(*(_DWORD *)(v8 + 56));
LOWORD(v103.__r_.__value_.__l.__data_) = v17;
v103.__r_.__value_.__s.__data_[2] = BYTE2(v17);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v16 + 1072LL))(v16, &v103);
sub_1000262BC((float *)&v103, 32.0, 10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v16 + 184LL))(v16, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v16, 1);
sub_100544550(*(_DWORD *)(v8 + 192), "reporter", &v100);
if ( *(int *)(v8 + 72) >= 1 )
{
v18 = sub_1003065B0(" +%i anonymous", *(_DWORD *)(v8 + 72));
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v18);
std::string::append(&v100, CString);
}
if ( (v100.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v20 = &v100;
else
v20 = (std::string *)v100.__r_.__value_.__r.__words[0];
v21 = cocos2d::CCLabelBMFont::create_1((const char *)v20, "chatFont.fnt");
sub_1000262BC((float *)&v103, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v21 + 296LL))(v21, &v103);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v21 + 160LL))(v21, 0.45);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v21 + 1024LL))(v21, 180);
(*(void (__fastcall **)(std::string *__return_ptr, void *))(*(_QWORD *)v16 + 336LL))(&v102, v16);
sub_1000262BC((float *)&v103, (float)(*(float *)&v102.__r_.__value_.__l.__data_ + 32.0) + 8.0, 10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v21 + 184LL))(v21, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v21, 1);
if ( *(__int64 *)(v8 + 184) < 1 )
{
sub_100549694(v98, *(_QWORD *)(v8 + 160));
}
else
{
if ( *(char *)(v8 + 223) >= 0 )
v22 = *(unsigned __int8 *)(v8 + 223);
else
v22 = *(_QWORD *)(v8 + 208);
sub_100026068((__int64)v98, v22 + 4);
if ( v99 >= 0 )
v23 = v98;
else
v23 = (void **)v98[0];
if ( v22 )
{
if ( *(char *)(v8 + 223) >= 0 )
v24 = (const void *)(v8 + 200);
else
v24 = *(const void **)(v8 + 200);
memmove(v23, v24, v22);
}
strcpy((char *)v23 + v22, " ago");
}
if ( v99 >= 0 )
v25 = v98;
else
v25 = (void **)v98[0];
v26 = cocos2d::CCLabelBMFont::create_1((const char *)v25, "chatFont.fnt");
sub_1000262BC((float *)&v103, 1.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v26 + 296LL))(v26, &v103);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v26 + 160LL))(v26, 0.4);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v26 + 1024LL))(v26, 150);
sub_1000262BC((float *)&v103, *(float *)(a1 + 704) + -10.0, 10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v26 + 184LL))(v26, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v26, 1);
v27 = *(float *)(a1 + 704);
(*(void (__fastcall **)(std::string *__return_ptr, void *))(*(_QWORD *)v26 + 336LL))(&v103, v26);
v28 = (float)((float)(v27 + -10.0) - *(float *)&v103.__r_.__value_.__l.__data_) + -8.0;
if ( (*(_BYTE *)(v8 + 104) & 1) == 0 )
{
v29 = cocos2d::CCLabelBMFont::create_1("content deleted", "chatFont.fnt");
sub_1000262BC((float *)&v103, 1.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v29 + 296LL))(v29, &v103);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v29 + 160LL))(v29, 0.4);
v103.__r_.__value_.__s.__data_[2] = 100;
LOWORD(v103.__r_.__value_.__l.__data_) = 25855;
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v29 + 1072LL))(v29, &v103);
sub_1000262BC((float *)&v103, v28, 10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v29 + 184LL))(v29, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v29, 1);
(*(void (__fastcall **)(std::string *__return_ptr, void *))(*(_QWORD *)v29 + 336LL))(&v103, v29);
v28 = v28 - (float)(*(float *)&v103.__r_.__value_.__l.__data_ + 8.0);
}
v30 = (*(float (__fastcall **)(void *))(*(_QWORD *)v21 + 224LL))(v21);
(*(void (__fastcall **)(std::string *__return_ptr, void *))(*(_QWORD *)v21 + 336LL))(&v103, v21);
v31 = *(float *)&v103.__r_.__value_.__l.__data_;
memset(&v103, 0, sizeof(v103));
v32 = *(_QWORD *)(v8 + 80);
if ( *(_QWORD *)(v8 + 88) == v32 )
{
v39 = 0;
}
else
{
v33 = 0;
v34 = 0;
do
{
size = HIBYTE(v103.__r_.__value_.__r.__words[2]);
if ( (v103.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = v103.__r_.__value_.__l.__size_;
if ( size )
{
std::string::append(&v103, ", ");
v32 = *(_QWORD *)(v8 + 80);
}
v36 = sub_10051F9C4(*(_DWORD *)(v32 + v33));
v37 = sub_1003065B0("%s x%i", v36, *(_DWORD *)(*(_QWORD *)(v8 + 80) + v33 + 4));
v38 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v37);
std::string::append(&v103, v38);
v32 = *(_QWORD *)(v8 + 80);
v39 = (*(_QWORD *)(v8 + 88) - v32) >> 3;
if ( (v34 & 0xFFFFFFFE) != 0 )
break;
++v34;
v33 += 8;
}
while ( v34 < v39 );
}
if ( v39 > 3 )
{
v40 = sub_1003065B0(" +%i", (int)v39 - 3);
v41 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v40);
std::string::append(&v103, v41);
}
if ( (v103.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v42 = &v103;
else
v42 = (std::string *)v103.__r_.__value_.__r.__words[0];
v43 = cocos2d::CCLabelBMFont::create_1((const char *)v42, "chatFont.fnt");
if ( SHIBYTE(v103.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v103.__r_.__value_.__l.__data_);
sub_1000262BC((float *)&v103, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v43 + 296LL))(v43, &v103);
v44 = (float)(v30 + v31) + 8.0;
v7 = 20.0;
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v43, fmaxf(v28 - v44, 20.0), 0.4, 0.2);
v103.__r_.__value_.__s.__data_[2] = 60;
LOWORD(v103.__r_.__value_.__l.__data_) = -11521;
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v43 + 1072LL))(v43, &v103);
sub_1000262BC((float *)&v103, v44, 10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v43 + 184LL))(v43, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v43, 1);
if ( *(_BYTE *)(v8 + 104) == 1 )
{
v45 = *(_DWORD *)(v8 + 56);
if ( (unsigned int)(v45 - 3) < 2 || v45 == 7 || v45 == 8 && *(__int64 *)(v8 + 168) >= 1 )
{
v46 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteIcon_001.png");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v46 + 160LL))(v46, 0.5);
v47 = CCMenuItemSpriteExtra::create((__int64)v46, 0, a1, (__int64)sub_10054975C, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v47, 1.3);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v47 + 72LL))(v47, v6);
sub_1000262BC((float *)&v103, *(float *)(a1 + 704) + -18.0, -10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v47 + 184LL))(v47, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v47, 2);
}
}
v48 = *(char *)(v8 + 135);
if ( v48 < 0 )
v49 = *(_QWORD *)(v8 + 120);
else
v49 = *(char *)(v8 + 135);
if ( v49 )
{
if ( (int)v48 >= 0 )
v50 = *(char *)(v8 + 135);
else
v50 = *(_QWORD *)(v8 + 120);
sub_100026068((__int64)&v103, v50 + 1);
if ( (v103.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v51 = &v103;
else
v51 = (std::string *)v103.__r_.__value_.__r.__words[0];
if ( v50 )
{
if ( *(char *)(v8 + 135) >= 0 )
v52 = (const void *)(v8 + 112);
else
v52 = *(const void **)(v8 + 112);
memmove(v51, v52, v50);
}
*(_WORD *)((char *)&v51->__r_.__value_.__l.__data_ + v50) = 10;
v53 = *(char *)(v8 + 159);
if ( v53 >= 0 )
v54 = (const std::string::value_type *)(v8 + 136);
else
v54 = *(const std::string::value_type **)(v8 + 136);
if ( v53 >= 0 )
v55 = *(unsigned __int8 *)(v8 + 159);
else
v55 = *(_QWORD *)(v8 + 144);
v56 = std::string::append(&v103, v54, v55);
v57 = *(_OWORD *)&v56->__r_.__value_.__l.__data_;
__dst.__r_.__value_.__r.__words[2] = v56->__r_.__value_.__r.__words[2];
*(_OWORD *)&__dst.__r_.__value_.__l.__data_ = v57;
v56->__r_.__value_.__l.__size_ = 0;
v56->__r_.__value_.__r.__words[2] = 0;
v56->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v103.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v103.__r_.__value_.__l.__data_);
}
else if ( *(char *)(v8 + 159) < 0 )
{
sub_1000097D0(&__dst, *(void **)(v8 + 136), *(_QWORD *)(v8 + 144));
}
else
{
__dst = *(std::string *)(v8 + 136);
}
v58 = *(_QWORD *)(v8 + 160);
if ( v58 >= 1 )
{
sub_100549694(&v96, v58);
v59 = std::string::insert(&v96, 0, "\n");
v60 = *(_OWORD *)&v59->__r_.__value_.__l.__data_;
v102.__r_.__value_.__r.__words[2] = v59->__r_.__value_.__r.__words[2];
*(_OWORD *)&v102.__r_.__value_.__l.__data_ = v60;
v59->__r_.__value_.__l.__size_ = 0;
v59->__r_.__value_.__r.__words[2] = 0;
v59->__r_.__value_.__r.__words[0] = 0;
v61 = std::string::append(&v102, "");
v62 = *(_OWORD *)&v61->__r_.__value_.__l.__data_;
v103.__r_.__value_.__r.__words[2] = v61->__r_.__value_.__r.__words[2];
*(_OWORD *)&v103.__r_.__value_.__l.__data_ = v62;
v61->__r_.__value_.__l.__size_ = 0;
v61->__r_.__value_.__r.__words[2] = 0;
v61->__r_.__value_.__r.__words[0] = 0;
if ( (v103.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v63 = &v103;
else
v63 = (std::string *)v103.__r_.__value_.__r.__words[0];
if ( (v103.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v64 = HIBYTE(v103.__r_.__value_.__r.__words[2]);
else
v64 = v103.__r_.__value_.__l.__size_;
std::string::append(&__dst, (const std::string::value_type *)v63, v64);
if ( SHIBYTE(v103.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v103.__r_.__value_.__l.__data_);
if ( SHIBYTE(v102.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v102.__r_.__value_.__l.__data_);
if ( SHIBYTE(v96.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v96.__r_.__value_.__l.__data_);
}
v65 = sub_10051FB1C(*(_DWORD *)(v8 + 56));
v66 = (const char *)(a1 + 848);
if ( *(char *)(a1 + 871) < 0 )
v66 = *(const char **)(a1 + 848);
v67 = sub_1003065B0("%s by %s", v65, v66);
v68 = (char *)cocos2d::CCString::getCString((__int64)v67);
sub_100009900(v94, v68);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__p, __dst.__r_.__value_.__l.__data_, __dst.__r_.__value_.__l.__size_);
else
__p = __dst;
v69 = InfoAlertButton::create((__int64)v94, (__int64)&__p, 0.6);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( v95 < 0 )
operator delete(v94[0]);
v70 = HIBYTE(__dst.__r_.__value_.__r.__words[2]);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v70 = __dst.__r_.__value_.__l.__size_;
v69[556] = v70 > 0xC8;
sub_1000262BC((float *)&v103, *(float *)(a1 + 704) + -44.0, -10.0 - v10);
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v69 + 184LL))(v69, &v103);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v69, 2);
v71 = *(unsigned int *)(v8 + 56);
if ( (*(_BYTE *)(v8 + 104) & 1) != 0 )
{
if ( (unsigned int)(v71 - 1) < 2 )
goto LABEL_115;
if ( (_DWORD)v71 != 8 )
{
if ( *(_DWORD *)(v8 + 64) && (unsigned int)v71 <= 7 && ((1 << v71) & 0x98) != 0 )
{
LABEL_115:
v72 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_03_001.png");
cocos2d::CCSprite::setFlipX(v72, 1);
(*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v72 + 160LL))(v72, 0.45);
v73 = CCMenuItemSpriteExtra::create((__int64)v72, 0, a1, (__int64)sub_100549944, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v73, 1.3);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v73 + 72LL))(v73, v6);
sub_1000262BC((float *)&v103, *(float *)(a1 + 704) + -70.0, -10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v73 + 184LL))(v73, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v73, 2);
v71 = *(unsigned int *)(v8 + 56);
goto LABEL_117;
}
goto LABEL_117;
}
}
else if ( (_DWORD)v71 != 8 )
{
goto LABEL_117;
}
if ( *(_BYTE *)(v8 + 176) == 1 )
goto LABEL_115;
v71 = 8;
LABEL_117:
sub_100549B18(&v96, v71, *(unsigned int *)(v8 + 64));
if ( SHIBYTE(v96.__r_.__value_.__r.__words[2]) < 0 )
{
if ( v96.__r_.__value_.__l.__size_ )
{
v74 = (std::string *)v96.__r_.__value_.__r.__words[0];
goto LABEL_122;
}
}
else if ( *((_BYTE *)&v96.__r_.__value_.__s + 23) )
{
v74 = &v96;
LABEL_122:
v75 = cocos2d::CCLabelBMFont::create_1((const char *)v74, "chatFont.fnt");
sub_1000262BC((float *)&v103, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v75 + 296LL))(v75, &v103);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v75 + 160LL))(v75, 0.4);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v75 + 1024LL))(v75, 130);
sub_1000262BC((float *)&v103, 32.0, -10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v75 + 184LL))(v75, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v75, 1);
(*(void (__fastcall **)(std::string *__return_ptr, void *))(*(_QWORD *)v75 + 336LL))(&v103, v75);
v76 = (float)(*(float *)&v103.__r_.__value_.__l.__data_ + 6.0) + 32.0;
goto LABEL_124;
}
v76 = 32.0;
LABEL_124:
if ( *(char *)(v8 + 159) < 0 )
sub_1000097D0(&v103, *(void **)(v8 + 136), *(_QWORD *)(v8 + 144));
else
v103 = *(std::string *)(v8 + 136);
v77 = *(char *)(v8 + 135);
if ( v77 < 0 )
{
if ( *(_QWORD *)(v8 + 120) )
{
LABEL_131:
if ( (int)v77 >= 0 )
v78 = *(char *)(v8 + 135);
else
v78 = *(_QWORD *)(v8 + 120);
sub_100026068((__int64)&v102, v78 + 2);
if ( (v102.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v79 = &v102;
else
v79 = (std::string *)v102.__r_.__value_.__r.__words[0];
if ( v78 )
{
if ( *(char *)(v8 + 135) >= 0 )
v80 = (const void *)(v8 + 112);
else
v80 = *(const void **)(v8 + 112);
memmove(v79, v80, v78);
}
strcpy((char *)v79 + v78, ": ");
if ( (v103.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v81 = &v103;
else
v81 = (std::string *)v103.__r_.__value_.__r.__words[0];
if ( (v103.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v82 = HIBYTE(v103.__r_.__value_.__r.__words[2]);
else
v82 = v103.__r_.__value_.__l.__size_;
v83 = std::string::append(&v102, (const std::string::value_type *)v81, v82);
v84 = v83->__r_.__value_.__r.__words[0];
v104[0] = v83->__r_.__value_.__l.__size_;
*(_QWORD *)((char *)v104 + 7) = *(std::string::size_type *)((char *)&v83->__r_.__value_.__r.__words[1] + 7);
v85 = HIBYTE(v83->__r_.__value_.__r.__words[2]);
v83->__r_.__value_.__l.__size_ = 0;
v83->__r_.__value_.__r.__words[2] = 0;
v83->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v103.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v103.__r_.__value_.__l.__data_);
v103.__r_.__value_.__r.__words[0] = v84;
v103.__r_.__value_.__l.__size_ = v104[0];
*(std::string::size_type *)((char *)&v103.__r_.__value_.__r.__words[1] + 7) = *(_QWORD *)((char *)v104 + 7);
*((_BYTE *)&v103.__r_.__value_.__s + 23) = v85;
if ( SHIBYTE(v102.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v102.__r_.__value_.__l.__data_);
}
}
else if ( *(_BYTE *)(v8 + 135) )
{
goto LABEL_131;
}
sub_10004B264((__int64)&v103, 0x50u, (std::string::size_type *)v91);
v2 = v89;
if ( SHIBYTE(v103.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v103.__r_.__value_.__l.__data_);
if ( v92 >= 0 )
v86 = v91;
else
v86 = (void **)v91[0];
v87 = cocos2d::CCLabelBMFont::create_1((const char *)v86, "chatFont.fnt");
if ( v92 < 0 )
operator delete(v91[0]);
sub_1000262BC((float *)&v103, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v87 + 296LL))(v87, &v103);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v87, (float)(*(float *)(a1 + 704) + -86.0) - v76, 0.55, 0.2);
sub_1000262BC((float *)&v103, v76, -10.0 - v10);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v87 + 184LL))(v87, &v103);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v87, 1);
if ( SHIBYTE(v96.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v96.__r_.__value_.__l.__data_);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( v99 < 0 )
operator delete(v98[0]);
if ( SHIBYTE(v100.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v100.__r_.__value_.__l.__data_);
v6 = (unsigned int)(v6 + 1);
++v5;
}
while ( (_DWORD)v6 != v90 );
}
return ScrollableContentLayer::setContentHeight(*(_QWORD *)(a1 + 688), (float)((float)v5 * 43.0) + 12.0);
}