//
// sub_100542A8C from 0x100542a8c to 0x100543de0 (4948 bytes)
//
// 1 xrefs:
// > AccountReviewPopup::adminAccountReviewFinished @ 0x100542a74
//
// 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:45 +0000
//
__int64 __fastcall sub_100542A8C(__int64 a1, __int64 a2)
{
__n128 v4; // q0
float v5; // s9
float v6; // s10
__int64 v7; // x8
std::string *v8; // x1
std::string::size_type v9; // x2
__int64 v10; // x8
std::string *v11; // x0
__int128 v12; // q0
std::string *p_p; // x1
std::string::size_type size; // x2
__int64 v15; // x8
const std::string::value_type *v16; // x1
int v17; // w8
const char *v18; // x9
char *v19; // x1
std::string::size_type v20; // x8
const std::string::value_type *v21; // x1
void *v22; // x0
const std::string::value_type *CString; // x0
__int64 v24; // x8
std::string *v25; // x0
__int128 v26; // q0
std::string *v27; // x1
std::string::size_type v28; // x2
std::string *v29; // x0
__int128 v30; // q0
std::string *v31; // x1
std::string::size_type v32; // x2
int v33; // w8
__int64 v34; // x9
__int64 v35; // x2
time_t v36; // x21
time_t v37; // x22
std::string *v38; // x0
__int64 v39; // x2
void *v40; // x0
const std::string::value_type *v41; // x0
std::string *v42; // x0
__int128 v43; // q0
std::string *v44; // x1
std::string::size_type v45; // x2
void *v46; // x0
const std::string::value_type *v47; // x0
const char *v48; // x0
std::string *v49; // x0
__int128 v50; // q0
std::string *v51; // x1
std::string::size_type v52; // x2
unsigned int v53; // w0
std::string *v54; // x0
__int128 v55; // q0
std::string *v56; // x1
std::string::size_type v57; // x2
std::string::size_type v58; // x8
char *v59; // x1
std::string *v60; // x0
__int128 v61; // q0
const std::string::value_type *v62; // x1
std::string::size_type v63; // x2
std::string *v64; // x0
__int128 v65; // q0
std::string *v66; // x1
std::string::size_type v67; // x2
std::string::size_type v68; // x8
char *v69; // x1
std::string *v70; // x0
__int128 v71; // q0
const std::string::value_type *v72; // x1
std::string::size_type v73; // x2
std::string *v74; // x0
__int128 v75; // q0
std::string *v76; // x1
std::string::size_type v77; // x2
std::string::size_type v78; // x8
char *v79; // x1
std::string *v80; // x0
__int128 v81; // q0
std::string *v82; // x1
std::string::size_type v83; // x2
std::string::size_type v84; // x8
char *v85; // x1
std::string *v86; // x0
__int128 v87; // q0
std::string *v88; // x1
std::string::size_type v89; // x2
std::string::size_type v90; // x8
time_t v91; // x0
std::string *v92; // x0
int v93; // w8
const char *v94; // x9
void *v95; // x0
char *v96; // x0
int v97; // w8
const char *v98; // x9
void *v99; // x0
char *v100; // x0
__int64 v101; // x8
_QWORD *v102; // x21
std::string *v103; // x0
__int128 v104; // q0
int v105; // w8
void *v106; // x0
std::string *v107; // x0
__int128 v108; // q0
std::string *v109; // x1
std::string::size_type v110; // x2
__int64 v111; // x8
std::string *v112; // x1
std::string::size_type v113; // x2
__int64 v114; // x8
std::string *v115; // x0
__int128 v116; // q0
std::string *v117; // x1
std::string::size_type v118; // x2
__int64 v119; // x8
__int64 v120; // x23
unsigned __int64 v121; // x24
const char *v122; // x0
void *v123; // x22
void *v124; // x21
__int64 v125; // x22
float v126; // s11
float v127; // s9
float v128; // s8
std::string::size_type v129; // x8
std::string::size_type v130; // x9
unsigned __int64 v131; // x26
__int64 v132; // x27
float v133; // s15
_BOOL4 v135; // w8
int v136; // w10
__int64 v137; // x23
unsigned __int64 v138; // x24
__int64 v139; // x28
float v140; // s10
std::string::size_type v141; // x22
float v142; // s8
float v143; // s0
__int64 v144; // x21
int v145; // w8
void *v146; // x0
const std::string::value_type *v147; // x0
__int64 v148; // x21
void *v149; // x0
const std::string::value_type *v150; // x0
__int64 v151; // x21
void *v152; // x0
const std::string::value_type *v153; // x0
__int64 v154; // x21
void *v155; // x0
const std::string::value_type *v156; // x1
float v158; // [xsp+1Ch] [xbp-154h]
std::string v159; // [xsp+20h] [xbp-150h] BYREF
void *v160; // [xsp+40h] [xbp-130h] BYREF
std::string::size_type v161; // [xsp+48h] [xbp-128h]
unsigned __int8 v162; // [xsp+57h] [xbp-119h]
std::string v163; // [xsp+58h] [xbp-118h] BYREF
std::string __p; // [xsp+70h] [xbp-100h] BYREF
__int64 *v165; // [xsp+90h] [xbp-E0h] BYREF
__int64 v166; // [xsp+98h] [xbp-D8h] BYREF
__int64 v167; // [xsp+A0h] [xbp-D0h]
__int64 v168; // [xsp+A8h] [xbp-C8h]
std::string v169; // [xsp+B0h] [xbp-C0h] BYREF
float32x2_t v170; // [xsp+C8h] [xbp-A8h]
v4 = sub_100544244();
v4.n128_f32[0] = *(float *)(a1 + 664) + (float)(*(float *)(a1 + 672) * 0.5);
v5 = *(float *)(a1 + 660);
v6 = *(float *)(a1 + 704);
v170 = vadd_f32((float32x2_t)vdup_lane_s32((int32x2_t)v4.n128_u64[0], 0), (float32x2_t)0xC24C0000C20C0000LL);
v166 = 0;
v167 = 0;
v168 = 0;
v165 = &v166;
if ( *(_DWORD *)(a2 + 28) )
{
if ( (*(_DWORD *)(a2 + 112) & 0x80000000) != 0 )
{
sub_100009900(&v159, "No case");
sub_1005442EC(&v165, &v159, 14803425);
}
else
{
sub_100009900(&v159, "Reviewed");
v7 = *(unsigned __int8 *)(a2 + 87);
if ( (v7 & 0x80u) != 0LL )
v7 = *(_QWORD *)(a2 + 72);
if ( v7 )
{
std::operator+(&__p, " by ", a2 + 64);
v8 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL
? &__p
: (std::string *)__p.__r_.__value_.__r.__words[0];
v9 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL
? HIBYTE(__p.__r_.__value_.__r.__words[2])
: __p.__r_.__value_.__l.__size_;
std::string::append(&v159, (const std::string::value_type *)v8, v9);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
v10 = *(unsigned __int8 *)(a2 + 111);
if ( (v10 & 0x80u) != 0LL )
v10 = *(_QWORD *)(a2 + 96);
if ( v10 )
{
std::operator+(&v169, " ", a2 + 88);
v11 = std::string::append(&v169, " ago");
v12 = *(_OWORD *)&v11->__r_.__value_.__l.__data_;
__p.__r_.__value_.__r.__words[2] = v11->__r_.__value_.__r.__words[2];
*(_OWORD *)&__p.__r_.__value_.__l.__data_ = v12;
v11->__r_.__value_.__l.__size_ = 0;
v11->__r_.__value_.__r.__words[2] = 0;
v11->__r_.__value_.__r.__words[0] = 0;
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = &__p;
else
p_p = (std::string *)__p.__r_.__value_.__r.__words[0];
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
size = HIBYTE(__p.__r_.__value_.__r.__words[2]);
else
size = __p.__r_.__value_.__l.__size_;
std::string::append(&v159, (const std::string::value_type *)p_p, size);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
}
sub_100009900(&v169, ": ");
v15 = *(unsigned int *)(a2 + 112);
if ( (unsigned int)v15 > 3 )
v16 = "";
else
v16 = off_1009A9A18[v15];
v29 = std::string::append(&v169, v16);
v30 = *(_OWORD *)&v29->__r_.__value_.__l.__data_;
__p.__r_.__value_.__r.__words[2] = v29->__r_.__value_.__r.__words[2];
*(_OWORD *)&__p.__r_.__value_.__l.__data_ = v30;
v29->__r_.__value_.__l.__size_ = 0;
v29->__r_.__value_.__r.__words[2] = 0;
v29->__r_.__value_.__r.__words[0] = 0;
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v31 = &__p;
else
v31 = (std::string *)__p.__r_.__value_.__r.__words[0];
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v32 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
else
v32 = __p.__r_.__value_.__l.__size_;
std::string::append(&v159, (const std::string::value_type *)v31, v32);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
v33 = *(_DWORD *)(a2 + 112);
v34 = 9895830;
if ( (v33 & 0xFFFFFFFD) == 1 )
v34 = 5286655;
if ( v33 == 2 )
v35 = 7895295;
else
v35 = v34;
sub_1005442EC(&v165, &v159, v35);
}
}
else
{
v17 = *(_DWORD *)(a2 + 32);
v18 = "AD SPAM";
if ( v17 != 1 )
v18 = "";
if ( v17 == 2 )
v19 = "PREDATOR";
else
v19 = (char *)v18;
sub_100009900(&v159, v19);
v20 = HIBYTE(v159.__r_.__value_.__r.__words[2]);
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v20 = v159.__r_.__value_.__l.__size_;
if ( v20 )
v21 = " CASE";
else
v21 = "CASE";
std::string::append(&v159, v21);
v22 = sub_1003065B0(" - score %i", *(_DWORD *)(a2 + 36));
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v22);
std::string::append(&v159, CString);
v24 = *(unsigned __int8 *)(a2 + 63);
if ( (v24 & 0x80u) != 0LL )
v24 = *(_QWORD *)(a2 + 48);
if ( v24 )
{
std::operator+(&v169, " - since ", a2 + 40);
v25 = std::string::append(&v169, " ago");
v26 = *(_OWORD *)&v25->__r_.__value_.__l.__data_;
__p.__r_.__value_.__r.__words[2] = v25->__r_.__value_.__r.__words[2];
*(_OWORD *)&__p.__r_.__value_.__l.__data_ = v26;
v25->__r_.__value_.__l.__size_ = 0;
v25->__r_.__value_.__r.__words[2] = 0;
v25->__r_.__value_.__r.__words[0] = 0;
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v27 = &__p;
else
v27 = (std::string *)__p.__r_.__value_.__r.__words[0];
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v28 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
else
v28 = __p.__r_.__value_.__l.__size_;
std::string::append(&v159, (const std::string::value_type *)v27, v28);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
}
sub_1005442EC(&v165, &v159, 7895295);
}
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( *(int *)(a2 + 328) >= 1 )
{
v36 = time(nullptr);
v37 = *(int *)(a2 + 328);
GameToolbox::timestampToHumanReadable(v37, &__p);
v38 = std::string::insert(&__p, 0, "Joined ");
v159 = *v38;
v38->__r_.__value_.__l.__size_ = 0;
v38->__r_.__value_.__r.__words[2] = 0;
v38->__r_.__value_.__r.__words[0] = 0;
if ( v36 - v37 >= 604800 )
v39 = 14803425;
else
v39 = 7913215;
sub_1005442EC(&v165, &v159, v39);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
if ( (vmaxv_u16((uint16x4_t)vmovn_s32(vcgtzq_s32(*(int32x4_t *)(a2 + 116)))) & 1) != 0 )
{
sub_100544550(&v159);
if ( *(int *)(a2 + 124) >= 1 )
{
v40 = sub_1003065B0(" +%i anonymous", *(_DWORD *)(a2 + 124));
v41 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v40);
std::string::append(&v159, v41);
}
if ( *(int *)(a2 + 116) >= 1 )
{
sub_100544550(&v169);
v42 = std::string::insert(&v169, 0, " on ");
v43 = *(_OWORD *)&v42->__r_.__value_.__l.__data_;
__p.__r_.__value_.__r.__words[2] = v42->__r_.__value_.__r.__words[2];
*(_OWORD *)&__p.__r_.__value_.__l.__data_ = v43;
v42->__r_.__value_.__l.__size_ = 0;
v42->__r_.__value_.__r.__words[2] = 0;
v42->__r_.__value_.__r.__words[0] = 0;
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v44 = &__p;
else
v44 = (std::string *)__p.__r_.__value_.__r.__words[0];
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v45 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
else
v45 = __p.__r_.__value_.__l.__size_;
std::string::append(&v159, (const std::string::value_type *)v44, v45);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
}
if ( *(int *)(a2 + 128) >= 1 )
{
v46 = sub_1003065B0(" - reported directly x%i", *(_DWORD *)(a2 + 128));
v47 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v46);
std::string::append(&v159, v47);
}
if ( (*(_DWORD *)(a2 + 132) & 0x80000000) == 0 )
{
sub_100009900(&v169, " - top: ");
v48 = sub_10051F9C4(*(_DWORD *)(a2 + 132));
v49 = std::string::append(&v169, v48);
v50 = *(_OWORD *)&v49->__r_.__value_.__l.__data_;
__p.__r_.__value_.__r.__words[2] = v49->__r_.__value_.__r.__words[2];
*(_OWORD *)&__p.__r_.__value_.__l.__data_ = v50;
v49->__r_.__value_.__l.__size_ = 0;
v49->__r_.__value_.__r.__words[2] = 0;
v49->__r_.__value_.__r.__words[0] = 0;
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v51 = &__p;
else
v51 = (std::string *)__p.__r_.__value_.__r.__words[0];
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v52 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
else
v52 = __p.__r_.__value_.__l.__size_;
std::string::append(&v159, (const std::string::value_type *)v51, v52);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
}
sub_1005442EC(&v165, &v159, 3986175);
}
else
{
sub_100009900(&v159, "No reports");
sub_1005442EC(&v165, &v159, 14803425);
}
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
memset(&__p, 0, sizeof(__p));
v53 = *(_DWORD *)(a2 + 136);
if ( v53 )
{
sub_10053CEA8(v53, &v169);
v54 = std::string::insert(&v169, 0, "comments ");
v55 = *(_OWORD *)&v54->__r_.__value_.__l.__data_;
v159.__r_.__value_.__r.__words[2] = v54->__r_.__value_.__r.__words[2];
*(_OWORD *)&v159.__r_.__value_.__l.__data_ = v55;
v54->__r_.__value_.__l.__size_ = 0;
v54->__r_.__value_.__r.__words[2] = 0;
v54->__r_.__value_.__r.__words[0] = 0;
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v56 = &v159;
else
v56 = (std::string *)v159.__r_.__value_.__r.__words[0];
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v57 = HIBYTE(v159.__r_.__value_.__r.__words[2]);
else
v57 = v159.__r_.__value_.__l.__size_;
std::string::append(&__p, (const std::string::value_type *)v56, v57);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
}
if ( *(_DWORD *)(a2 + 140) )
{
v58 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v58 = __p.__r_.__value_.__l.__size_;
if ( v58 )
v59 = ", ";
else
v59 = "";
sub_100009900(&v163, v59);
v60 = std::string::append(&v163, "uploads ");
v61 = *(_OWORD *)&v60->__r_.__value_.__l.__data_;
v169.__r_.__value_.__r.__words[2] = v60->__r_.__value_.__r.__words[2];
*(_OWORD *)&v169.__r_.__value_.__l.__data_ = v61;
v60->__r_.__value_.__l.__size_ = 0;
v60->__r_.__value_.__r.__words[2] = 0;
v60->__r_.__value_.__r.__words[0] = 0;
sub_10053CEA8(*(_DWORD *)(a2 + 140), &v160);
if ( (v162 & 0x80u) == 0 )
v62 = (const std::string::value_type *)&v160;
else
v62 = (const std::string::value_type *)v160;
if ( (v162 & 0x80u) == 0 )
v63 = v162;
else
v63 = v161;
v64 = std::string::append(&v169, v62, v63);
v65 = *(_OWORD *)&v64->__r_.__value_.__l.__data_;
v159.__r_.__value_.__r.__words[2] = v64->__r_.__value_.__r.__words[2];
*(_OWORD *)&v159.__r_.__value_.__l.__data_ = v65;
v64->__r_.__value_.__l.__size_ = 0;
v64->__r_.__value_.__r.__words[2] = 0;
v64->__r_.__value_.__r.__words[0] = 0;
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v66 = &v159;
else
v66 = (std::string *)v159.__r_.__value_.__r.__words[0];
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v67 = HIBYTE(v159.__r_.__value_.__r.__words[2]);
else
v67 = v159.__r_.__value_.__l.__size_;
std::string::append(&__p, (const std::string::value_type *)v66, v67);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( (char)v162 < 0 )
operator delete(v160);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
if ( SHIBYTE(v163.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v163.__r_.__value_.__l.__data_);
}
if ( *(_DWORD *)(a2 + 144) )
{
v68 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v68 = __p.__r_.__value_.__l.__size_;
if ( v68 )
v69 = ", ";
else
v69 = "";
sub_100009900(&v163, v69);
v70 = std::string::append(&v163, "messages ");
v71 = *(_OWORD *)&v70->__r_.__value_.__l.__data_;
v169.__r_.__value_.__r.__words[2] = v70->__r_.__value_.__r.__words[2];
*(_OWORD *)&v169.__r_.__value_.__l.__data_ = v71;
v70->__r_.__value_.__l.__size_ = 0;
v70->__r_.__value_.__r.__words[2] = 0;
v70->__r_.__value_.__r.__words[0] = 0;
sub_10053CEA8(*(_DWORD *)(a2 + 144), &v160);
if ( (v162 & 0x80u) == 0 )
v72 = (const std::string::value_type *)&v160;
else
v72 = (const std::string::value_type *)v160;
if ( (v162 & 0x80u) == 0 )
v73 = v162;
else
v73 = v161;
v74 = std::string::append(&v169, v72, v73);
v75 = *(_OWORD *)&v74->__r_.__value_.__l.__data_;
v159.__r_.__value_.__r.__words[2] = v74->__r_.__value_.__r.__words[2];
*(_OWORD *)&v159.__r_.__value_.__l.__data_ = v75;
v74->__r_.__value_.__l.__size_ = 0;
v74->__r_.__value_.__r.__words[2] = 0;
v74->__r_.__value_.__r.__words[0] = 0;
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v76 = &v159;
else
v76 = (std::string *)v159.__r_.__value_.__r.__words[0];
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v77 = HIBYTE(v159.__r_.__value_.__r.__words[2]);
else
v77 = v159.__r_.__value_.__l.__size_;
std::string::append(&__p, (const std::string::value_type *)v76, v77);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( (char)v162 < 0 )
operator delete(v160);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
if ( SHIBYTE(v163.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v163.__r_.__value_.__l.__data_);
}
if ( *(_DWORD *)(a2 + 332) == 2 )
{
v78 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v78 = __p.__r_.__value_.__l.__size_;
if ( v78 )
v79 = ", ";
else
v79 = "";
sub_100009900(&v169, v79);
v80 = std::string::append(&v169, "trending");
v81 = *(_OWORD *)&v80->__r_.__value_.__l.__data_;
v159.__r_.__value_.__r.__words[2] = v80->__r_.__value_.__r.__words[2];
*(_OWORD *)&v159.__r_.__value_.__l.__data_ = v81;
v80->__r_.__value_.__l.__size_ = 0;
v80->__r_.__value_.__r.__words[2] = 0;
v80->__r_.__value_.__r.__words[0] = 0;
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v82 = &v159;
else
v82 = (std::string *)v159.__r_.__value_.__r.__words[0];
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v83 = HIBYTE(v159.__r_.__value_.__r.__words[2]);
else
v83 = v159.__r_.__value_.__l.__size_;
std::string::append(&__p, (const std::string::value_type *)v82, v83);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
}
if ( *(_DWORD *)(a2 + 336) == 2 )
{
v84 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v84 = __p.__r_.__value_.__l.__size_;
if ( v84 )
v85 = ", ";
else
v85 = "";
sub_100009900(&v169, v85);
v86 = std::string::append(&v169, "name change");
v87 = *(_OWORD *)&v86->__r_.__value_.__l.__data_;
v159.__r_.__value_.__r.__words[2] = v86->__r_.__value_.__r.__words[2];
*(_OWORD *)&v159.__r_.__value_.__l.__data_ = v87;
v86->__r_.__value_.__l.__size_ = 0;
v86->__r_.__value_.__r.__words[2] = 0;
v86->__r_.__value_.__r.__words[0] = 0;
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v88 = &v159;
else
v88 = (std::string *)v159.__r_.__value_.__r.__words[0];
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v89 = HIBYTE(v159.__r_.__value_.__r.__words[2]);
else
v89 = v159.__r_.__value_.__l.__size_;
std::string::append(&__p, (const std::string::value_type *)v88, v89);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
}
v90 = HIBYTE(__p.__r_.__value_.__r.__words[2]);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v90 = __p.__r_.__value_.__l.__size_;
if ( v90 )
{
std::operator+(&v159, "Banned: ", &__p);
sub_1005442EC(&v165, &v159, 9869055);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
}
v91 = *(unsigned int *)(a2 + 340);
if ( (int)v91 >= 1 )
{
GameToolbox::timestampToHumanReadable(v91, &v169);
v92 = std::string::insert(&v169, 0, "Queue muted ");
v159 = *v92;
v92->__r_.__value_.__l.__size_ = 0;
v92->__r_.__value_.__r.__words[2] = 0;
v92->__r_.__value_.__r.__words[0] = 0;
sub_1005442EC(&v165, &v159, 13158600);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v169.__r_.__value_.__l.__data_);
}
v93 = *(_DWORD *)(a2 + 148);
if ( v93 < 1 )
{
v97 = *(_DWORD *)(a2 + 152);
if ( v97 < 1 )
goto LABEL_227;
v98 = "s";
if ( v97 == 1 )
v98 = "";
v99 = sub_1003065B0("Blocked by %i user%s in 30 days", *(_DWORD *)(a2 + 152), v98);
v100 = (char *)cocos2d::CCString::getCString((__int64)v99);
sub_100009900(&v159, v100);
sub_1005442EC(&v165, &v159, 7913215);
}
else
{
v94 = "s";
if ( v93 == 1 )
v94 = "";
v95 = sub_1003065B0("Blocked by %i user%s this week", *(_DWORD *)(a2 + 148), v94);
v96 = (char *)cocos2d::CCString::getCString((__int64)v95);
sub_100009900(&v159, v96);
sub_1005442EC(&v165, &v159, 7913215);
}
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
LABEL_227:
v101 = *(unsigned __int8 *)(a2 + 191);
if ( (v101 & 0x80u) != 0LL )
v101 = *(_QWORD *)(a2 + 176);
if ( !v101 )
{
sub_100009900(&v159, "No moderator actions yet");
sub_1005442EC(&v165, &v159, 14803425);
if ( (SHIBYTE(v159.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_279;
v106 = (void *)v159.__r_.__value_.__r.__words[0];
goto LABEL_278;
}
v102 = (_QWORD *)(a2 + 192);
sub_1005445AC((__int64 *)&v159, a2 + 168);
v103 = std::string::insert(&v159, 0, "Last action: ");
v104 = *(_OWORD *)&v103->__r_.__value_.__l.__data_;
v169.__r_.__value_.__r.__words[2] = v103->__r_.__value_.__r.__words[2];
*(_OWORD *)&v169.__r_.__value_.__l.__data_ = v104;
v103->__r_.__value_.__l.__size_ = 0;
v103->__r_.__value_.__r.__words[2] = 0;
v103->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
v105 = *(char *)(a2 + 215);
if ( v105 < 0 )
{
if ( *(_QWORD *)(a2 + 200) != 4 )
goto LABEL_240;
v102 = (_QWORD *)*v102;
}
else if ( v105 != 4 )
{
goto LABEL_240;
}
if ( *(_DWORD *)v102 == 1836213616 )
{
std::string::append(&v169, " Permanent");
goto LABEL_252;
}
LABEL_240:
if ( *(int *)(a2 + 216) >= 1 )
{
sub_100544CAC(&v163);
v107 = std::string::insert(&v163, 0, " ");
v108 = *(_OWORD *)&v107->__r_.__value_.__l.__data_;
v159.__r_.__value_.__r.__words[2] = v107->__r_.__value_.__r.__words[2];
*(_OWORD *)&v159.__r_.__value_.__l.__data_ = v108;
v107->__r_.__value_.__l.__size_ = 0;
v107->__r_.__value_.__r.__words[2] = 0;
v107->__r_.__value_.__r.__words[0] = 0;
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v109 = &v159;
else
v109 = (std::string *)v159.__r_.__value_.__r.__words[0];
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v110 = HIBYTE(v159.__r_.__value_.__r.__words[2]);
else
v110 = v159.__r_.__value_.__l.__size_;
std::string::append(&v169, (const std::string::value_type *)v109, v110);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( SHIBYTE(v163.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v163.__r_.__value_.__l.__data_);
}
LABEL_252:
v111 = *(unsigned __int8 *)(a2 + 247);
if ( (v111 & 0x80u) != 0LL )
v111 = *(_QWORD *)(a2 + 232);
if ( v111 )
{
std::operator+(&v159, " by ", a2 + 224);
v112 = (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL
? &v159
: (std::string *)v159.__r_.__value_.__r.__words[0];
v113 = (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL
? HIBYTE(v159.__r_.__value_.__r.__words[2])
: v159.__r_.__value_.__l.__size_;
std::string::append(&v169, (const std::string::value_type *)v112, v113);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
}
v114 = *(unsigned __int8 *)(a2 + 271);
if ( (v114 & 0x80u) != 0LL )
v114 = *(_QWORD *)(a2 + 256);
if ( v114 )
{
std::operator+(&v163, " ", a2 + 248);
v115 = std::string::append(&v163, " ago");
v116 = *(_OWORD *)&v115->__r_.__value_.__l.__data_;
v159.__r_.__value_.__r.__words[2] = v115->__r_.__value_.__r.__words[2];
*(_OWORD *)&v159.__r_.__value_.__l.__data_ = v116;
v115->__r_.__value_.__l.__size_ = 0;
v115->__r_.__value_.__r.__words[2] = 0;
v115->__r_.__value_.__r.__words[0] = 0;
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v117 = &v159;
else
v117 = (std::string *)v159.__r_.__value_.__r.__words[0];
if ( (v159.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v118 = HIBYTE(v159.__r_.__value_.__r.__words[2]);
else
v118 = v159.__r_.__value_.__l.__size_;
std::string::append(&v169, (const std::string::value_type *)v117, v118);
if ( SHIBYTE(v159.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v159.__r_.__value_.__l.__data_);
if ( SHIBYTE(v163.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v163.__r_.__value_.__l.__data_);
}
sub_1005442EC(&v165, &v169, 16768150);
if ( SHIBYTE(v169.__r_.__value_.__r.__words[2]) < 0 )
{
v106 = (void *)v169.__r_.__value_.__r.__words[0];
LABEL_278:
operator delete(v106);
}
LABEL_279:
memset(&v159, 0, sizeof(v159));
v119 = v166;
if ( v167 != v166 )
{
v120 = 0;
v121 = 0;
do
{
v122 = (const char *)(v119 + v120);
if ( *(char *)(v119 + v120 + 23) < 0 )
v122 = *(const char **)v122;
v123 = cocos2d::CCLabelBMFont::create_1(v122, "chatFont.fnt");
v169.__r_.__value_.__r.__words[0] = (std::string::size_type)v123;
sub_1000262BC((float *)&v163, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v123 + 296LL))(v123, &v163);
(*(void (__fastcall **)(std::string::size_type, __int64))(*(_QWORD *)v169.__r_.__value_.__l.__data_ + 1072LL))(
v169.__r_.__value_.__r.__words[0],
v166 + v120 + 24);
(*(void (__fastcall **)(std::string::size_type, _QWORD))(*(_QWORD *)v169.__r_.__value_.__l.__data_ + 1024LL))(
v169.__r_.__value_.__r.__words[0],
*(unsigned __int8 *)(v166 + v120 + 27));
sub_100011A50((__int64)&v159, &v169);
++v121;
v119 = v166;
v120 += 32;
}
while ( v121 < (v167 - v166) >> 5 );
}
if ( *(int *)(a2 + 272) <= 0 )
v124 = nullptr;
else
v124 = sub_100541BCC(a2 + 280, a2 + 304, 0.54);
v125 = 0;
v126 = v5 - (float)(v6 * 0.5);
v158 = v5 + (float)(v6 * 0.5);
do
{
v127 = flt_100770844[v125];
v128 = *(float *)(a1 + 704);
*(float *)&v169.__r_.__value_.__l.__data_ = v128;
*((float *)v169.__r_.__value_.__r.__words + 1) = v128;
if ( v124 )
{
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v124, 150.0, v127 * 0.83, 0.2);
(*(void (__fastcall **)(std::string *__return_ptr, void *))(*(_QWORD *)v124 + 336LL))(&v163, v124);
*((float *)v169.__r_.__value_.__r.__words + 1) = v128 - (float)(*(float *)&v163.__r_.__value_.__l.__data_ + 12.0);
}
v130 = v159.__r_.__value_.__l.__size_;
v129 = v159.__r_.__value_.__r.__words[0];
if ( v159.__r_.__value_.__l.__size_ == v159.__r_.__value_.__r.__words[0] )
break;
v131 = 0;
v132 = 0;
v133 = 0.0;
do
{
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v129 + 8 * v131) + 160LL))(
*(_QWORD *)(v129 + 8 * v131),
v127);
(*(void (__fastcall **)(std::string *__return_ptr))(**(_QWORD **)(v159.__r_.__value_.__r.__words[0] + 8 * v131)
+ 336LL))(&v163);
if ( v133 <= 0.0 || (float)(v133 + *(float *)&v163.__r_.__value_.__l.__data_) <= v128 )
{
v135 = 1;
}
else
{
v135 = v132 == 0;
if ( !v132 )
v133 = 0.0;
v132 = 1;
}
v128 = *((float *)&v169.__r_.__value_.__l.__data_ + v132);
v136 = *(float *)&v163.__r_.__value_.__l.__data_ <= v128 && v135;
++v131;
v130 = v159.__r_.__value_.__l.__size_;
v129 = v159.__r_.__value_.__r.__words[0];
if ( v131 >= (__int64)(v159.__r_.__value_.__l.__size_ - v159.__r_.__value_.__r.__words[0]) >> 3 )
break;
v133 = (float)(*(float *)&v163.__r_.__value_.__l.__data_ + 14.0) + v133;
}
while ( (v136 & 1) != 0 );
if ( ++v125 == 5 )
v136 = 1;
}
while ( v136 != 1 );
if ( v130 != v129 )
{
v137 = 0;
v138 = 0;
v139 = 0;
v140 = 0.0;
while ( 1 )
{
v141 = *(_QWORD *)(v129 + 8 * v138);
(*(void (__fastcall **)(std::string::size_type, float))(*(_QWORD *)v141 + 160LL))(v141, v127);
(*(void (__fastcall **)(std::string *__return_ptr, std::string::size_type))(*(_QWORD *)v141 + 336LL))(&v163, v141);
v142 = *(float *)&v163.__r_.__value_.__l.__data_;
if ( v140 <= 0.0 )
goto LABEL_318;
v143 = *((float *)&v169.__r_.__value_.__l.__data_ + v139);
if ( (float)(v140 + *(float *)&v163.__r_.__value_.__l.__data_) <= v143 )
goto LABEL_318;
if ( !v139 )
break;
if ( (float)(v143 - v140) >= 60.0 )
{
sub_100544D94(v141, v166 + v137);
(*(void (__fastcall **)(std::string *__return_ptr, std::string::size_type))(*(_QWORD *)v141 + 336LL))(
&v163,
v141);
v142 = *(float *)&v163.__r_.__value_.__l.__data_;
LABEL_317:
v139 = 1;
LABEL_318:
if ( v142 > *((float *)&v169.__r_.__value_.__l.__data_ + v139) )
{
sub_100544D94(v141, v166 + v137);
(*(void (__fastcall **)(std::string *__return_ptr, std::string::size_type))(*(_QWORD *)v141 + 336LL))(
&v163,
v141);
v142 = *(float *)&v163.__r_.__value_.__l.__data_;
}
sub_1000262BC((float *)&v163, v126 + v140, v170.f32[v139]);
(*(void (__fastcall **)(std::string::size_type, std::string *))(*(_QWORD *)v141 + 184LL))(v141, &v163);
(*(void (__fastcall **)(_QWORD, std::string::size_type, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v141,
1);
v163.__r_.__value_.__r.__words[0] = v141;
sub_100011A50(a1 + 1472, &v163);
v140 = v140 + (float)(v142 + 14.0);
goto LABEL_321;
}
v139 = 1;
LABEL_321:
++v138;
v129 = v159.__r_.__value_.__r.__words[0];
v137 += 32;
if ( v138 >= (__int64)(v159.__r_.__value_.__l.__size_ - v159.__r_.__value_.__r.__words[0]) >> 3 )
goto LABEL_324;
}
v140 = 0.0;
goto LABEL_317;
}
LABEL_324:
if ( v124 )
{
sub_1000262BC((float *)&v163, v158, v170.f32[1]);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v124 + 184LL))(v124, &v163);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v124, 1);
v163.__r_.__value_.__r.__words[0] = (std::string::size_type)v124;
sub_100011A50(a1 + 1472, &v163);
}
v144 = *(_QWORD *)(a1 + 1384);
v145 = *(_DWORD *)(a2 + 116);
if ( *(int *)(a2 + 128) > 0 )
++v145;
v146 = sub_1003065B0("Reported %i", v145);
v147 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v146);
ButtonSprite::setString(v144, v147);
v148 = *(_QWORD *)(a1 + 1392);
v149 = sub_1003065B0("Filter %i", *(_DWORD *)(a2 + 160));
v150 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v149);
ButtonSprite::setString(v148, v150);
v151 = *(_QWORD *)(a1 + 1400);
v152 = sub_1003065B0("History %i", *(_DWORD *)(a2 + 164));
v153 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v152);
ButtonSprite::setString(v151, v153);
v154 = *(_QWORD *)(a1 + 1408);
if ( *(int *)(a2 + 156) < 1 )
{
v156 = "Notes";
}
else
{
v155 = sub_1003065B0("Notes %i", *(_DWORD *)(a2 + 156));
v156 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v155);
}
ButtonSprite::setString(v154, v156);
sub_100541EBC(*(float **)(a1 + 1408));
if ( v159.__r_.__value_.__r.__words[0] )
{
v159.__r_.__value_.__l.__size_ = v159.__r_.__value_.__r.__words[0];
operator delete(v159.__r_.__value_.__l.__data_);
}
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
return sub_100544E88(&v166);
}